:root {
  --paper: #f7f7f5;
  --white: #fff;
  --ink: #110e08;
  --muted: #66665f;
  --soft: #cecec6;
  --buy: #ccff00;
  --red: #c92e29;
  --olive: #477000;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--buy); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

.witness-head {
  width: min(1440px, calc(100% - 64px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  font: 600 9px/1.3 var(--mono);
  text-transform: uppercase;
}
.witness-head p { margin: 0; color: var(--muted); text-align: center; }
.witness-head > a:last-child { justify-self: end; }
.witness-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sans); font-size: 14px; font-weight: 900; }
.witness-wordmark span { padding: 5px 10px; background: var(--buy); font: 800 9px/1 var(--mono); }

main { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.witness-hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr);
  gap: 80px;
  align-items: end;
  padding: 82px 0 66px;
  border-bottom: 1px solid var(--ink);
}
.witness-kicker, .section-label, .section-head > p { margin: 0 0 24px; color: var(--olive); font: 700 10px/1.35 var(--mono); text-transform: uppercase; }
.witness-hero h1 { max-width: 1040px; margin: 0; font-size: clamp(62px, 8.7vw, 138px); font-weight: 900; letter-spacing: -.065em; line-height: .85; }
.witness-dek { max-width: 790px; margin: 40px 0 32px; color: var(--muted); font-size: 22px; line-height: 1.45; }
.witness-promises { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.witness-promises li { padding: 9px 12px; border: 1px solid var(--ink); background: var(--white); font: 600 9px/1 var(--mono); text-transform: uppercase; }
.witness-date { align-self: stretch; display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-content: end; border-left: 1px solid var(--ink); }
.witness-date > span, .witness-date > strong { min-height: 122px; display: grid; place-items: center; border-top: 1px solid var(--ink); font: 900 48px/1 var(--sans); }
.witness-date > strong { background: var(--buy); font-size: 76px; }
.witness-date > span:first-child { border-right: 1px solid var(--ink); }
.witness-date > span:nth-child(3) { border-left: 1px solid var(--ink); }
.witness-date small { grid-column: 1 / -1; padding: 18px 0 0; color: var(--muted); font: 9px/1.5 var(--mono); text-align: right; text-transform: uppercase; }

.memory-maker { padding: 76px 0 86px; border-bottom: 1px solid var(--ink); }
.section-head { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(220px, 360px); gap: 32px; align-items: end; margin-bottom: 34px; }
.section-head > p { margin: 0; }
.section-head h2 { margin: 0; font-size: 48px; line-height: 1; }
.section-head > span { color: var(--muted); font: 10px/1.5 var(--mono); text-transform: uppercase; }
.maker-grid { display: grid; grid-template-columns: minmax(340px, .7fr) minmax(520px, 1.3fr); gap: 42px; padding-top: 34px; border-top: 1px solid var(--soft); }
.memory-form { display: flex; flex-direction: column; gap: 24px; }
.memory-form label > span, .memory-form legend { display: block; margin: 0 0 9px; font: 700 10px/1.3 var(--mono); text-transform: uppercase; }
.memory-form label > span i { color: var(--muted); font-style: normal; font-weight: 400; }
.memory-form textarea, .memory-form input[type="text"] { width: 100%; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); }
.memory-form textarea { min-height: 156px; resize: vertical; padding: 16px; font-size: 19px; line-height: 1.45; }
.memory-form input[type="text"] { min-height: 48px; padding: 0 13px; }
.memory-form label > small { display: block; margin-top: 6px; color: var(--muted); font: 9px/1 var(--mono); text-align: right; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.memory-form fieldset { margin: 0; padding: 0; display: flex; gap: 8px; border: 0; }
.memory-form fieldset legend { margin-bottom: 9px; }
.memory-form fieldset label { position: relative; }
.memory-form fieldset input { position: absolute; opacity: 0; }
.memory-form fieldset label span { min-height: 40px; margin: 0; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--soft); background: var(--white); cursor: pointer; font: 600 9px/1 var(--mono); }
.memory-form fieldset input:checked + span { border-color: var(--ink); background: var(--buy); }
.maker-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.maker-actions button { min-height: 46px; padding: 0 16px; border: 1px solid var(--ink); background: var(--white); cursor: pointer; font: 700 9px/1 var(--mono); text-transform: uppercase; }
.maker-actions .action-primary { background: var(--buy); }
.maker-actions button:hover { background: var(--ink); color: var(--buy); }
.maker-status { min-height: 38px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--soft); color: var(--muted); font: 9px/1.5 var(--mono); text-transform: uppercase; }
.card-preview { margin: 0; align-self: start; }
.card-preview canvas { width: 100%; height: auto; display: block; border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 rgba(17, 14, 8, .09); }
.card-preview figcaption { margin-top: 13px; color: var(--muted); font: 8px/1.4 var(--mono); text-align: right; text-transform: uppercase; }

