/* Kuzey Feneri Denizcilik: an editorial journal for an independent bunkering house */
:root {
  --paper: #e9e5dd;        /* oyster */
  --paper-2: #ddd6ca;      /* rope */
  --paper-3: #f3f0ea;      /* chalk, for raised surfaces */
  --ink: #18201c;          /* chart ink */
  --green: #1c3a31;        /* bottle green */
  --green-2: #27493f;
  --brass: #8a6226;        /* ship's brass, marks and rules */
  --brass-text: #74511b;   /* brass dark enough for text on paper */
  --brass-light: #c9a466;  /* brass on green */
  --muted: #565c56;
  --rule: rgba(24, 32, 28, .16);
  --rule-strong: rgba(24, 32, 28, .55);
  --on-green: #ebe6da;
  --on-green-muted: rgba(235, 230, 218, .72);
  --rule-on-green: rgba(235, 230, 218, .2);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 72px);
  --col-gap: clamp(16px, 2vw, 32px);
  --max: 1560px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --ease-slow: cubic-bezier(.65, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: oldstyle-nums proportional-nums;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; z-index: 300; left: 16px; top: -80px; background: var(--ink); color: var(--paper); padding: 12px 16px; font: 500 14px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Shared type ---------- */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--brass);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--ink { background: var(--green); color: var(--on-green); }
