/* Innerstood site styles. Brand palette from brand.md. */

@font-face {
  font-family: "Bungee Hairline";
  src: url("../fonts/BungeeHairline.ttf") format("truetype");
  font-display: swap;
}

:root {
  --indigo: #2D1B4E;      /* primary, the "void" */
  --void: #12081F;        /* near-black violet, page background */
  --void-2: #1a0f2c;      /* raised surfaces */
  --star: #F4EFE6;        /* warm starlight white, text */
  --star-dim: #c9c0d6;    /* secondary text */
  --muted: #8f84a6;       /* captions, meta */
  --gold: #E8B94A;        /* the innerstanding glow, used sparingly */
  --line: rgba(244, 239, 230, 0.12);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --hair: "Bungee Hairline", var(--sans);  /* display only; too thin for small labels */

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--star);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint starfield behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(244,239,230,.5), transparent 60%),
    radial-gradient(1px 1px at 68% 9%, rgba(244,239,230,.35), transparent 60%),
    radial-gradient(1px 1px at 84% 62%, rgba(244,239,230,.4), transparent 60%),
    radial-gradient(1px 1px at 31% 77%, rgba(244,239,230,.3), transparent 60%),
    radial-gradient(1px 1px at 52% 44%, rgba(244,239,230,.25), transparent 60%),
    radial-gradient(1200px 700px at 80% -10%, rgba(45,27,78,.55), transparent 70%),
    var(--void);
}

img, video { max-width: 100%; display: block; }
a { color: var(--star); text-decoration-color: rgba(232,185,74,.5); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; color: var(--star-dim); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--star); max-width: 38em; }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.2rem; display: block;
}
em.glow { font-style: italic; color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 8, 31, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 50px; width: auto; }
@media (max-width: 720px) { .brand img { height: 42px; } }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--star-dim); padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--star); border-bottom-color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); color: var(--star);
    border-radius: 6px; padding: 7px 12px; font: inherit; font-size: .85rem; cursor: pointer;
  }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--void); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  min-height: calc(100svh - 68px); padding-top: 40px; padding-bottom: 40px;
}
.hero-media {
  position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 0 120px rgba(45,27,78,.9), 0 0 40px rgba(232,185,74,.08);
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin-bottom: .45em; }
.hero .lede { margin-bottom: 2rem; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: auto; padding-top: 0; padding-bottom: 72px; }
  .hero-media {
    position: absolute; inset: 0; width: 100%; aspect-ratio: auto; border-radius: 0; border: 0;
    box-shadow: none; opacity: .45; z-index: -1;
  }
  /* fade the video into the page behind the headline so text stays readable */
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(18,8,31,0) 15%, rgba(18,8,31,.75) 45%, var(--void) 80%);
  }
  .hero-text { padding-top: 32vh; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 500 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 1px solid var(--gold); color: var(--void);
  background: var(--gold); cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.btn:hover { color: var(--void); box-shadow: 0 0 28px rgba(232,185,74,.35); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--star); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
section.block { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 48px; }

/* understanding vs innerstanding */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.contrast > div { background: var(--void); padding: clamp(24px, 4vw, 44px); }
.contrast .label { font-family: var(--sans); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; font-size: .78rem; color: var(--muted); display: block; margin-bottom: 1rem; }
.contrast .inner { background: linear-gradient(160deg, rgba(45,27,78,.7), var(--void) 70%); }
.contrast .inner .label { color: var(--gold); }
.contrast p { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; color: var(--star); }
@media (max-width: 720px) { .contrast { grid-template-columns: 1fr; } }

/* six themes */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.themes li { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: rgba(26,15,44,.55); }
.themes .num { font-family: var(--sans); font-weight: 500; color: var(--gold); font-size: .8rem; letter-spacing: .2em; }
.themes h3 { margin: .5rem 0 .5rem; font-size: 1.4rem; }
.themes p { margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .themes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .themes { grid-template-columns: 1fr; } }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--void-2); display: flex; flex-direction: column; }
.video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.video-card .body { padding: 18px 20px 22px; }
.video-card .hook { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--star); margin: 0 0 .5rem; }
.video-card .meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.tone { display: inline-block; font-family: var(--sans); font-weight: 500; letter-spacing: .14em; color: var(--gold); border: 1px solid rgba(232,185,74,.4); border-radius: 999px; padding: 2px 10px; font-size: .72rem; margin-right: 8px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* social links */
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .92rem; color: var(--star-dim);
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }

/* forms */
.signup { background: linear-gradient(160deg, rgba(45,27,78,.65), rgba(18,8,31,.2)); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 56px); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.form-row input { flex: 1 1 240px; }
label.field { display: block; margin-bottom: 18px; }
label.field span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
input[type=email], input[type=text], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--star); background: rgba(18,8,31,.8);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #f0a0a0; }

/* page intro (non-home pages) */
.page-intro { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 22px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--star); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer .icon { height: 44px; width: auto; opacity: .85; }
.site-footer small { color: var(--muted); display: block; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.site-footer .links a { color: var(--muted); text-decoration: none; }
.site-footer .links a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
