/* The Öztürk Gazette — monochrome newsprint. The only colour comes from images. */
:root {
  --ink: #111;
  --ink-2: #3a3a3a;
  --ink-3: #5c5c5c;
  --paper: #fbfbf8;
  --rule: #1a1a1a;
  --rule-soft: #c8c8c4;
  --tint: #efefeb;
  --head: "Playfair Display", "Times New Roman", Georgia, serif;
  --body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 9; }
.skip:focus { left: var(--gutter); }

.sheet { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 48px; }

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding-top: 18px; }
.ears {
  display: flex; justify-content: space-between; gap: 12px;
  font: 600 .72rem/1.3 var(--body); font-variant: small-caps; letter-spacing: .08em; color: var(--ink-2);
  text-transform: lowercase;
}
.ears span:last-child { text-align: right; }
.masthead .title {
  display: block; margin: 6px 0 2px; text-decoration: none;
  font: 900 clamp(2.4rem, 11vw, 6.2rem)/.95 var(--head); letter-spacing: -.01em;
}
.masthead .motto { margin: 4px 0 10px; font-style: italic; color: var(--ink-2); font-size: .95rem; }
.dateline {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule);
  padding: 6px 0; font-variant: small-caps; text-transform: lowercase; letter-spacing: .07em; font-size: .82rem;
}
.masthead.small .title { font-size: clamp(2rem, 8vw, 3.6rem); }