.btn--ink:hover { background: var(--ink); }
.btn--paper { background: var(--on-green); color: var(--green); }
.btn--paper:hover { background: #fff; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 14px; }

.caption {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline;
  padding-top: 12px; margin-top: 0;
  font: 400 13px/1.45 var(--sans); color: var(--muted);
  font-variant-numeric: tabular-nums lining-nums;
}
.caption .fig { color: var(--brass-text); font-weight: 600; }
.caption-text { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
.caption-meta { white-space: nowrap; }

.plate { margin: 0; }
.plate-frame { position: relative; overflow: hidden; background: var(--paper-2); }
.plate-frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.plate-frame::after { /* faint print vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(24, 32, 28, .06);
}

/* ---------- Masthead ---------- */
.masthead {
  position: fixed; z-index: 100; inset: 0 0 auto 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: 76px; padding: 0 var(--gutter);
  background: rgba(233, 229, 221, 0);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.masthead.is-scrolled { background: rgba(233, 229, 221, .94); box-shadow: 0 1px 0 var(--rule); height: 64px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); justify-self: start; }
.wordmark-seal {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass-text);
  font: 400 19px/1 var(--serif); font-style: italic; padding-bottom: 2px;
}
.wordmark-name { font: 400 23px/1 var(--serif); letter-spacing: -.01em; }
.wordmark-name i { font-weight: 300; color: var(--muted); }
.masthead-note { font: 400 13px/1.3 var(--sans); color: var(--muted); text-align: center; }
.masthead-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.contents-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; font: 500 14px/1 var(--sans);
}
.contents-toggle-lines { display: grid; gap: 5px; width: 20px; }
.contents-toggle-lines span { display: block; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.contents-toggle-lines span:last-child { width: 13px; }
.contents-toggle:hover .contents-toggle-lines span:last-child { transform: scaleX(1.54); transform-origin: left; }

/* ---------- Contents overlay ---------- */
.contents {
  position: fixed; z-index: 200; inset: 0; overflow-y: auto;
  background: var(--green); color: var(--on-green);
  padding: 96px var(--gutter) 48px;
}
.contents[hidden] { display: none; }
.contents-inner { max-width: 1100px; margin: 0 auto; }
.contents-kicker { font: 400 15px/1 var(--sans); color: var(--brass-light); margin-bottom: 32px; }
.contents-list li { border-top: 1px solid var(--rule-on-green); }
.contents-list li:last-child { border-bottom: 1px solid var(--rule-on-green); }
.contents-list a {
  display: grid; grid-template-columns: 64px 1fr minmax(0, 340px); align-items: baseline; gap: 24px;
  padding: 18px 0; text-decoration: none;
}
.contents-list .c-num { font: italic 300 22px/1 var(--serif); color: var(--brass-light); }
.contents-list .c-title { font: 300 clamp(30px, 3.6vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; transition: transform .35s var(--ease); }
.contents-list .c-desc { font: 400 14px/1.45 var(--sans); color: var(--on-green-muted); }
.contents-list a:hover .c-title, .contents-list a:focus-visible .c-title { transform: translateX(10px); }
.contents-close {
  margin-top: 36px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: none; border: 1px solid var(--rule-on-green); color: var(--on-green);
  font: 500 14px/1 var(--sans); cursor: pointer;
}
.contents-close:hover { border-color: var(--on-green); }
.js .contents.is-open .contents-list li { animation: contents-in .6s var(--ease) both; }
.js .contents.is-open .contents-list li:nth-child(2) { animation-delay: .04s; }
.js .contents.is-open .contents-list li:nth-child(3) { animation-delay: .08s; }
.js .contents.is-open .contents-list li:nth-child(4) { animation-delay: .12s; }
.js .contents.is-open .contents-list li:nth-child(5) { animation-delay: .16s; }
.js .contents.is-open .contents-list li:nth-child(6) { animation-delay: .2s; }
@keyframes contents-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Cover ---------- */
.cover {
  max-width: var(--max); margin: 0 auto;
  padding: 124px var(--gutter) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
}
.cover-text { grid-column: 1 / -1; }
.cover-title {
  font-weight: 300; font-size: clamp(54px, 8.2vw, 132px); line-height: .94; letter-spacing: -.035em;
  font-variation-settings: "opsz" 72;
}
.cover-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.cover-title .line > span { display: inline-block; }
.cover-title .line:nth-child(2) { padding-left: 1.05em; font-style: italic; }

.plate--cover { grid-column: 1 / span 8; grid-row: 2; margin-top: clamp(36px, 3.6vw, 56px); display: flex; flex-direction: column; }
.plate--cover .plate-frame { flex: 1; min-height: 420px; }
.plate--cover img { position: absolute; inset: 0; object-position: 70% 82%; }

.cover-side { grid-column: 9 / span 4; grid-row: 2; margin-top: clamp(36px, 3.6vw, 56px); padding-left: clamp(0px, 1.4vw, 24px); display: flex; flex-direction: column; }
.cover-standfirst { max-width: 30ch; font-size: clamp(20px, 1.55vw, 23px); line-height: 1.45; color: var(--ink); }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; font: 400 15px/1.4 var(--sans); }

.cover-contents { margin-top: auto; padding-top: 44px; font-family: var(--sans); }
.cover-contents-head { font: italic 400 17px/1 var(--serif); color: var(--brass-text); padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.cover-contents li { border-bottom: 1px solid var(--rule); }
.cover-contents a {
  display: grid; grid-template-columns: 34px 1fr; padding: 9px 0;
  font-size: 14px; line-height: 1.35; text-decoration: none; transition: color .2s, padding .3s var(--ease);
}
.cover-contents a:hover { color: var(--brass-text); padding-left: 4px; }
.c-num { font-family: var(--serif); font-style: italic; color: var(--brass-text); }

/* Cover entrance, the one orchestrated moment */
/* Pure CSS keyframes: content is never left hidden if JS fails or is stale */
@keyframes cover-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes cover-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cover-open { from { clip-path: inset(18% 18% 0 18%); } to { clip-path: inset(0 0 0 0); } }
@keyframes cover-settle { from { transform: scale(1.12); } to { transform: scale(1.04); } }
@keyframes cover-show { from { opacity: 0; } to { opacity: 1; } }
.cover-title .line > span { animation: cover-rise 1.15s var(--ease) .15s both; }
.cover-title .line:nth-child(2) > span { animation-delay: .27s; }
.cover-standfirst { animation: cover-fade .9s var(--ease) .6s both; }
.cover-actions { animation: cover-fade .9s var(--ease) .7s both; }
.cover-contents { animation: cover-fade .9s var(--ease) .8s both; }
.plate--cover .plate-frame { animation: cover-open 1.6s var(--ease-slow) .45s both; }
.plate--cover img { animation: cover-settle 2.4s var(--ease) .45s both; }
.plate--cover .caption { animation: cover-show .8s ease 1.55s both; }

/* ---------- Chapters ---------- */
.chapter {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 11vw, 176px) var(--gutter) 0;
}
.chapter-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline;
  padding-top: 20px; border-top: 1px solid var(--rule-strong);
  margin-bottom: clamp(48px, 6vw, 88px);
}
.chapter-num { grid-column: 1 / span 2; font: italic 300 clamp(40px, 4vw, 60px)/1 var(--serif); color: var(--brass); }
.chapter-head h2 {
  grid-column: 3 / span 6;
  font-weight: 300; font-size: clamp(38px, 4.6vw, 72px); line-height: 1; letter-spacing: -.025em;
}
.chapter-dek { grid-column: 9 / span 4; font: 400 16px/1.55 var(--sans); color: var(--muted); max-width: 40ch; }

/* I. Letter */
.letter-body { align-items: start; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 56px; }
.letter-text { grid-column: 3 / span 6; grid-row: 1 / span 2; max-width: 62ch; }
.letter-text p + p { margin-top: 1.1em; text-indent: 0; }
.letter-text p { font-size: 20px; line-height: 1.62; hyphens: auto; }
.dropcap::first-letter {
  float: left; font-size: 5.1em; line-height: .78; font-weight: 300;
  padding: .06em .09em 0 0; color: var(--green);
}
.letter-text sup { font: 600 11px/0 var(--sans); vertical-align: super; }
.letter-text sup a { color: var(--brass-text); text-decoration: none; padding: 0 2px; }
.letter-text sup a:hover { text-decoration: underline; }
.signature { margin-top: 2em !important; display: grid; gap: 4px; }
.sig-name { font: italic 400 32px/1.1 var(--serif); letter-spacing: -.01em; color: var(--green); }
.sig-role { font: 400 14px/1.4 var(--sans); color: var(--muted); }

.letter-notes { grid-column: 9 / span 4; grid-row: 1; font: 400 14px/1.55 var(--sans); color: var(--muted); }
.letter-notes ol li { position: relative; padding: 0 0 18px 26px; }
.letter-notes ol li + li { padding-top: 18px; border-top: 1px solid var(--rule); }
.note-num { position: absolute; left: 0; font: italic 400 16px/1.3 var(--serif); color: var(--brass-text); }
.note-back { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.note-back:focus { position: static; width: auto; height: auto; clip: auto; display: inline-block; margin-left: 6px; color: var(--ink); }
.letter-notes li:target { color: var(--ink); }
.letter-ledger { margin-top: 36px; border-top: 1px solid var(--rule-strong); }
.letter-ledger div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.letter-ledger dt { color: var(--muted); }
.letter-ledger dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums lining-nums; }

.plate--desk .plate-frame { aspect-ratio: 4 / 5; }
.letter-body .plate--desk { grid-column: 9 / span 4; grid-row: 2; margin-top: 0; }

/* II. Glossary */
.entries {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px);
  position: relative;
}
.entries::before { /* the dictionary gutter rule */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--rule);
}
.entry { display: grid; grid-template-columns: minmax(0, 1fr); padding: 30px 0 40px; border-bottom: 1px solid var(--rule); }
.entry:nth-last-child(-n+2) { border-bottom: 0; }
.entry dt { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.headword { font: 400 clamp(34px, 3.2vw, 48px)/1 var(--serif); letter-spacing: -.02em; color: var(--green); }
.pos { font: italic 400 17px/1 var(--serif); color: var(--brass-text); }
.def { font-size: 19px; line-height: 1.55; max-width: 46ch; }
.practice { margin-top: 16px; padding-left: 18px; border-left: 2px solid var(--brass); font: 400 15px/1.6 var(--sans); color: var(--muted); max-width: 54ch; }
.practice-label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* III. Photo essay, set on bottle green */
.essay {
  max-width: none; background: var(--green); color: var(--on-green);
  margin-top: clamp(96px, 11vw, 176px); padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(96px, 10vw, 160px);
}
.essay > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.chapter-head--light { border-top-color: var(--rule-on-green); }
.chapter-head--light .chapter-num { color: var(--brass-light); }
.chapter-head--light .chapter-dek { color: var(--on-green-muted); }
.essay .caption { color: var(--on-green-muted); }
.essay .caption .fig { color: var(--brass-light); }
.essay .caption-text { color: var(--on-green); }
.essay .plate-frame { background: var(--green-2); }

.essay-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(56px, 7vw, 110px); align-items: start; }
.essay-a { grid-column: 1 / span 8; }
.essay-a .plate-frame { aspect-ratio: 3 / 2; }
.essay-b { grid-column: 10 / span 3; margin-top: clamp(80px, 14vw, 240px); }
.essay-b .plate-frame { aspect-ratio: 4 / 5; }
.essay-quote { grid-column: 2 / span 6; align-self: center; }
.essay-quote p {
  font: italic 300 clamp(28px, 3vw, 44px)/1.22 var(--serif); letter-spacing: -.012em; text-indent: -.4em;
}
.essay-quote p::before { content: "\201C"; color: var(--brass-light); }
.essay-quote p::after { content: "\201D"; color: var(--brass-light); }
.essay-quote footer { margin-top: 26px; display: grid; gap: 4px; font: 400 14px/1.45 var(--sans); color: var(--on-green-muted); }
.quote-name { color: var(--on-green); font-weight: 500; }
.essay-c { grid-column: 9 / span 4; }
.essay-c .plate-frame { aspect-ratio: 4 / 5; }
.essay-d { grid-column: 3 / span 10; }
.essay-d .plate-frame { aspect-ratio: 21 / 9; }