.archive-call { display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, .8fr); gap: 70px; padding: 86px 0; border-bottom: 1px solid var(--ink); }
.archive-call-copy h2 { max-width: 720px; margin: 0 0 25px; font-size: 72px; letter-spacing: -.045em; line-height: .9; }
.archive-call-copy > p:not(.section-label) { max-width: 690px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.archive-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.archive-actions a { min-height: 46px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--ink); background: var(--white); font: 700 9px/1 var(--mono); text-decoration: none; text-transform: uppercase; }
.archive-actions .archive-submit { background: var(--buy); }
.archive-actions a:hover { background: var(--ink); color: var(--buy); }
.archive-process { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.archive-process li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--soft); }
.archive-process li > span { color: var(--olive); font: 700 10px/1.5 var(--mono); }
.archive-process strong { display: block; margin-bottom: 5px; font-size: 17px; }
.archive-process p { margin: 0; color: var(--muted); font-size: 14px; }

.prompt-bank { padding: 76px 0; border-bottom: 1px solid var(--ink); }
.prompt-bank .section-head { grid-template-columns: 190px 1fr; }
.prompt-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.prompt-grid button { min-height: 180px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); cursor: pointer; font-size: 18px; font-weight: 700; text-align: left; }
.prompt-grid button:hover { background: var(--buy); }
.prompt-grid span { color: var(--muted); font: 9px/1 var(--mono); }

.record-context { display: grid; grid-template-columns: minmax(360px, .75fr) minmax(0, 1.25fr); gap: 80px; padding: 86px 0; border-bottom: 1px solid var(--ink); }
.record-context h2 { max-width: 560px; margin: 0; font-size: 48px; line-height: 1.05; }
.record-links { border-top: 1px solid var(--ink); }
.record-links a { min-height: 84px; padding: 16px 0; display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid var(--soft); text-decoration: none; }
.record-links a:hover strong { color: var(--olive); }
.record-links span { color: var(--muted); font: 9px/1.4 var(--mono); text-transform: uppercase; }
.record-links strong { font-size: 19px; }

.project-note { display: flex; justify-content: space-between; gap: 50px; padding: 34px 0 70px; color: var(--muted); }
.project-note p { max-width: 850px; margin: 0; font-size: 13px; }
.project-note a { white-space: nowrap; font: 700 9px/1.4 var(--mono); text-transform: uppercase; }
footer { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 22px 0 32px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink); color: var(--muted); font: 9px/1.5 var(--mono); text-transform: uppercase; }

.notice-page { max-width: 980px; padding: 80px 0; }
.notice-hero { padding-bottom: 55px; border-bottom: 1px solid var(--ink); }
.notice-hero h1 { max-width: 900px; margin: 0; font-size: clamp(58px, 9vw, 112px); font-weight: 900; letter-spacing: -.06em; line-height: .88; }
.notice-hero > p:last-child { max-width: 760px; margin: 34px 0 0; color: var(--muted); font-size: 19px; }
.notice-page > section { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 48px; padding: 42px 0; border-bottom: 1px solid var(--soft); }
.notice-page > section h2 { margin: 0; font-size: 30px; line-height: 1.05; }
.notice-page > section p, .notice-page > section ul { margin: 0; color: var(--muted); }
.notice-page > section p + p { margin-top: 18px; }
.notice-page > section ul { padding-left: 19px; }
.notice-page > section li + li { margin-top: 10px; }
.notice-footer { width: auto; padding-top: 32px; }

@media (max-width: 980px) {
  .witness-hero { min-height: 610px; grid-template-columns: 1fr; gap: 50px; }
  .witness-date { min-height: 160px; border-left: 0; }
  .witness-date > span, .witness-date > strong { min-height: 100px; }
  .maker-grid { grid-template-columns: 1fr; }
  .memory-form { max-width: 700px; }
  .archive-call { grid-template-columns: 1fr; }
  .prompt-grid { grid-template-columns: repeat(2, 1fr); }
  .record-context { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .witness-head, main, footer { width: min(100% - 34px, 1440px); }
  .witness-head { grid-template-columns: 1fr auto; }
  .witness-head p { display: none; }
  .witness-hero { min-height: 0; padding: 58px 0 42px; }
  .witness-hero h1 { font-size: clamp(52px, 17vw, 86px); }
  .witness-dek { margin-top: 28px; font-size: 18px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-head h2 { font-size: 38px; }
  .section-head > span { max-width: 440px; }
  .memory-maker, .archive-call, .prompt-bank, .record-context { padding: 58px 0; }
  .maker-grid { min-width: 0; }
  .form-pair { grid-template-columns: 1fr; }
  .maker-actions button { flex: 1 1 140px; }
  .archive-call-copy h2 { font-size: 52px; }
  .archive-actions a { width: 100%; justify-content: center; }
  .prompt-bank .section-head { grid-template-columns: 1fr; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-grid button { min-height: 130px; }
  .record-context h2 { font-size: 38px; }
  .record-links a { grid-template-columns: 1fr; gap: 6px; }
  .project-note, footer { flex-direction: column; }
  .notice-page { padding: 58px 0; }
  .notice-page > section { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 440px) {
  .witness-wordmark { font-size: 12px; }
  .witness-head > a:last-child { font-size: 7px; }
  .witness-date > span, .witness-date > strong { font-size: 35px; }
  .witness-date > strong { font-size: 58px; }
  .memory-form fieldset { flex-direction: column; }
  .memory-form fieldset label span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
