:root {
  color-scheme: dark;
  --ink: #f9f6ee;
  --gold: #edbe72;
  --gold-light: #fbd596;
  --dim: #d0c5b4;
  --rule: #625747;
  --field-rule: #837257;
  --black: #11100f;
  --field: #110f0d;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: 'Aptos', 'Segoe UI', system-ui, sans-serif;
  font: 16px/1.55 var(--sans);
  background: var(--black);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 76% 24%, #36291959, transparent 48%); }
a { color: var(--gold); text-underline-offset: .22em; }
a:hover { color: var(--gold-light); }
header, main, footer { width: min(calc(100% - clamp(2.25rem, 8.4vw, 8rem)), 74rem); margin-inline: auto; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
header { min-height: 4.4rem; border-bottom: 1px solid var(--rule); }
header a, footer a { display: inline-flex; min-height: 44px; align-items: center; }
header a { text-decoration: none; color: var(--ink); }
.brand { font-weight: 750; font-size: .88rem; letter-spacing: .14em; gap: .6rem; }
.brand i { width: 1rem; height: 1rem; transform: skewX(-18deg); background: repeating-linear-gradient(90deg,var(--gold) 0 3px,transparent 3px 6px); }

main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 7vw, 6.5rem); align-items: start; padding-block: clamp(2.35rem, 6.5vw, 5.8rem); }
.intro { min-width: 0; max-width: 34rem; }
h1, h2, p { margin: 0; }
h1 { font: 400 clamp(3.35rem, 6.5vw, 5.8rem)/.98 var(--serif); letter-spacing: -.055em; margin-bottom: 1.3rem; text-wrap: balance; }
h1 em { color: var(--gold-light); font-weight: 400; }
h2 { font: 400 1.85rem/1.17 var(--serif); }
.eyebrow { margin-bottom: 1.12rem; font: 650 .75rem/1.4 Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.intro > p:not(.eyebrow) { font-size: 1.08rem; color: var(--dim); max-width: 40ch; }
.terms { margin-top: 1.9rem; padding: .18rem 0 .18rem 1rem; border-inline-start: 1px solid var(--gold); }
.terms h2 { font-size: 1.35rem; }
.terms p { margin-top: .42rem; color: var(--dim); max-width: 50ch; }

.sheet { position: relative; isolation: isolate; min-width: 0; border: 1px solid #877145; background: linear-gradient(145deg, #241e16, #181512 60%, #15120f); box-shadow: 6px 7px 0 -1px #1a1712, 6px 7px 0 #514330, 0 21px 54px #0007; padding: clamp(1rem, 3.7vw, 2.65rem); }
.sheet::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #f3d796, transparent 76%); pointer-events: none; }
.note, .sheet > p { color: var(--dim); margin-top: .57rem; }
.sheet .eyebrow { color: var(--gold); }
.sheet form + .note { margin-top: 1.05rem; font-size: .91rem; }
.sheet form + .note a, .notice .note a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .15rem; }
form { margin-top: 1.12rem; }
form > label, legend { font-size: .94rem; font-weight: 640; }
form > label:not(.check) { display: block; margin: .9rem 0 .28rem; }

input:not([type=radio], [type=checkbox], [type=hidden]) { font: inherit; display: block; width: 100%; min-height: 46px; border: 1px solid var(--field-rule); border-radius: 2px; background: var(--field); color: var(--ink); padding: .53rem .72rem; }
input::placeholder { color: #b6a990; opacity: 1; }
input:not([type=hidden]):focus { border-color: var(--gold); }
fieldset { margin: 1.05rem 0; border: 0; padding: 0; min-inline-size: 0; display: flex; flex-wrap: wrap; gap: .48rem; }
legend { margin-bottom: .45rem; }
.choice, .check { display: flex; gap: .58rem; cursor: pointer; }
.choice { flex: 1 1 8.5rem; align-items: center; min-height: 44px; padding: .43rem .58rem; border: 1px solid var(--field-rule); color: var(--ink); border-radius: 2px; }
.choice:hover { background: #2d2218; }
.choice:has(:checked) { border-color: var(--gold); background: #36291b; }
.choice:has(:focus-visible), .check:has(:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.choice input:focus-visible, .check input:focus-visible { outline: none; }
input:is([type=checkbox], [type=radio]) { width: 1rem; height: 1rem; margin: 0; flex: none; accent-color: var(--gold); }
.check { min-height: 44px; align-items: flex-start; font-weight: 400; line-height: 1.4; color: var(--dim); padding: .45rem 0; margin: .82rem 0 .8rem; }
.check input { margin-top: .16rem; }
button { display: flex; align-items: center; justify-content: space-between; gap: .7rem; width: 100%; min-height: 49px; padding: .66rem .95rem; border: 1px solid var(--gold); border-radius: 2px; background: var(--gold); color: #1b150d; font: 700 1rem/1.35 var(--sans); cursor: pointer; text-align: start; }
button:hover { background: var(--gold-light); border-color: var(--gold-light); }
button span { font-size: 1.1rem; }
button:active { background: #dbac64; }
.error { margin-top: .95rem; background: #392718; color: #fff0d3 !important; border: 1px solid #b58854; border-inline-start: 3px solid var(--gold); border-radius: 2px; padding: .67rem .75rem; }

.notice { grid-column: 1/-1; width: min(100%, 42rem); justify-self: center; }
.notice h1 { font-size: clamp(2.45rem, 5vw, 3.8rem); margin-bottom: .85rem; }
.notice > a { display: inline-flex; min-height: 44px; align-items: center; margin-top: .6rem; }
footer { min-height: 4rem; border-top: 1px solid var(--rule); color: var(--dim); font-size: .90rem; }
:focus-visible { outline: 3px solid #ffe6b2; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .6rem; color: var(--black); background: var(--gold); z-index: 10; }
.skip:focus { top: 1rem; color: var(--black); }

@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: settle .32s cubic-bezier(.2,.65,.3,1) both; }
  button, .choice { transition: background .17s ease, border-color .17s ease; }
  @keyframes settle { from { transform: translateY(5px); opacity: .92; } to { transform: translateY(0); opacity: 1; } }
}
@media (max-width: 52rem) {
  main { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; max-width: 39rem; }
  h1 { margin-bottom: .8rem; font-size: clamp(2.8rem, 8.5vw, 4.25rem); text-wrap: initial; }
  .intro { max-width: none; }
  .eyebrow { margin-bottom: .73rem; }
  .intro > p:not(.eyebrow) { font-size: 1rem; }
  .terms { margin-top: 1.03rem; font-size: .93rem; }
  .terms h2 { font-size: 1.22rem; }
  .sheet { box-shadow: 4px 5px 0 -1px #1a1712, 4px 5px 0 #514330, 0 12px 38px #0005; }
}
@media (max-width: 24rem) {
  header { min-height: 4rem; }
  main { padding-block: 1.85rem 2.3rem; gap: 1.42rem; }
  .choice { flex-basis: 7.5rem; }
}
