/* ============================================
   Tech Horizon Academy — Design System
   Shared THL foundation (Editorial + Warm + Alive):
   Fraunces (headings) + Instrument Sans (body), warm cream.
   Academy accent = eucalyptus (--accent below); alternates for
   Huxley's pick are commented at the bottom of :root.
   ============================================ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fraunces-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FAFAF8;
  --bg-warm: hsl(25 35% 95%);
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6b6b6b;
  /* Academy accent: eucalyptus. THL-agency rust stays for cross-brand moments. */
  --accent: #2F6B4F;
  --accent-hover: #265A42;
  --accent-light: hsl(155 28% 92%);
  --rust: #B5654A;
  --border: #e0ddd8;
  --border-light: #eceae6;
  --white: #ffffff;
  --ink: #14201B;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --max-width: 720px;
  --max-width-wide: 1080px;
  --side-padding: 1.5rem;

  --space-xs: 1rem;
  --space-sm: 2rem;
  --space-md: 4rem;
  --space-lg: 6rem;
  --space-xl: 8rem;

  /* Accent alternates for Huxley (swap --accent/--accent-hover/--accent-light):
     ochre gold:  #B07C1F / #96690F / hsl(41 45% 92%)
     slate blue:  #3D5A80 / #33496A / hsl(213 30% 93%)  */
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; }
pre { background: var(--ink); color: #E8EFE9; padding: 1.1rem 1.25rem; border-radius: 10px; overflow-x: auto; line-height: 1.5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 var(--side-padding); }
.container--narrow { max-width: var(--max-width); }

/* --- Header / nav --- */
.site-header { border-bottom: 1px solid var(--border-light); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.brand { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: .5rem; }
.brand .brand-academy { color: var(--accent); }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text-secondary); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta { color: var(--white); }

/* --- Buttons --- */
.btn { display: inline-block; padding: .7rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--text-muted); color: var(--ink); }
.btn--lg { padding: .9rem 1.7rem; font-size: 1.05rem; }

/* --- Hero --- */
.hero { padding: var(--space-lg) 0 var(--space-md); }
.hero .kicker { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero h1 { max-width: 17ch; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 1.2rem; color: var(--text-secondary); max-width: 52ch; margin-bottom: 1.75rem; }
.hero .cta-row { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.hero .cta-note { font-size: .9rem; color: var(--text-muted); width: 100%; margin-top: .6rem; }

/* --- Stats strip (live proof, mirrors agency site) --- */
.stats-strip { display: flex; gap: 2.5rem; flex-wrap: wrap; padding: 1.4rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin: var(--space-sm) 0; }
.stat b { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--text-muted); font-size: .9rem; }

/* --- Sections & cards --- */
.section { padding: var(--space-md) 0; }
.section--warm { background: var(--bg-warm); }
.section-head { max-width: 60ch; margin-bottom: var(--space-sm); }
.section-head .kicker { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--border-light); border-radius: 14px; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .meta { font-size: .82rem; color: var(--text-muted); text-transform: capitalize; }
.card p { color: var(--text-secondary); font-size: .95rem; margin: 0; }
.card .card-foot { margin-top: auto; padding-top: .6rem; font-size: .9rem; }
.pill { display: inline-block; background: var(--accent-light); color: var(--accent-hover); border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; font-weight: 600; }
.pill--rust { background: hsl(18 45% 92%); color: var(--rust); }

/* --- Weekly call panel --- */
.call-panel { background: var(--ink); color: #E9EFE9; border-radius: 18px; padding: 2.2rem 2.4rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.call-panel h2 { color: var(--white); }
.call-panel p { color: #BCC9BF; max-width: 48ch; margin: 0; }
.call-panel .when { font-family: var(--font-heading); font-size: 1.15rem; color: var(--accent-light); }

/* --- Prompt/detail pages --- */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); padding-top: 1.25rem; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.detail-head { padding: var(--space-sm) 0 0; }
.detail-head .meta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0 0; }
.prompt-block { position: relative; margin: var(--space-sm) 0; }
.prompt-block pre { white-space: pre-wrap; word-break: break-word; }
.copy-hint { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.usage-note { background: var(--accent-light); border-radius: 12px; padding: 1.1rem 1.3rem; color: var(--accent-hover); font-size: .97rem; }

/* --- Membership table --- */
.tier-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.tier { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.tier--featured { border-color: var(--accent); box-shadow: 0 8px 28px -18px rgba(47,107,79,.45); }
.tier .price { font-family: var(--font-heading); font-size: 1.9rem; color: var(--ink); }
.tier .price small { font-size: .95rem; color: var(--text-muted); font-family: var(--font-body); }
.tier ul { list-style: none; display: grid; gap: .45rem; color: var(--text-secondary); font-size: .95rem; }
.tier ul li::before { content: "— "; color: var(--accent); }
.tier .btn { margin-top: auto; text-align: center; }

/* --- FAQ --- */
.faq details { border-bottom: 1px solid var(--border-light); padding: 1rem 0; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--ink); font-size: 1.02rem; }
.faq details p { margin: .7rem 0 0; color: var(--text-secondary); }

/* --- Lead magnet strip --- */
.magnet { border: 1px dashed var(--border); border-radius: 14px; padding: 1.3rem 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; background: var(--white); }
.magnet p { margin: 0; color: var(--text-secondary); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border-light); margin-top: var(--space-lg); padding: var(--space-sm) 0 var(--space-md); color: var(--text-muted); font-size: .9rem; }
.site-footer .cols { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .foot-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* --- Motion (CSS-only, reduced-motion safe) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); animation: reveal .6s ease forwards; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  .nav { gap: .8rem; font-size: .9rem; }
  .call-panel { padding: 1.6rem 1.4rem; }
}