/* IV. Grades ledger */
.table-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.ledger thead th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 0 16px 14px 0; border-bottom: 1px solid var(--rule-strong); vertical-align: bottom; }
.ledger tbody th, .ledger td { text-align: left; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger tbody th { font-weight: 400; width: 28%; }
.grade { display: block; font: 400 30px/1.05 var(--serif); letter-spacing: -.01em; color: var(--green); font-variant-numeric: lining-nums; }
.grade-long { display: block; margin-top: 6px; font: italic 400 16px/1.3 var(--serif); color: var(--muted); }
.ledger tbody tr { transition: background-color .25s; }
.ledger tbody tr:hover { background: rgba(255, 255, 255, .3); }
.ledger sup, .table-notes sup { font-size: 10px; color: var(--brass-text); font-weight: 600; }
.table-notes { margin-top: 20px; max-width: 80ch; font: 400 13px/1.6 var(--sans); color: var(--muted); }

/* V. Correspondents */
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.person { padding: 24px 24px 30px 0; border-right: 1px solid var(--rule); }
.person + .person { padding-left: 24px; }
.person:last-child { border-right: 0; }
.person-place { font: italic 400 17px/1.2 var(--serif); color: var(--brass-text); }
.person-name { margin-top: 40px; font: 400 27px/1.1 var(--serif); letter-spacing: -.01em; }
.person-role { margin-top: 8px; font: 400 14px/1.45 var(--sans); color: var(--muted); min-height: 2.9em; }
.person-time { margin-top: 26px; font: 400 14px/1 var(--sans); color: var(--muted); }
.person-time time { font: 300 40px/1 var(--serif); color: var(--green); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; margin-right: 6px; }
.person-ports { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font: 400 13px/1.45 var(--sans); color: var(--muted); }
.people-foot { margin-top: 30px; font: 400 15px/1.6 var(--sans); color: var(--muted); }
.people-foot .link { color: var(--ink); white-space: nowrap; margin-left: 4px; }

/* VI. Write */
.write {
  max-width: none; background: var(--green); color: var(--on-green);
  margin-top: clamp(96px, 11vw, 176px); padding-bottom: clamp(96px, 10vw, 150px);
}
.write > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.letter-form {
  display: block; padding-left: calc((100% - 11 * var(--col-gap)) / 12 * 2 + 2 * var(--col-gap));
}
.lf-salutation { font: italic 300 clamp(26px, 2.4vw, 34px)/1.2 var(--serif); color: var(--brass-light); margin-bottom: 18px; }
.lf-body { max-width: 30em; font: 300 clamp(26px, 2.6vw, 40px)/1.75 var(--serif); letter-spacing: -.01em; }
.lf-body + .lf-body { margin-top: .4em; }
.blank { position: relative; display: inline-block; vertical-align: baseline; }
.blank input, .choice {
  min-width: 4ch; padding: 0 .1em; height: 1.35em; line-height: 1;
  font: italic 400 1em/1 var(--serif); color: var(--on-green);
  background: transparent; border: 0; border-bottom: 1px solid var(--brass-light); border-radius: 0;
  transition: border-color .2s, background-color .2s;
}
.blank input::placeholder { color: rgba(235, 230, 218, .45); }
.blank input:hover, .choice:hover { background: rgba(235, 230, 218, .05); }
.blank input:focus, .choice:focus { outline: none; border-bottom: 2px solid var(--on-green); background: rgba(235, 230, 218, .08); }
.blank input:focus-visible, .choice:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }
.blank input[aria-invalid="true"] { border-bottom-color: #f0a98c; }
.choice { display: inline-flex; align-items: center; gap: .3em; cursor: pointer; text-align: left; white-space: nowrap; }
.choice.is-empty .choice-value { color: rgba(235, 230, 218, .45); }
.choice-caret { width: .32em; height: .32em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-.12em) rotate(45deg); transition: transform .25s var(--ease); }
.choice[aria-expanded="true"] .choice-caret { transform: translateY(.06em) rotate(225deg); }
.choice-list {
  position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); min-width: 280px;
  padding: 6px; background: var(--paper-3); color: var(--ink);
  border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  font: 400 16px/1.3 var(--sans); letter-spacing: 0; white-space: normal;
}
.choice-list[hidden] { display: none; }
.choice-list li { padding: 11px 14px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.choice-list li.is-active { background: var(--paper-2); }
.choice-list li[aria-selected="true"]::after { content: ""; width: 6px; height: 11px; border-right: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(45deg); align-self: center; }
.choice-list:focus { outline: none; }
.lf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--rule-on-green); }
.lf-note { font: 400 14px/1.5 var(--sans); color: var(--on-green-muted); }
.lf-status { margin-top: 18px; min-height: 1.5em; font: 400 15px/1.5 var(--sans); color: var(--brass-light); }

