:root {
  --ink: #253630;
  --muted: #526157;
  --orange: #ad3c1a;
  --tab: #ed7042;
  --ground: #f3f1e9;
  --paper: #fffdf7;
  --line: #cbcfc4;
  --wash: #e7ebe0;
  --peach: #f7e3d4;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 18px/1.65 var(--sans); }
body > header, main, body > footer { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
body > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
body > header p { margin: 0; font: 16px/1.5 var(--mono); }
body > header p:first-of-type { display: flex; align-items: center; gap: 16px; }
body > header strong { font: 600 18px/1.4 var(--sans); }
body > header p:first-of-type::before { content: ""; width: 34px; height: 42px; flex: 0 0 34px; border: 2px solid var(--orange); border-left-width: 7px; transform: rotate(-7deg); background: var(--paper); box-shadow: 4px 4px 0 var(--peach); }
main { padding-block: 64px 28px; }
main > header { padding-bottom: 56px; }
main > header > div { align-self: center; }
h1, h2, h3, dt { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.12; text-wrap: balance; }
h1 { max-width: 820px; font-size: clamp(42px, 4.85vw, 70px); letter-spacing: -.04em; }
h1 em { display: block; color: var(--orange); font-weight: 400; }
h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.025em; }
h3, dt { font-size: 28px; letter-spacing: -.02em; }
p { margin: 18px 0 0; max-width: 65ch; }
small, figcaption, summary, button, a, li, dd { font-size: inherit; }
small { display: block; line-height: 1.6; }
em { font-family: var(--serif); }
dfn { font-style: normal; }
a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
p > a, aside > a, figcaption > a, footer > a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }
ul, ol { padding-left: 24px; margin-block: 20px 0; }
li { padding-block: 7px; max-width: 65ch; }
strong { font-weight: 650; }
button { padding: 12px 20px; min-height: 48px; background: var(--paper); color: var(--orange); border: 1px solid var(--orange); border-radius: 3px; font: 600 17px/1.4 var(--sans); cursor: pointer; }
button:hover { background: var(--peach); }
[hidden] { display: none !important; }
.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pad { padding: 32px; }
.border { border: 1px solid var(--line); }
.paper { background: var(--paper); }
.warm { background: var(--peach); }
.wash { background: var(--wash); }
.mono { font: 16px/1.5 var(--mono); color: var(--muted); letter-spacing: .01em; }
.measure { max-width: 65ch; }
.lead { font-size: 21px; line-height: 1.55; }
.space { margin-top: 40px; }
.orange { color: var(--orange); }
.skip { position: fixed; left: 16px; top: 16px; z-index: 10; padding: 12px 20px; min-height: 48px; transform: translateY(-180%); background: var(--ink); color: var(--paper); }
.skip:focus { transform: translateY(0); }
main > header .mono { margin-block: 0 22px; }
main > header .lead { margin-top: 26px; max-width: 48ch; }
main > section { margin-block: 24px 54px; }
section > header { margin-bottom: 28px; }
section > header > p { max-width: 65ch; }
article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .44fr); gap: 48px; padding: 34px 0; border-top: 1px solid var(--line); }
article > div, article > aside { min-width: 0; }
article > aside { align-self: start; padding: 4px 0 4px 22px; border-left: 2px solid var(--tab); }
aside > p:first-child { margin-top: 0; }
aside a { line-height: 1.4; overflow-wrap: anywhere; }
aside small { color: var(--muted); font-size: 16px; }
figure { margin: 0; }
figure > dl { margin: 0; }
figure > dl > div { padding: 30px 28px; background: var(--paper); border-top: 4px solid var(--ink); }
figure > dl > div:nth-child(2) { border-color: var(--orange); background: var(--peach); }
figure > dl > div:nth-child(3) { border-color: #64735b; background: var(--wash); }
dd { margin: 0; }
dd > p:first-child { margin-top: 18px; }
dd > aside { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
figcaption { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 72ch; }
section > aside { padding: 28px 32px; border-left: 4px solid var(--tab); background: var(--paper); }
section > aside h3 { font-size: 29px; }
details { margin-block: 16px; border: 1px solid var(--line); background: var(--paper); }
summary { position: relative; display: flex; align-items: center; min-height: 72px; gap: 20px; padding: 20px 56px 20px 24px; list-style: none; cursor: pointer; font-weight: 600; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; font: 28px/1 var(--mono); color: var(--orange); }
details[open] > summary::after { content: "−"; }
details[open] > summary { border-bottom: 1px solid var(--line); }
details > div { padding: 0 24px 24px; }
details aside { padding-top: 12px; }
details aside p { margin-block: 12px; }
nav { margin-block: 32px; }
nav > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 0 28px; }
nav li { padding: 0; max-width: none; border-top: 1px solid var(--line); }
nav a { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 8px; padding: 22px 12px 22px 0; min-height: 100px; color: var(--ink); text-decoration: none; }
nav a > span:first-child { grid-column: 1; font: 28px/1.2 var(--serif); }
nav a > small { grid-column: 1; font-size: 16px; color: var(--muted); }
nav a > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--orange); }
nav a:hover > span:first-child { color: var(--orange); text-decoration: underline; text-underline-offset: 5px; }
nav a[aria-current="page"] { border-left: 4px solid var(--tab); padding-left: 18px; background: var(--paper); }
body > footer { padding-block: 32px 40px; border-top: 1px solid var(--line); }
body > footer > p { font-size: 16px; }
body > footer > p:first-child { margin: 0; }
body > footer nav { margin-top: 24px; }
body > footer > .mono { font: 16px/1.5 var(--mono); color: var(--muted); margin: 0 0 16px; }
body > footer nav a { min-height: 84px; padding-block: 16px; }
body > footer nav a > span:first-child { font-size: 24px; }
[data-art] { position: relative; isolation: isolate; display: flex; align-items: end; aspect-ratio: 6 / 5; margin: 4px 0 0 24px; }
[data-art]::before { content: ""; position: absolute; z-index: -2; inset: 4% -4% 6% 2%; background: var(--wash); clip-path: polygon(0 3%, 98% 0, 100% 99%, 3% 96%); }
[data-art]::after { content: ""; position: absolute; z-index: -1; width: 68%; height: 68%; left: 13%; top: 13%; background: var(--paper); border: 1px solid var(--line); transform: rotate(-7deg); box-shadow: 8px 12px 0 #d8dacb; }
[data-art] > div { position: absolute; inset: 0; pointer-events: none; }
[data-art] > div::before { content: ""; position: absolute; inset: 32% 4% 16% 34%; background: var(--peach); transform: rotate(8deg); clip-path: polygon(0 0, 96% 0, 99% 8%, 95% 19%, 99% 28%, 96% 41%, 99% 58%, 94% 70%, 99% 90%, 95% 100%, 0 100%); box-shadow: 0 10px 12px #0001; }
[data-art] > div::after { content: ""; position: absolute; width: 14%; height: 20%; left: 18%; top: 6%; background: var(--tab); transform: rotate(-7deg); border-radius: 2px; box-shadow: 4px 5px 0 #0001; }
[data-art] img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
[data-art] figcaption { position: relative; z-index: 1; margin: 0 0 6% 0; padding: 14px 20px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font: 16px/1.5 var(--mono); transform: rotate(-2deg); max-width: 80%; }
[data-art="wide"] { aspect-ratio: 7 / 4; margin: 0; }
@media (min-width: 1600px) { body > header, main, body > footer { width: min(1280px, calc(100% - 120px)); } }
@media (max-width: 820px) {
  body > header, main, body > footer { width: calc(100% - 48px); }
  .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  main { padding-top: 44px; }
  main > header { padding-bottom: 28px; }
  main > header.grid { gap: 32px; }
  main > header .lead { font-size: 20px; }
  [data-art] { width: min(460px, 100%); margin: 0 auto; }
  article { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  article > aside { margin-left: 0; }
  .pad { padding: 26px; }
  figure > dl { gap: 16px; }
  nav > ul { grid-template-columns: minmax(0, 1fr); }
  body > header p:last-child { display: none; }
}
@media (max-width: 460px) {
  body { font-size: 17px; }
  body > header, main, body > footer { width: calc(100% - 40px); }
  body > header { padding-block: 24px; }
  body > header strong { font-size: 18px; }
  main { padding-top: 36px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  h3, dt { font-size: 28px; }
  main > header .mono { margin-bottom: 18px; }
  [data-art] { aspect-ratio: 6 / 4.4; }
  [data-art] figcaption { max-width: 94%; }
  section > aside { padding: 24px; }
  summary { padding-left: 20px; }
  details > div { padding-inline: 20px; }
  .pad { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; font-size: 12pt; }
  body > header, main, body > footer { width: 100%; }
  .skip, [data-art], button, nav, body > footer > .mono { display: none !important; }
  main { padding-top: 24px; }
  h1 { font-size: 34pt; }
  article { break-inside: avoid; }
  details > div { display: block !important; }
}
