/* Magic Mountain — production stylesheet.
   Design tokens and components ported from magic-mountain-design (build.py / pages.py).
   Fonts are self-hosted (./assets/fonts) — nothing is loaded from a third-party origin
   except the sign-up (Google Apps Script) and newsletter (Mailchimp) form endpoints. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0300-030C, U+1E00-1EFF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/archivo-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/archivo-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0300-030C, U+1E00-1EFF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0300-030C, U+1E00-1EFF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0300-030C, U+1E00-1EFF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0300-030C, U+1E00-1EFF; }

:root {
  --orange: #FE6B00; --navy: #001F61; --blue: #00549F; --offwhite: #F5F5F5; --peach: #FFE9D9; --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--offwhite); color: var(--navy); font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; } a:hover { color: var(--orange); }
p { margin: 0; text-wrap: pretty; } h1, h2, h3, h4 { margin: 0; }
img { max-width: 100%; }
.h1, .h2, .h3, .brand { font-family: "Archivo", "Arial Black", Impact, sans-serif; font-weight: 900; text-transform: uppercase; }
.h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.01em; }
.h2 { font-size: 40px; line-height: 1.05; }
.h3 { font-size: 24px; line-height: 1.15; }
.h4 { font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.3; }
.lead { font-size: 20px; } .small { font-size: 15px; } .muted { color: var(--blue); }
.on-dark { color: var(--offwhite); } .on-dark .muted, .on-dark .lead { color: var(--peach); }
.eyebrow { font-family: "Archivo", "Arial Black", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.brand { font-size: 20px; letter-spacing: 0.06em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: var(--offwhite); padding: 12px 20px; border-radius: 6px; font-weight: 700; z-index: 100; transition: top 0.15s; }
.skip-link:focus { top: 16px; color: var(--offwhite); }

/* ── Atoms: button, tag, meta, icon, rule, input ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 6px; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; border: none; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--orange); color: var(--offwhite); } .btn-primary:hover { background: #E55F00; color: var(--offwhite); } .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); } .btn-secondary:hover { background: var(--navy); color: var(--offwhite); }
.on-dark .btn-secondary { color: var(--offwhite); box-shadow: inset 0 0 0 2px var(--offwhite); } .on-dark .btn-secondary:hover { background: var(--offwhite); color: var(--navy); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.link { font-weight: 600; font-size: 16px; color: var(--blue); } .on-dark .link { color: var(--offwhite); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px; background: var(--peach); color: var(--navy); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.tag-dark { background: var(--navy); color: var(--offwhite); } .tag-accent { background: var(--orange); color: var(--offwhite); }
.meta { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 15px; font-weight: 600; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 32px; height: 32px; stroke: var(--orange); }
.rule { border: 0; border-top: 1px solid rgba(0,31,97,0.12); margin: 0; } .on-dark .rule { border-top-color: rgba(255,233,217,0.2); }
.field { display: flex; flex-direction: column; gap: 8px; } .field label { font-weight: 600; font-size: 15px; }
.input, select.input, textarea.input {
  display: flex; align-items: center; width: 100%; height: 48px; padding: 0 16px; border-radius: 6px;
  border: 1.5px solid rgba(0,31,97,0.25); background: var(--white); font-size: 17px; color: var(--navy);
  font-family: inherit;
}
textarea.input { height: 120px; padding: 12px 16px; resize: vertical; }
.input::placeholder { color: rgba(0,31,97,0.45); }
.input:invalid.touched { border-color: #C0362C; }
.field-error { color: #C0362C; font-size: 14px; display: none; }
.field-error.show { display: block; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input[type=checkbox] { width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--navy); flex: none; margin-top: 2px; accent-color: var(--navy); }
.checkbox-row span { font-size: 16px; }
.honeypot-field { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.lang { display: flex; align-items: center; height: 36px; border-radius: 18px; background: var(--peach); padding: 3px; }
.lang a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.lang a.on { background: var(--navy); color: var(--offwhite); }

/* ── Surfaces and layout ── */
.section { padding: 96px 64px 0; max-width: 1440px; margin: 0 auto; }
.section-first { padding: 48px 64px 0; max-width: 1440px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1fr) 460px; }
.sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,31,97,0.08), 0 12px 32px -20px rgba(0,31,97,0.35); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.card-meta { display: flex; gap: 16px; flex-wrap: wrap; row-gap: 4px; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.card-img, .card-img-sm { position: relative; background: var(--blue); flex: none; }
.card-img { height: 260px; } .card-img-sm { height: 220px; }
.card-img img, .card-img-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.band { border-radius: 16px; overflow: hidden; margin: 0 24px; }
.band-dark { background: var(--navy); } .band-light { background: var(--peach); } .band-pad { padding: 64px 48px; }
.hero { position: relative; height: 520px; } .hero-home { height: 640px; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,31,97,0.05) 25%, rgba(0,31,97,0.88) 100%); }
.hero-content { position: absolute; left: 64px; right: 64px; bottom: 64px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.facts { margin: 24px 24px 0; padding: 32px 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; max-width: 1392px; margin-left: auto; margin-right: auto; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; padding: 0 64px; max-width: 1440px; margin: 0 auto; position: relative; }
.nav a { color: var(--navy); font-weight: 600; font-size: 16px; } .nav a.active { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 16px 24px; background: var(--offwhite); border-top: 1px solid rgba(0,31,97,0.12); }
.nav-mobile a, .nav-mobile .btn { width: 100%; }
.nav-mobile a { padding: 12px 0; font-size: 17px; }
.nav-mobile.open { display: flex; }
.footer { display: flex; flex-direction: column; gap: 32px; padding: 64px 64px 32px; margin-top: 96px; background: var(--navy); }
.footer-inner { max-width: 1440px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.4fr 1fr; gap: 32px; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; align-items: center; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 0; overflow: hidden; color: var(--navy); align-items: stretch; }
.stepper button { border: none; background: transparent; font-size: 22px; color: var(--blue); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.stepper button:first-child { border-right: 1.5px solid rgba(0,31,97,0.15); }
.stepper button:last-child { border-left: 1.5px solid rgba(0,31,97,0.15); }
.stepper output { display: flex; align-items: center; justify-content: center; font-family: "Source Sans 3"; font-weight: 700; font-size: 20px; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.step-n { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; background: var(--orange); color: var(--offwhite); font-family: "Archivo", sans-serif; font-weight: 900; font-size: 16px; }
.day { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid rgba(0,31,97,0.12); }
.person { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
.photo-ph { background: var(--blue); color: var(--peach); display: flex; align-items: center; justify-content: center; font-weight: 600; text-align: center; padding: 16px; }
.about-photo { min-height: 420px; }
.toc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
.quote { padding: 24px; font-style: italic; }
.check-item { display: flex; gap: 10px; align-items: flex-start; }
.check-item svg { stroke: var(--orange); stroke-width: 2.2; margin-top: 4px; }
.book-bar { display: none; }
.alert { padding: 16px 20px; border-radius: 8px; font-size: 16px; }
.alert-success { background: var(--peach); color: var(--navy); }
.alert-error { background: #FDE4E1; color: #7A1F17; }
[hidden] { display: none !important; }

/* ── Responsive: one breakpoint, collapses to one column ── */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .h1 { font-size: 36px; } .h2 { font-size: 28px; } .h3 { font-size: 22px; } .lead { font-size: 17px; } .brand { font-size: 15px; } .eyebrow { font-size: 12px; }
  .section, .section-first { padding: 48px 16px 0; }
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .split, .newsletter, .footer-grid, .person, .toc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 20px; margin: 16px 12px 0; gap: 16px; }
  .split { gap: 32px; } .sidebar { position: static; }
  .band { margin: 0 12px; border-radius: 14px; } .band-pad { padding: 32px 20px; }
  .hero, .hero-home { height: 560px; } .hero-content { left: 20px; right: 20px; bottom: 24px; gap: 12px; }
  .hero-content .btn { width: 100%; }
  .nav { height: 64px; padding: 0 16px; }
  .nav-links > a, .nav-links > .btn { display: none; }
  .nav-links { gap: 8px; } .nav-menu-btn { display: flex; }
  .footer { padding: 40px 24px 32px; margin-top: 48px; }
  .card-img, .card-img-sm { height: 200px; }
  .about-photo { min-height: 240px; }
  .card-meta { row-gap: 4px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .card-foot .btn { width: 100%; }
  .form-card .card-body { padding: 20px !important; gap: 24px !important; }
  .form-actions .btn { width: 100%; }
  .day { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .toc-nav { display: none; }
  .newsletter-row { grid-template-columns: minmax(0, 1fr); }
  .book-bar.active { display: flex; position: sticky; bottom: 0; z-index: 5; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding: 12px 16px; background: #FFFFFF; box-shadow: 0 -8px 24px -12px rgba(0,31,97,0.35); }
}
