:root {
  --paper: #eee9df;
  --paper-deep: #dfd8ca;
  --ink: #181a17;
  --muted: #686b65;
  --line: #b8b5aa;
  --signal: #ef4f35;
  --cool: #3f6f75;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0 49.9%, #191b180b 50%, transparent 50.1%),
    var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Baskerville", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 16px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.page { min-height: 100vh; padding: 0 var(--pad) 48px; }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.wordmark { width: max-content; color: inherit; font-size: 18px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.topbar nav { display: flex; justify-content: flex-end; gap: 22px; }
.topbar nav a { text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  min-height: min(620px, 72vh);
  border-bottom: 1px solid var(--ink);
}
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(38px, 7vw, 92px) 4vw 34px 0; }
.kicker {
  margin: 0;
  color: var(--signal);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 { max-width: 900px; margin: 18px 0 0; font-size: clamp(62px, 11vw, 170px); font-weight: 400; letter-spacing: -.075em; line-height: .78; }
h1 em { display: block; margin-left: .68em; color: var(--cool); font-style: italic; }
.hero-note { max-width: 39em; margin: 48px 0 0; color: var(--muted); font-size: clamp(15px, 1.35vw, 20px); }
.hero-plate { position: relative; overflow: hidden; border-left: 1px solid var(--ink); background: #242923; isolation: isolate; }
.hero-plate::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  left: -46%;
  top: 9%;
  border: 1px solid #eee9dfb8;
  border-radius: 50%;
  box-shadow: 0 0 0 42px #242923, 0 0 0 43px #eee9df55, 0 0 0 92px #242923, 0 0 0 93px #eee9df2e;
}
.hero-plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 42%, #ef4f35 42.2% 55%, transparent 55.2%); mix-blend-mode: screen; }
.plate-label { position: absolute; z-index: 2; right: 22px; bottom: 24px; color: var(--paper); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .18em; text-align: right; text-transform: uppercase; }

.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 28px 0 20px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 44px); font-weight: 400; letter-spacing: -.04em; }
.section-head span { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .12em; }

.studies { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--ink); }
.study { min-width: 0; min-height: 410px; background: var(--paper); }
.study-link { height: 100%; padding: 22px; display: flex; flex-direction: column; gap: 22px; text-decoration: none; }
.study-visual { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ink); filter: saturate(.88); transition: filter .25s ease, transform .25s ease; }
.study-link:hover .study-visual { filter: saturate(1.08) contrast(1.03); transform: translateY(-3px); }
.study-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; }
.study-meta b { color: var(--signal); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10px; }
.study-meta h3 { margin: 0; font-size: 22px; font-weight: 400; }
.study-meta span { color: var(--signal); font-size: 18px; }
.study p { margin: auto 0 0; color: var(--muted); font-size: 14px; }

.notes { display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--ink); }
.notes-intro { padding: 52px 5vw 52px 0; }
.notes-intro h2 { margin: 9px 0 16px; font-size: clamp(34px, 4vw, 58px); font-weight: 400; letter-spacing: -.05em; }
.notes-intro p:last-child { max-width: 26em; color: var(--muted); }
.notes-list { border-left: 1px solid var(--ink); }
.note { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 25px 0 25px 28px; border-bottom: 1px solid var(--line); align-items: baseline; text-decoration: none; transition: background .2s ease, padding-left .2s ease; }
.note:hover { padding-left: 36px; background: #f7f3ea; }
.note:last-child { border-bottom: 0; }
.note time, .note small, .meta { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .08em; }
.note h3 { margin: 0; font-size: clamp(18px, 2vw, 28px); font-weight: 400; }
footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; color: var(--muted); font-size: 12px; }
footer strong { color: var(--ink); letter-spacing: .12em; }