/* ---------- Colophon ---------- */
.colophon { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) var(--gutter) 36px; }
.colophon-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--rule-strong); }
.colophon-mark { grid-column: 1 / span 7; font: 300 clamp(56px, 8vw, 128px)/.9 var(--serif); letter-spacing: -.04em; color: var(--green); }
.colophon-mark i { color: var(--brass); }
.colophon-line { grid-column: 9 / span 4; font: italic 400 20px/1.4 var(--serif); color: var(--muted); }
.colophon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--col-gap); padding: 40px 0 56px; font: 400 15px/1.65 var(--sans); }
.col-head { font: italic 400 17px/1.2 var(--serif); color: var(--brass-text); margin-bottom: 12px; }
.col-links a { text-decoration: none; }
.col-links a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .22em; }
.col-small { font-size: 14px; color: var(--muted); max-width: 32ch; }
.colophon-base { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--rule); font: 400 13px/1.4 var(--sans); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .masthead-note { display: none; }
  .masthead { grid-template-columns: 1fr auto; }
  .plate--cover { grid-column: 1 / -1; }
  .plate--cover .plate-frame { flex: none; aspect-ratio: 1672 / 760; min-height: 0; }
  .cover-side { grid-column: 1 / -1; grid-row: 3; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .cover-actions { grid-column: 1; }
  .cover-contents { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding-top: 0; }
  .cover-contents-head { column-span: all; }
  .cover-contents li { break-inside: avoid; }
  .chapter-num { grid-column: 1 / span 1; }
  .chapter-head h2 { grid-column: 2 / span 11; }
  .chapter-dek { grid-column: 2 / span 9; margin-top: 18px; }
  .letter-text { grid-column: 2 / span 7; }
  .letter-notes { grid-column: 9 / span 4; grid-row: 1; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person:nth-child(3) { border-right: 0; }
  .person:nth-child(4) { padding-left: 0; }
  .person:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .letter-form { padding-left: 0; }
  .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 18px; }
  html { scroll-padding-top: 72px; }
  .masthead { height: 64px; gap: 12px; }
  .masthead.is-scrolled { height: 58px; }
  .wordmark-name { font-size: 20px; }
  .wordmark-seal { width: 30px; height: 30px; font-size: 17px; }
  .masthead .btn--small { display: none; }
  .contents-list a { grid-template-columns: 40px 1fr; gap: 6px 14px; }
  .contents-list .c-desc { grid-column: 2; }
  .contents { padding-top: 84px; }

  .cover { padding-top: 104px; }
  .cover-title { font-size: clamp(46px, 13.4vw, 64px); line-height: .98; }
  .cover-title .line:nth-child(2) { padding-left: 0; }
  .cover-standfirst { margin-top: 26px; font-size: 20px; }
  .cover-actions { margin-top: 28px; }
  .cover-actions .btn { width: 100%; }
  .cover-side { display: contents; }
  .cover-standfirst { grid-column: 1 / -1; grid-row: 2; }
  .cover-actions { grid-column: 1 / -1; grid-row: 3; }
  .plate--cover { grid-row: 4; margin-top: 44px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .plate--cover .plate-frame { aspect-ratio: 4 / 3.6; }
  .cover-contents { grid-column: 1 / -1; grid-row: 5; margin-top: 48px; }
  .plate--cover .caption { padding-left: var(--gutter); padding-right: var(--gutter); }
  .caption { grid-template-columns: auto 1fr; }
  .caption-meta { grid-column: 2; }

  .chapter-head { grid-template-columns: 1fr; row-gap: 12px; }
  .chapter-num, .chapter-head h2, .chapter-dek { grid-column: 1; }
  .chapter-num { font-size: 34px; }
  .chapter-dek { margin-top: 4px; }

  .letter-body { grid-template-columns: 1fr; row-gap: 44px; }
  .letter-text, .letter-notes, .letter-body .plate--desk { grid-column: 1; grid-row: auto; }
  .letter-text p { font-size: 19px; }
  .letter-body .plate--desk { width: 78%; justify-self: end; }

  .entries { grid-template-columns: 1fr; }
  .entries::before { display: none; }
  .entry:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .entry { padding: 26px 0 32px; }

  .essay-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 48px; }
  .essay-a { grid-column: 1 / -1; margin: 0 calc(-1 * var(--gutter)); }
  .essay-a .caption, .essay-d .caption { padding-left: var(--gutter); padding-right: var(--gutter); }
  .essay-b { grid-column: 2 / -1; margin-top: 0; }
  .essay-quote { grid-column: 1 / -1; }
  .essay-c { grid-column: 1 / span 5; }
  .essay-d { grid-column: 1 / -1; margin: 0 calc(-1 * var(--gutter)); }
  .essay-d .plate-frame { aspect-ratio: 3 / 2; }

  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: 100%; }
  .ledger tbody tr { padding: 22px 0 16px; border-bottom: 1px solid var(--rule); }
  .ledger tbody tr:first-child { border-top: 1px solid var(--rule-strong); }
  .ledger tbody th { width: auto; padding: 0 0 12px; border: 0; }
  .ledger td { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border: 0; border-top: 1px dotted var(--rule); text-align: right; }
  .ledger td::before { content: attr(data-label); color: var(--muted); text-align: left; }
  .ledger tbody tr:hover { background: none; }

  .people { grid-template-columns: 1fr; }
  .person, .person + .person { padding: 22px 0 24px; border-right: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
  .person:first-child { border-top: 0; }
  .person-place { grid-column: 1; }
  .person-name { grid-column: 1; margin-top: 10px; font-size: 25px; }
  .person-role { grid-column: 1; min-height: 0; }
  .person-time { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; text-align: right; display: grid; gap: 6px; }
  .person-time time { font-size: 34px; margin: 0; }
  .person-ports { grid-column: 1 / -1; }

  .lf-body { font-size: 24px; line-height: 1.9; }
  .blank input { max-width: 100%; }
  .blank--wide input { width: calc(100vw - 2 * var(--gutter) - .5em); }
  .choice-list { min-width: 240px; max-width: calc(100vw - 2 * var(--gutter)); }
  .lf-foot .btn { width: 100%; }

  .colophon-top { grid-template-columns: 1fr; row-gap: 18px; }
  .colophon-mark, .colophon-line { grid-column: 1; }
  .colophon-grid { grid-template-columns: 1fr; }
  .colophon-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-drift] { transform: none !important; }
}
.chapter-dek, .cover-standfirst, .people-foot { text-wrap: pretty; }

/* Long-form company wordmark and the brass lighthouse seal. */
.wordmark-seal { flex: 0 0 auto; padding: 0; }
.wordmark-seal svg { width: 28px; height: 28px; }
.wordmark-name { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1400px) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead-note { display: none; }
}
@media (max-width: 760px) {
  .wordmark { gap: 8px; }
  .wordmark-name { font-size: 20px; line-height: 1.05; }
  .wordmark-name i { display: block; font-size: 17px; }
  .person-time { max-width: 12ch; line-height: 1.4; }
  .colophon-mark { font-size: clamp(44px, 11.5vw, 72px); }
  .colophon-mark i { display: block; }
}

/* Long Turkish brand name: keep headings and contents entries balanced */
.chapter-head h2, .contents-list .c-title { text-wrap: balance; }
