:root {
  --paper: #f7f4ed;
  --surface: #fffdfa;
  --ink: #11100e;
  --ink-soft: #65605a;
  --muted: #8a837a;
  --line: #ddd7ce;
  --gold: #a97911;
  --gold-soft: #f4ead0;
  --radius: 18px;
  --shadow: 0 20px 56px rgba(31, 24, 14, 0.08);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 5; padding: .7rem 1rem; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

.site-header, .site-footer, .access-shell, .page-shell { width: min(1060px, calc(100% - 3rem)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 1rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .28rem; white-space: nowrap; }
.wordmark-gold {
  color: var(--gold);
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
}
.wordmark-market { color: #050505; font-size: clamp(1.05rem, 2vw, 1.32rem); font-weight: 900; letter-spacing: -.065em; }
.header-link { padding: .45rem 0; border-bottom: 1px solid var(--ink); font-size: .87rem; font-weight: 750; }
.header-link:hover, .header-link:focus-visible { color: var(--gold); border-color: var(--gold); }

.access-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .78fr); align-items: center; gap: clamp(3rem, 9vw, 9.5rem); min-height: calc(100vh - 233px); padding: 5rem 0 6.5rem; }
.access-intro { max-width: 555px; }
.eyebrow { margin: 0 0 1.1rem; color: var(--gold); font-size: .71rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.06em; line-height: .98; }
h1 { max-width: 520px; margin-bottom: 1.45rem; font-size: clamp(3.55rem, 7vw, 6.4rem); }
h2 { margin-bottom: .75rem; font-size: clamp(2.1rem, 3.9vw, 3rem); }
.lede { max-width: 490px; margin-bottom: 1.4rem; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.72; }
.fine-print, .preview-note { color: var(--muted); font-size: .78rem; line-height: 1.6; }

.login-card, .content-card, .checkout-card { padding: clamp(1.55rem, 4vw, 2.45rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-heading > p:not(.eyebrow) { margin-bottom: 1.65rem; color: var(--ink-soft); font-size: .94rem; }
.member-form { display: grid; gap: .65rem; }
.member-form label { margin-top: .35rem; color: var(--ink); font-size: .78rem; font-weight: 800; }
.member-form input { width: 100%; height: 49px; padding: 0 .95rem; border: 1px solid var(--line); border-radius: 10px; background: #f3f0ea; color: var(--muted); }
.member-form input:disabled { cursor: not-allowed; opacity: 1; }
.member-form input::placeholder { color: #979087; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.1rem; border: 1px solid transparent; border-radius: 10px; font-weight: 850; font-size: .91rem; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:not(:disabled):hover { background: var(--gold); }
.button-full { width: 100%; margin-top: .85rem; }
.button:disabled { cursor: not-allowed; opacity: .48; }
.preview-note { margin: 1.05rem 0 0; }
.new-account { margin: 1.45rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .87rem; }
.new-account a, .text-link { color: var(--ink); font-weight: 850; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .24em; }
.new-account a:hover, .text-link:hover { color: var(--gold); }

.page-shell { max-width: 860px; padding: 3.5rem 0 7.5rem; }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: 3.3rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flow .active { color: var(--gold); }
.flow-separator { color: #b7afa4; }
.page-intro { max-width: 670px; margin-bottom: 3.3rem; }
.page-intro h1 { max-width: 690px; }
.page-intro .lede { max-width: 620px; }
.content-card { box-shadow: none; }
.principles { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.principle-number { color: var(--gold); font-family: Georgia, serif; font-size: 1.2rem; }
.principles h3 { margin-bottom: .38rem; font-size: 1.15rem; }
.principles p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.65; }
.callout { margin: 1.65rem 0 0; padding: 1rem 1.1rem; border-left: 3px solid var(--gold); background: var(--gold-soft); color: #5e4a20; font-size: .88rem; line-height: 1.65; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.button-gold { background: var(--gold); color: #fff; }
.button-gold:hover { background: #8e650e; }
.back-link { color: var(--ink-soft); font-size: .87rem; font-weight: 760; }
.back-link:hover { color: var(--gold); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .74fr); gap: 1.2rem; align-items: start; }
.checkout-card h2, .content-card h2 { margin-bottom: .9rem; }
.checkout-card > p, .content-card > p { color: var(--ink-soft); line-height: 1.7; }
.future-id { margin: 1.75rem 0 0; padding: 1.15rem; border-radius: 12px; background: #f3eee3; }
.future-id span { display: block; margin-bottom: .42rem; color: var(--gold); font-size: .69rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.future-id strong { display: block; overflow-wrap: anywhere; font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -.05em; }
.future-id p { margin: .6rem 0 0; color: var(--ink-soft); font-size: .79rem; line-height: 1.55; }
.payment-summary { padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: #ede8de; }
.payment-summary h2 { margin-bottom: 1.25rem; font-size: 1.35rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid #d7d0c5; color: var(--ink-soft); font-size: .9rem; }
.summary-row:first-of-type { border-top: 0; }
.summary-row strong { color: var(--ink); text-align: right; }
.payment-summary .button { margin-top: 1rem; }
.payment-note { margin: 1.05rem 0 0; color: var(--muted); font-size: .77rem; line-height: 1.6; }

.legal-page { max-width: 760px; }
.legal-page h1 { max-width: 680px; }
.legal-page section { margin-top: 2.4rem; }
.legal-page section h2 { margin-bottom: .65rem; font-size: 1.45rem; }
.legal-page section p { margin-bottom: 0; color: var(--ink-soft); line-height: 1.72; }

.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 2rem 0 2.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; }
.site-footer .wordmark-gold { font-size: 1.6rem; }
.site-footer .wordmark-market { font-size: .9rem; }
.footer-links { display: flex; justify-content: flex-end; gap: 1.2rem; }
.footer-links a:hover { color: var(--gold); }
.copyright { grid-column: 1 / -1; margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .site-header, .site-footer, .access-shell, .page-shell { width: min(100% - 2rem, 1060px); }
  .site-header { min-height: 82px; }
  .access-shell { grid-template-columns: 1fr; gap: 2.7rem; min-height: auto; padding: 3.7rem 0 5.25rem; }
  .access-intro { max-width: 600px; }
  .login-card { max-width: 500px; }
  .page-shell { padding-top: 2.25rem; }
  .checkout-layout { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .copyright { grid-column: auto; }
}

@media (max-width: 430px) {
  .header-link { font-size: .75rem; }
  .wordmark-gold { font-size: 1.85rem; }
  .wordmark-market { font-size: .98rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.2rem); }
  .page-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

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