/* ==========================================================
   Eton Law Review — site styles
   Palette and type are defined once here in :root.
   ========================================================== */

:root {
  --eton: #96c8a2;        /* Eton blue — the field colour */
  --eton-pale: #dcebe0;
  --eton-deep: #4f8a63;
  --ink: #1a2433;         /* navy ink */
  --ink-2: #4b5666;
  --paper: #ffffff;
  --paper-2: #f3f6f4;
  --rule: #d5ddd8;
  --binding: #8c2f2b;     /* law-report red: citations & note numbers only */
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Spectral", Georgia, serif;
  --max: 1180px;
  --read: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 19px; line-height: 1.65; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--binding); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.cite { font-family: var(--display); font-weight: 600; color: var(--binding); font-feature-settings: "tnum"; white-space: nowrap; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.logo-word span { font-weight: 400; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; gap: 4px; font-family: var(--display); font-size: 15px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 4px; color: var(--ink-2); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--eton-pale); color: var(--ink); font-weight: 600; }
.menu-btn { display: none; font-family: var(--display); font-size: 15px; background: none; border: 1px solid var(--ink); border-radius: 4px; padding: 7px 14px; color: var(--ink); cursor: pointer; }

/* ---------- hero: the shelf ---------- */
.hero { background: var(--eton); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; min-height: 500px; padding-top: 72px; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.035em; margin: 0 0 24px; }
.hero p { font-size: 21px; line-height: 1.5; max-width: 420px; margin: 0; }
.hero .vol { font-family: var(--display); font-size: 15px; margin-top: 32px; }