/* ---------- Navigation ---------- */
.nav { border-bottom: 3px double var(--rule); }
.nav ul { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nav a {
  display: block; padding: 8px 10px; text-decoration: none;
  font-variant: small-caps; text-transform: lowercase; letter-spacing: .1em; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.kicker, .label {
  font: 600 .78rem/1.3 var(--body); font-variant: small-caps; text-transform: lowercase;
  letter-spacing: .14em; color: var(--ink-2); margin: 0 0 6px;
}
.label { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 4px 0; text-align: center; margin-bottom: 14px; }
.deck { font-style: italic; font-size: 1.12rem; color: var(--ink-2); margin-bottom: .8em; }
.byline { font-variant: small-caps; text-transform: lowercase; letter-spacing: .08em; font-size: .85rem; color: var(--ink-3); }
.more { font-variant: small-caps; text-transform: lowercase; letter-spacing: .08em; font-weight: 600; }
.tags { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid var(--ink-3); padding: 0 8px; font-size: .78rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: .08em; }

.dropcap > p:first-of-type::first-letter {
  float: left; font: 900 4.4em/.8 var(--head); padding: .06em .08em 0 0; margin-top: .04em;
}

.pullquote {
  margin: 1.6em 0; padding: .8em 0; border-top: 3px double var(--rule); border-bottom: 3px double var(--rule);
  font: italic 700 clamp(1.25rem, 4vw, 1.6rem)/1.3 var(--head); text-align: center;
}
.pullquote p { margin: 0; }
.pullquote cite { display: block; margin-top: .5em; font: normal .8rem var(--body); font-variant: small-caps; letter-spacing: .1em; }

figure { margin: 1.6em 0; }
figcaption { font-size: .82rem; font-style: italic; color: var(--ink-3); border-bottom: 1px solid var(--rule-soft); padding: 6px 0; }
.fig img, .cover img { width: 100%; border: 1px solid var(--rule); }

hr.ornament { border: 0; text-align: center; margin: 2em 0; }
hr.ornament::after { content: "✦  ✦  ✦"; letter-spacing: .4em; color: var(--ink-3); }

/* ---------- Front page ---------- */
.front, .topband { display: grid; gap: 0 28px; margin-top: 22px; }
.topband > * { padding-bottom: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.topband { border-bottom: 3px double var(--rule); margin-bottom: 0; }
.topband > :last-child { border-bottom: 0; margin-bottom: 0; }
.front > * { padding-bottom: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.lead h2 { font-size: clamp(1.9rem, 6vw, 3.1rem); font-weight: 900; }
.lead h2 a, .story h3 a, .story h2 a { text-decoration: none; }
.lead h2 a:hover, .story h3 a:hover, .story h2 a:hover { text-decoration: underline; }
.cols { columns: 1; column-gap: 28px; column-rule: 1px solid var(--rule-soft); }
.cols p { break-inside: avoid-column; }
.app-icon { float: left; width: 80px; height: 80px; border-radius: 22%; margin: 4px 16px 8px 0; border: 1px solid var(--rule-soft); }
.app-icon.sm { width: 28px; height: 28px; margin: 0 10px 0 0; }
.index-list li { display: flow-root; }
.project { display: grid; grid-template-columns: 80px 1fr; gap: 0 18px; align-items: start; }
.project .app-icon { float: none; margin: 4px 0 0; }
.article .project h2 { margin-top: 0; padding-top: 0; border-top: 0; clear: none; }
.article .project .tags { padding-left: 0; }
@media (max-width: 480px) { .project { grid-template-columns: 56px 1fr; gap: 0 14px; } .project .app-icon { width: 56px; height: 56px; } }
.teaser-photo { float: left; width: 96px; margin: 4px 14px 6px 0; border: 1px solid var(--rule); filter: none; }
.boxed { border: 1px solid var(--rule); padding: 14px; }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { border-bottom: 1px dotted var(--ink-3); padding: 8px 0; }
.index-list li:last-child { border: 0; }

@media (min-width: 720px) {
  .cols { columns: 2; }
  .front { grid-template-columns: 1fr 1fr; }
  .front .lead, .front .wide, .topband .author { grid-column: 1 / -1; }
  .topband > :nth-last-child(2) { border-bottom: 0; margin-bottom: 0; }
  .topband .teaser-photo { width: 140px; }
}
@media (min-width: 1000px) {
  .front { grid-template-columns: 2fr 1fr 1fr; }
  .front .lead { grid-column: 1 / 2; grid-row: 1 / 3; border-bottom: 0; padding-right: 28px; border-right: 1px solid var(--rule); margin-bottom: 0; }
  .front .side { border-bottom: 1px solid var(--rule); }
  .front .wide { grid-column: 2 / -1; }
  .front .rule-l { border-left: 1px solid var(--rule-soft); padding-left: 28px; margin-left: -14px; }
  .topband { grid-template-columns: 2fr 1fr 1fr; }
  .topband .author { grid-column: auto; }
  .topband > * { border-bottom: 0; margin-bottom: 0; }
  .topband > * + * { border-left: 1px solid var(--rule-soft); padding-left: 28px; margin-left: -14px; }
}

/* ---------- Article ---------- */
.article { max-width: 46rem; margin: 28px auto 0; }
.article header { text-align: center; border-bottom: 1px solid var(--rule); margin-bottom: 1.4em; padding-bottom: 1em; }
.article header .tags { justify-content: center; }
.article .cover { margin: 0 0 1.6em; }
.entry .cover { width: 80%; margin: 14px 0 1em; }
.article .entry h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.article h2 { margin-top: 1.6em; padding-top: .5em; border-top: 1px solid var(--rule); }
.article ul { padding-left: 1.3em; }
.article li { margin-bottom: .3em; }
.standfirst { font-style: italic; font-size: 1.08rem; border-left: 3px solid var(--rule); padding-left: 14px; color: var(--ink-2); }
.law { font-style: italic; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: .7em 0; margin: 1.2em 0; }
@media (min-width: 900px) {
  .article { max-width: 52rem; }
  .fig.right { float: right; width: 46%; margin: .4em 0 1em 26px; }
  .pullquote.left { float: left; width: 42%; margin: .3em 26px 1em 0; }
  .article h2 { clear: both; }
}

/* ---------- Profile / career ---------- */
.profile-grid { display: grid; gap: 0 32px; margin-top: 26px; }
.profile-grid > section { border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 20px; }
@media (min-width: 860px) {
  .profile-grid { grid-template-columns: 1fr 2fr; }
  .profile-grid > .bio { border-bottom: 0; border-right: 1px solid var(--rule); padding-right: 32px; }
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: .45em; width: 12px; height: 12px;
  background: var(--paper); border: 2px solid var(--rule); border-radius: 50%;
}
.timeline .when { font-variant: small-caps; text-transform: lowercase; letter-spacing: .1em; font-size: .85rem; color: var(--ink-3); }
.skills dt { font-variant: small-caps; text-transform: lowercase; letter-spacing: .1em; font-weight: 600; margin-top: 10px; }
.skills dd { margin: 0; }

.notice { border: 2px solid var(--ink); padding: 12px 16px; }
.notice ul { margin: .4em 0 0; padding-left: 1.2em; }
.result { border-top: 3px double var(--rule); border-bottom: 3px double var(--rule); padding: 14px 0; }
.result strong { font: 900 1.8rem var(--head); display: block; }

/* ---------- Footer ---------- */
.foot { border-top: 3px double var(--rule); margin-top: 32px; padding-top: 12px; text-align: center; font-size: .85rem; color: var(--ink-2); }
.foot ul { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.foot a { display: inline-block; padding: 6px 2px; font-variant: small-caps; text-transform: lowercase; letter-spacing: .08em; }