.article-shell { max-width: 1380px; margin: 0 auto; }
.article-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); min-height: 410px; border-bottom: 1px solid var(--ink); }
.article-title { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(46px, 8vw, 100px) 5vw 34px 0; }
.article-title h1 { max-width: 9em; margin: 20px 0; font-size: clamp(56px, 9vw, 126px); line-height: .86; }
.article-index { align-self: stretch; display: grid; place-items: center; border-left: 1px solid var(--ink); color: var(--paper); background: var(--ink); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(80px, 14vw, 210px); font-weight: 700; letter-spacing: -.1em; }
.article-figure { margin: 0; padding: clamp(20px, 3vw, 42px) 0; border-bottom: 1px solid var(--ink); }
.article-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 720px; object-fit: cover; }
.article-figure figcaption { display: flex; justify-content: space-between; gap: 18px; padding-top: 12px; color: var(--muted); font-size: 11px; }
.article-content { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); border-bottom: 1px solid var(--ink); }
.article-aside { padding: 54px 4vw 54px 0; }
.article-aside dl { margin: 0; }
.article-aside div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.article-aside dt { color: var(--signal); font: 700 9px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .14em; }
.article-aside dd { margin: 4px 0 0; font-size: 13px; }
.article-body { padding: 54px 0 64px clamp(28px, 6vw, 90px); border-left: 1px solid var(--ink); font-size: clamp(17px, 1.45vw, 21px); }
.article-body p { max-width: 38em; margin: 0 0 1.45em; }
.article-body > p:first-child::first-letter { float: left; margin: .06em .13em 0 0; color: var(--signal); font-size: 4.5em; line-height: .68; }
.pullquote { max-width: 18em; margin: 2.2em 0; padding: .7em 0 .7em .8em; border-left: 6px solid var(--signal); color: var(--cool); font-size: clamp(27px, 3.2vw, 46px); line-height: 1.12; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.article-nav a { min-height: 150px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.article-nav a + a { border-left: 1px solid var(--ink); text-align: right; }
.article-nav small { color: var(--signal); font: 700 10px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; }
.article-nav strong { font-size: clamp(24px, 3vw, 42px); font-weight: 400; }

.error-page { min-height: 100vh; overflow: hidden; background: var(--ink); color: var(--paper); }
.error-wrap { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--pad) 34px; background: radial-gradient(circle at 75% 30%, #3f6f7540 0 1px, transparent 2px) 0 0 / 23px 23px; }
.error-page .topbar { border-color: #eee9df66; }
.error-code { align-self: center; position: relative; margin: 0; color: var(--paper); font: 700 clamp(150px, 37vw, 540px)/.72 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: -.13em; }
.error-code::after { content: "FIELD NOTE NOT FOUND"; position: absolute; left: .06em; bottom: -.5em; color: var(--signal); font-size: clamp(12px, 1.5vw, 22px); letter-spacing: .2em; }
.error-foot { display: flex; justify-content: space-between; align-items: end; gap: 30px; border-top: 1px solid #eee9df66; padding-top: 24px; }
.error-foot p { max-width: 34em; margin: 0; color: #eee9dfaa; }
.back-home { display: inline-block; padding: 12px 16px; border: 1px solid var(--paper); text-decoration: none; font: 700 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .1em; }
.back-home:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 820px) {
  body { background: var(--paper); }
  .topbar { grid-template-columns: 1fr auto; }
  .mark { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 520px; padding-right: 0; }
  .hero-plate { min-height: 300px; border-left: 0; border-top: 1px solid var(--ink); }
  .studies { grid-template-columns: 1fr; }
  .study { min-height: 0; }
  .notes { grid-template-columns: 1fr; }
  .notes-list { border-left: 0; border-top: 1px solid var(--ink); }
  .article-head { grid-template-columns: 1fr; }
  .article-title { min-height: 430px; padding-right: 0; }
  .article-index { min-height: 190px; border-left: 0; border-top: 1px solid var(--ink); }
  .article-content { grid-template-columns: 1fr; }
  .article-aside { padding-right: 0; }
  .article-body { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 520px) {
  .page { padding-bottom: 30px; }
  .topbar nav { gap: 13px; }
  .topbar nav a:last-child { display: none; }
  h1 { font-size: clamp(58px, 24vw, 94px); }
  .note { grid-template-columns: 72px 1fr; padding-left: 0; }
  .note:hover { padding-left: 7px; }
  .note small { display: none; }
  footer, .article-figure figcaption, .error-foot { flex-direction: column; align-items: flex-start; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a + a { border-left: 0; border-top: 1px solid var(--ink); text-align: left; }
  .error-code { font-size: 45vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .study-visual, .note { transition: none; }
}