.hero-grid > * { min-width: 0; }
.desk-scene { display: flex; align-items: flex-end; gap: 22px; justify-content: flex-end; min-width: 0; }
.stack { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; max-width: 540px; min-width: 0; padding-right: 26px; }
.book {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 9px 18px;
  text-decoration: none; font-family: var(--display); border-radius: 2px;
  transition: transform .3s ease; position: relative;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.12), inset -6px 0 0 rgba(0,0,0,.12);
}
.book:hover, .book:focus-visible { transform: translateX(26px) rotate(0deg) !important; }
.book .c { font-size: 11.5px; align-self: stretch; display: flex; align-items: center; font-weight: 600; white-space: nowrap; opacity: .8; padding-right: 14px; border-right: 2px solid currentColor; line-height: 1.3; }
.book .t { font-weight: 600; font-size: 14.5px; line-height: 1.22; letter-spacing: -.01em; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book.b0 { background: var(--ink); color: #fff; width: 94%; margin-left: 2%; transform: rotate(-.6deg); }
.book.b1 { background: var(--paper); color: var(--ink); width: 86%; margin-left: 7%; transform: rotate(.8deg); padding-block: 7px; }
.book.b2 { background: var(--binding); color: #fff; width: 100%; margin-left: 0; transform: rotate(-.3deg); padding-block: 12px; }
.book.b3 { background: var(--eton-pale); color: var(--ink); width: 90%; margin-left: 4%; transform: rotate(.5deg); }
.book.b4 { background: #2f4a5e; color: #fff; width: 97%; margin-left: 1%; transform: rotate(0deg); padding-block: 11px; }
.book.empty { background: transparent; box-shadow: none; border: 2px dashed var(--ink); color: var(--ink); width: 78%; margin-left: 12%; transform: rotate(-1.2deg); min-height: 46px; }
.book.empty:hover { background: rgba(255,255,255,.25); }

.mug { width: 150px; flex: none; }
.mug svg { display: block; width: 100%; height: auto; overflow: visible; }
.steam path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; opacity: 0; animation: steam 4.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.4s; }
.steam path:nth-child(3) { animation-delay: 2.8s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(14px) scaleY(.85); }
  25% { opacity: .75; }
  70% { opacity: .35; }
  100% { opacity: 0; transform: translateY(-26px) scaleY(1.1); }
}
.desk { height: 26px; background: var(--ink); border-top: 6px solid #2a3a50; }

/* ---------- sections ---------- */
.block { padding: 80px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; }
.block-head h2 { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.025em; margin: 0; }
.block-head a { font-family: var(--display); font-size: 16px; color: var(--ink-2); }

/* ---------- report list ---------- */
.reports { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.report { display: grid; grid-template-columns: 150px 1fr 200px; gap: 32px; padding: 28px 0 30px; border-bottom: 1px solid var(--rule); }
.report .cite { font-size: 15px; padding-top: 6px; }
.report h3 { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.report h3 a { text-decoration: none; }
.report h3 a:hover { text-decoration: underline; text-decoration-color: var(--eton); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.report p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.report .who { font-family: var(--display); font-size: 15px; padding-top: 6px; }
.report .who b { display: block; font-weight: 600; }
.report .who span:first-child { display: block; color: var(--ink-2); }
.report .who span { color: var(--ink-2); }
.kind { display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 3px; background: var(--paper-2); color: var(--ink-2); margin-top: 8px; }
.kind.essay { background: var(--eton-pale); color: var(--ink); }

/* ---------- homepage covers (same bindings as the stack) ---------- */
.latest { background: var(--eton-pale); }
.covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cover {
  display: flex; flex-direction: column; min-height: 270px; padding: 30px 32px 26px 40px;
  text-decoration: none; border-radius: 2px 6px 6px 2px; position: relative;
  box-shadow: inset 12px 0 0 rgba(0,0,0,.14); transition: transform .25s ease;
}
.cover:hover, .cover:focus-visible { transform: translateY(-5px); }
.cover .cite { color: inherit; opacity: .85; font-size: 14px; }
.cover h3 { font-family: var(--display); font-weight: 700; font-size: 29px; line-height: 1.1; letter-spacing: -.025em; margin: 14px 0 12px; }
.cover p { margin: 0 0 22px; font-size: 17px; line-height: 1.5; opacity: .9; max-width: 46ch; }
.cover .foot-line { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: 15px; padding-top: 14px; border-top: 1.5px solid currentColor; }
.cover .foot-line b { font-weight: 600; }
.cover.b0 { background: var(--ink); color: #fff; }
.cover.b1 { background: var(--paper); color: var(--ink); }
.cover.b2 { background: var(--binding); color: #fff; }
.cover.b3 { background: var(--eton); color: var(--ink); }
.cover.b4 { background: #2f4a5e; color: #fff; }
.cover.b1 .cite { color: var(--binding); opacity: 1; }

/* archive rows carry the same binding colour on their edge */
.reports .report { border-left: 8px solid var(--rule); padding-left: 24px; }
.reports .report.b0 { border-left-color: var(--ink); }
.reports .report.b1 { border-left-color: #c9d3cd; }
.reports .report.b2 { border-left-color: var(--binding); }
.reports .report.b3 { border-left-color: var(--eton); }
.reports .report.b4 { border-left-color: #2f4a5e; }

/* ---------- archive controls ---------- */
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.controls button { font-family: var(--display); font-size: 15px; background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 16px; cursor: pointer; color: var(--ink); }
.controls button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { font-family: var(--display); font-size: 15px; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 4px; margin-left: auto; min-width: 260px; background: var(--paper); }
.empty-note { padding: 36px 0; color: var(--ink-2); }

/* ---------- ink band ---------- */
.band { background: var(--ink); color: #e8edf1; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -.03em; margin: 0; color: #fff; }
.band p { margin: 0 0 24px; }
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; padding: 13px 22px; border-radius: 4px; background: var(--eton); color: var(--ink); }
.btn:hover { background: #aed6b7; }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; margin-left: 8px; }
.btn.line:hover { background: rgba(255,255,255,.08); }

/* ---------- inner page head ---------- */
.page-head { background: var(--eton-pale); padding: 72px 0 56px; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.5vw, 68px); line-height: 1; letter-spacing: -.035em; margin: 0 0 16px; }
.page-head p { font-size: 21px; margin: 0; max-width: 560px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 64px 0; border-bottom: 1px solid var(--rule); }
.split:last-child { border-bottom: 0; }
.split h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 0; }
.split h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.split p { margin: 0 0 18px; max-width: 62ch; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.board div { border-top: 2px solid var(--ink); padding-top: 12px; font-family: var(--display); }
.board b { display: block; font-size: 19px; font-weight: 600; }
.board span { font-size: 15px; color: var(--ink-2); }

/* ---------- article ---------- */
.art-head { padding: 64px 0 60px; }
.art-head.b0 { background: var(--ink); color: #fff; }
.art-head.b1 { background: var(--eton-pale); color: var(--ink); }
.art-head.b2 { background: var(--binding); color: #fff; }
.art-head.b3 { background: var(--eton); color: var(--ink); }
.art-head.b4 { background: #2f4a5e; color: #fff; }
.art-head .inner { max-width: 900px; }
.art-head .back { font-family: var(--display); font-size: 15px; text-decoration: none; opacity: .85; }
.art-head .back:hover { opacity: 1; text-decoration: underline; }
.art-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; }
.art-head .stand { font-size: 22px; line-height: 1.45; max-width: 640px; margin: 0 0 22px; opacity: .92; }
.art-head .by { font-family: var(--display); font-size: 18px; margin: 0; }
.art-head .by b { font-weight: 600; }

.art-body { display: grid; grid-template-columns: minmax(0, 680px) 280px; gap: 72px; padding: 64px 32px 88px; max-width: var(--max); margin: 0 auto; justify-content: space-between; }
.prose > p { margin: 0 0 1.15em; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--display); font-weight: 700; font-size: 4.1em; line-height: .82; padding: 6px 12px 0 0; color: var(--drop, var(--ink)); }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 52px 0 16px; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--paper-2); border-left: 5px solid var(--eton); border-radius: 0 4px 4px 0; color: var(--ink-2); }
.prose hr.break { border: 0; margin: 48px 0; height: 0; text-align: center; }
.prose hr.break::after { content: "§"; font-family: var(--display); font-size: 24px; color: var(--eton-deep); }
.prose .signoff { margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--ink); font-family: var(--display); font-size: 16px; }

.side { align-self: start; position: sticky; top: 24px; display: grid; gap: 14px; font-family: var(--display); font-size: 15px; }
.side .panel { background: var(--eton-pale); border-radius: 6px; padding: 20px 22px; }
.side h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.side dt { color: var(--ink-2); }
.side dd { margin: 0; font-weight: 600; }
.side .citation { font-family: var(--text); font-size: 16px; line-height: 1.45; margin: 0 0 12px; }
.side button { font-family: var(--display); font-size: 14px; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.side button:hover { background: var(--eton-deep); }

.more { background: var(--eton-pale); }

/* ---------- footer ---------- */
.site-footer { background: var(--eton); padding: 56px 0 32px; font-family: var(--display); font-size: 15px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot p { max-width: 340px; margin: 18px 0 0; font-family: var(--text); font-size: 17px; }
.foot h4 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.foot a:not(.logo) { display: block; text-decoration: none; padding: 3px 0; }
.foot a:not(.logo):hover { text-decoration: underline; }
.fine { margin-top: 48px; padding-top: 18px; border-top: 1.5px solid var(--ink); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .wrap { padding: 0 22px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 14px 16px; }
  .nav.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; gap: 8px; }
  .hero-copy { padding-bottom: 32px; }
  .desk-scene { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .mug { width: 76px; align-self: flex-end; margin: 0 34px -4px 0; }
  .stack { padding-right: 12px; max-width: none; }
  .book { min-height: 44px; padding: 7px 12px; gap: 10px; }
  .book .t { font-size: 13px; -webkit-line-clamp: 3; }
  .book .c { font-size: 11px; padding-right: 10px; }
  .book:hover, .book:focus-visible { transform: translateX(12px) !important; }
  .report { grid-template-columns: 1fr; gap: 6px; }
  .covers { grid-template-columns: 1fr; }
  .cover { min-height: 0; padding: 26px 24px 22px 34px; }
  .cover h3 { font-size: 25px; }
  .band-grid, .split, .foot { grid-template-columns: 1fr; gap: 28px; }
  .board { grid-template-columns: 1fr 1fr; }
  .art-body { grid-template-columns: 1fr; gap: 36px; padding: 40px 22px 64px; }
  .side { position: static; }
  .art-head { padding: 44px 0 40px; }
  .search { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .book, .cover { transition: none; } .steam path { animation: none; opacity: .5; } }
