:root {
  color-scheme: light;
  --ink: #24211f;
  --muted: #625b56;
  --paper: #f7f4f1;
  --surface: #fffdfb;
  --white: #fff;
  --line: #d2c9c2;
  --line-strong: #b5aaa1;
  --gold: #625b56;
  --gold-soft: #e8e1db;
  --danger: #8a2e26;
  --danger-soft: #fbefec;
  --success: #2e604b;
  --serif: var(--font-ui);
  --sans: var(--font-ui);
  --mono: var(--font-ui);
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { min-height: 100vh; min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }
main { flex: 1; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--gold-soft); }
:focus-visible { outline: 3px solid #57534e; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 9px 12px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.access-header { height: 55px; flex: 0 0 55px; padding: 0 max(22px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.access-wordmark { font-family: var(--serif); font-size: var(--type-section); font-weight: var(--weight-heading); letter-spacing: .035em; line-height: 1; text-decoration: none; }
.access-context { overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.header-action { min-height: 34px; padding: 7px 12px; display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 8px; color: var(--white); background: var(--ink); font-family: var(--mono); font-size: var(--type-caption); text-decoration: none; white-space: nowrap; }
.header-action--light { color: var(--ink); background: var(--white); }
.header-action:hover { background: #3b3732; }
.header-action--light:hover { background: #f5f3ed; }

.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .15em; text-transform: uppercase; }
.home-hero { width: min(1240px, calc(100% - 44px)); min-height: min(735px, calc(100vh - 55px)); margin: 0 auto; padding: clamp(58px, 8vw, 112px) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(54px, 8vw, 118px); align-items: center; }
.home-copy h1 { max-width: 800px; margin: 0; font-family: var(--serif); font-size: var(--type-display); font-weight: var(--weight-heading); letter-spacing: -.05em; line-height: 1.2; }
.home-lead { max-width: 620px; margin: 30px 0 0; color: var(--muted); font-family: var(--serif); font-size: var(--type-subtitle); line-height: 1.43; }
.entry-choices { max-width: 760px; margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: var(--surface); }
.choice { min-height: 128px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--line-strong); text-decoration: none; transition: background-color .16s ease, color .16s ease; }
.choice:last-child { border-right: 0; }
.choice span { margin-bottom: auto; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); letter-spacing: .07em; text-transform: uppercase; }
.choice strong { margin-top: 12px; font-family: var(--serif); font-size: 28px; font-weight: var(--weight-label); line-height: 1.05; }
.choice small { margin-top: 7px; color: var(--muted); font-size: var(--type-meta); line-height: 1.4; }
.choice:hover { background: #faf8ef; }
.choice--primary { color: var(--white); background: var(--ink); }
.choice--primary span, .choice--primary small { color: #d8d3ca; }
.choice--primary:hover { background: #39342f; }
.trust-line { max-width: 650px; margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--gold); color: var(--muted); font-size: var(--type-meta); line-height: 1.55; }
.trust-line strong { color: var(--ink); }

.how-it-works { padding: 32px max(22px, calc((100vw - 1240px) / 2)); color: var(--white); background: var(--ink); }
.how-it-works > div { max-width: 560px; }
.how-it-works .eyebrow { margin-bottom: 8px; }
.how-it-works h2 { margin: 0; font-family: var(--serif); font-size: var(--type-section); font-weight: var(--weight-heading); letter-spacing: -.04em; line-height: 1.2; }
.how-it-works ol { margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid #5d5750; }
.how-it-works li { padding: 16px 24px 0 0; border-right: 1px solid #5d5750; }
.how-it-works li + li { padding-left: 24px; }
.how-it-works li:last-child { border-right: 0; }
.how-it-works li > span { color: #d2bb4f; font-family: var(--mono); font-size: var(--type-caption); }
.how-it-works li strong { margin: 8px 0 4px; display: block; font-family: var(--serif); font-size: var(--type-section); font-weight: var(--weight-label); line-height: 1.15; }
.how-it-works li p { margin: 0; color: #c8c3bb; font-size: var(--type-meta); line-height: 1.55; }

.form-page { width: min(1120px, calc(100% - 44px)); margin: 0 auto; padding: clamp(58px, 7vw, 92px) 0 100px; display: grid; grid-template-columns: minmax(280px, .76fr) minmax(440px, 1.24fr); gap: clamp(54px, 8vw, 110px); align-items: start; }
.form-intro { position: sticky; top: 48px; }
.form-intro h1, .admin-review-heading h1 { margin: 0; font-family: var(--serif); font-size: var(--type-display); font-weight: var(--weight-heading); letter-spacing: -.045em; line-height: 1.2; }
.form-intro > p:not(.eyebrow), .admin-review-heading p { max-width: 48ch; margin: 24px 0 0; color: var(--muted); font-family: var(--serif); font-size: var(--type-subtitle); line-height: 1.5; }
.mini-progress { margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid var(--line-strong); }
.mini-progress li { padding: 14px 8px 0 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); }
.mini-progress li span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.mini-progress li[aria-current="step"] { color: var(--ink); }
.mini-progress li[aria-current="step"] span { color: var(--white); border-color: var(--gold); background: var(--gold); }
.access-form { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-strong); background: var(--surface); }
.access-form fieldset { margin: 0 0 38px; padding: 0 0 38px; border: 0; border-bottom: 1px solid var(--line); }
.access-form legend { margin-bottom: 25px; padding: 0; font-family: var(--serif); font-size: var(--type-subtitle); font-weight: var(--weight-heading); letter-spacing: -.025em; }
.access-form label, .decision-option label { margin-bottom: 22px; display: block; }
.access-form label > span, .decision-option label > span { margin-bottom: 8px; display: block; font-size: var(--type-meta); font-weight: var(--weight-heading); }
.access-form label em, .decision-option label em { color: var(--muted); font-size: var(--type-caption); font-style: normal; font-weight: var(--weight-label); }
.access-form input, .access-form textarea, .decision-option input, .decision-option textarea, .decision-option select { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--white); }
.access-form textarea, .decision-option textarea { resize: vertical; }
.access-form input:focus, .access-form textarea:focus, .decision-option input:focus, .decision-option textarea:focus, .decision-option select:focus { border-color: var(--gold); outline: 3px solid #e8e1db; }
.access-form small, .decision-option small { margin-top: 7px; display: block; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.access-form label[for="activation-password"], .access-form label[for="activation-confirmation"] { margin-bottom: 0; }
.access-form label[for="activation-confirmation"] { margin-top: 22px; }
.access-password-field { position: relative; }
.access-password-field input { padding-inline-end: 62px; }
.access-password-field button { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; color: var(--ink); background: transparent; cursor: pointer; }
.access-password-field button:hover, .access-password-field button[aria-pressed="true"] { background: #eee8e2; }
.access-password-field button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.access-password-field button img { width: 22px; height: 22px; }
.access-password-field input::-ms-reveal { display: none; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.consent-line { margin: 0 0 25px !important; display: grid !important; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.consent-line input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.consent-line > span { margin: 0 !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.55; }
.button { min-height: 48px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 8px; color: var(--ink); background: var(--white); font-family: var(--mono); font-size: var(--type-caption); font-weight: var(--weight-label); cursor: pointer; text-decoration: none; }
.button:hover { background: #eee8e2; }
.button--primary { color: var(--white); border-color: #756b63; background: #756b63; }
.button--primary:hover { background: #665c55; }
.button--danger { color: var(--danger); border-color: #b77b74; background: var(--danger-soft); }
.button:disabled { cursor: wait; opacity: .55; }
.access-form > .button { width: 100%; }
.form-message { min-height: 21px; margin: 14px 0; color: var(--success); font-size: var(--type-meta); line-height: 1.5; }
.form-message--error { color: var(--danger); }
.form-footnote { margin: 18px 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.5; }

.status-page { width: min(760px, calc(100% - 44px)); margin: 0 auto; padding: clamp(24px, 5vh, 56px) 0; display: grid; align-items: center; }
.status-page > .status-card { width: 100%; }
.status-card { padding: clamp(34px, 6vw, 70px); border-top: 3px solid #756b63; background: var(--white); box-shadow: 0 24px 55px rgba(44, 37, 19, .09); }
.status-kicker { margin: 0 0 20px; color: var(--muted); font-family: var(--mono); font-size: var(--type-caption); text-transform: uppercase; }
.status-card h1, .status-card h2 { max-width: 650px; margin: 0; font-family: var(--serif); font-size: var(--type-title); font-weight: var(--weight-heading); letter-spacing: -.045em; line-height: 1.2; }
.status-card h2 { font-size: var(--type-section); }
.status-description, .status-card > p:not(.eyebrow, .status-kicker) { margin: 24px 0 0; color: var(--muted); font-family: var(--serif); font-size: var(--type-subtitle); line-height: 1.5; }
.fact-list { margin: 36px 0; border-top: 1px solid var(--line); }
.fact-list > div { padding: 14px 0; display: grid; grid-template-columns: minmax(130px, .5fr) minmax(0, 1.5fr); gap: 22px; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: var(--type-caption); font-weight: var(--weight-heading); }
.fact-list dd { margin: 0; overflow-wrap: anywhere; font-size: var(--type-meta); font-weight: var(--weight-heading); }
.status-note { margin-top: 28px; padding: 18px 20px; border-left: 1px solid var(--gold); color: var(--muted); background: #eee8e2; font-size: var(--type-meta); line-height: 1.55; }
.form-page--activation .access-form { align-self: start; }
.form-page--activation { padding-block: clamp(32px, 5vh, 60px); }
.activation-summary { margin: 0 0 30px; padding: 18px 0; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.activation-summary span, .activation-summary small { color: var(--muted); font-size: var(--type-caption); }
.activation-summary strong { font-family: var(--serif); font-size: var(--type-section); }
.status-card--embedded { grid-column: 2; box-shadow: none; }
.standalone-error { padding: 18px 20px; border: 1px solid #d6a49d; color: var(--danger); background: var(--danger-soft); line-height: 1.5; }

.admin-review-page { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: clamp(52px, 6vw, 82px) 0 100px; }
.admin-review-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 42px; align-items: end; }
.admin-review-heading > div:first-child { max-width: 780px; }
.request-state { padding: 10px 13px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface); font-family: var(--mono); font-size: var(--type-caption); }
.request-state[data-status="pending"] { color: #67550d; border-color: #c8b65c; background: #fff9dc; }
.request-state[data-status="approved_free"], .request-state[data-status="payment_received"], .request-state[data-status="completed"] { color: var(--success); border-color: #8db4a1; background: #edf7f1; }
.request-state[data-status="rejected"], .request-state[data-status="expired"] { color: var(--danger); border-color: #d3a29b; background: var(--danger-soft); }
.admin-review-layout { margin-top: 55px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); gap: 34px; align-items: start; }
.request-file, .decision-panel { border: 1px solid var(--line-strong); background: var(--surface); }
.request-file { padding: clamp(28px, 4vw, 46px); }
.decision-panel { position: sticky; top: 24px; }
.section-heading > span { color: var(--gold); font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2, .decision-option h2 { margin: 8px 0 0; font-family: var(--serif); font-size: var(--type-section); font-weight: var(--weight-heading); letter-spacing: -.03em; line-height: 1.2; }
.request-note, .request-proof { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.request-note strong, .request-proof strong { font-size: var(--type-meta); }
.request-note p, .request-proof p { margin: 9px 0 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.6; white-space: pre-wrap; }
#pending-actions > .section-heading { padding: 30px 30px 8px; }
.decision-option { padding: 25px 30px 28px; border-top: 1px solid var(--line); }
.decision-option h3 { margin: 0; font-family: var(--serif); font-size: var(--type-subtitle); }
.decision-option p { margin: 9px 0 18px; color: var(--muted); font-size: var(--type-meta); line-height: 1.55; }
.decision-option .button { width: 100%; }
.decision-option--reject { background: #fffaf8; }
.decision-panel > .form-message { padding: 0 30px; }
.activation-fallback { margin: 20px 30px 30px; padding: 18px; border: 1px solid #c9bb77; background: #fffae8; }
.activation-fallback strong { display: block; font-size: var(--type-meta); }
.activation-fallback a { margin: 9px 0; display: block; overflow-wrap: anywhere; font-size: var(--type-caption); line-height: 1.45; }
.text-action { padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--ink); background: none; font-size: var(--type-caption); cursor: pointer; }

.access-footer { min-height: 132px; padding: 28px max(22px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: var(--type-caption); line-height: 1.5; }
.access-footer > div { display: flex; flex-direction: column; }
.access-footer strong { color: var(--ink); font-family: var(--serif); font-size: var(--type-subtitle); }
.access-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; }
.access-footer--compact { min-height: 95px; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; min-height: 0; }
  .home-visual { width: min(500px, 100%); }
  .home-visual img { aspect-ratio: 16 / 10; }
  .form-page { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .status-card--embedded { grid-column: 1; }
  .admin-review-layout { grid-template-columns: 1fr; }
  .decision-panel { position: static; }
}

@media (max-width: 650px) {
  .access-header { padding: 0 16px; gap: 10px; grid-template-columns: auto minmax(0, 1fr); min-height: 64px; }
  .access-header .header-action { justify-self: end; min-height: 44px; }
  .access-wordmark { font-size: var(--type-section); }
  .access-context { display: none; }
  .home-hero, .form-page, .status-page, .admin-review-page { width: calc(100% - 32px); }
  .home-copy h1 { font-size: var(--type-display); }
  .home-hero { padding: 32px 0; gap: 32px; }
  .home-lead { margin-top: 20px; }
  .entry-choices { grid-template-columns: 1fr; margin-top: 28px; }
  .choice { min-height: 120px; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .choice strong { margin-top: 12px; font-size: 24px; }
  .choice:last-child { border-bottom: 0; }
  .how-it-works ol { grid-template-columns: 1fr; }
  .how-it-works li, .how-it-works li + li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-right: 0; border-bottom: 1px solid #5d5750; }
  .how-it-works li:last-child { border-bottom: 0; padding-bottom: 0; }
  .how-it-works li > span { grid-row: 1 / 3; padding-top: 2px; }
  .how-it-works li strong { margin: 0; }
  .how-it-works li p { grid-column: 2; }
  .field-grid, .admin-review-heading { grid-template-columns: 1fr; }
  .form-intro h1, .admin-review-heading h1 { font-size: var(--type-display); }
  .access-form { padding: 24px 20px; }
  .form-page, .status-page { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .status-card { padding: 24px 20px; }
  .how-it-works { padding: 24px 16px; }
  .fact-list > div { grid-template-columns: 1fr; gap: 5px; }
  .access-footer { grid-template-columns: 1fr; gap: 16px; }
  .access-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
