/* Burnout Field Notes — first-draft site styles
   Palette from the channel plan: deep teal, warm off-white, muted orange.
   No external fonts or image hotlinks. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal-950: #0C2A28;
  --teal-900: #143D3A;
  --teal-800: #1B534F;
  --teal-700: #246662;
  --teal-100: #DCE8E5;
  --teal-50: #EAF2F0;
  --cream: #F4EFE6;
  --paper: #FBF8F2;
  --sand: #E8E0D2;
  --ink: #1C2F2C;
  --ink-soft: #4A5E5A;
  --orange: #8F4C24;
  --orange-mid: #C77943;
  --orange-soft: #F1DCC8;
  --line: #DDD4C4;
  --danger-free: #8F4C24; /* muted, not a crisis red */
  --shadow: 0 18px 40px -24px rgba(20, 61, 58, 0.45);
  --radius: 18px;
  --max: 68rem;
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 430;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-800);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--teal-950);
}

:focus-visible {
  outline: 3px solid var(--orange-mid);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--teal-900);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-900);
  min-width: 0;
}

.brand img,
.brand svg.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 560;
}

.nav-list a:hover {
  color: var(--teal-800);
}

.nav-list .btn-primary,
.nav-list .btn-primary:hover {
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--teal-900);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--teal-950);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-900);
  border-color: var(--teal-100);
}

.btn-ghost:hover {
  background: var(--teal-50);
  color: var(--teal-950);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-cta {
  padding: 0.5rem 0.95rem;
  font-size: 0.95rem;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-900);
  cursor: pointer;
}

.menu-btn .menu-close {
  display: none;
}

.site-header:has(.nav-toggle:checked) .menu-btn .menu-open {
  display: none;
}

.site-header:has(.nav-toggle:checked) .menu-btn .menu-close {
  display: inline;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(36, 102, 98, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(199, 121, 67, 0.12), transparent 50%),
    var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 80;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--teal-950);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-800);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.meta-note {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Notebook illustration */

.notebook {
  position: relative;
  width: min(100%, 26rem);
  margin-inline: auto;
  padding: 0.35rem;
  filter: drop-shadow(var(--shadow));
}

.notebook svg {
  width: 100%;
  height: 100%;
}

/* ---------- Sections ---------- */

section {
  padding: 4.25rem 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "opsz" 60;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--teal-950);
}

.about {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.pull-quote {
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0 1.15rem;
  border-left: 3px solid var(--orange-mid);
  color: var(--teal-800);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

/* Topics */

.topics-intro {
  max-width: 40rem;
  margin: 0 0 2.25rem;
  color: var(--ink-soft);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.topic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.topic-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-800);
  display: grid;
  place-items: center;
}

.topic-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.topic-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--teal-950);
}

.topic-card p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* Video placeholder */

.watch {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(20, 61, 58, 0.07), transparent 60%),
    var(--cream);
}

.video-placeholder {
  position: relative;
  margin-top: 1.75rem;
  border: 2px dashed color-mix(in srgb, var(--teal-800) 35%, var(--sand));
  border-radius: 22px;
  background: var(--paper);
  aspect-ratio: 16 / 9;
  min-height: 20rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.75rem 1.35rem;
  overflow: hidden;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--teal-50) 0%, var(--paper) 100%);
  opacity: 0.9;
}

.video-placeholder-inner {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}

.play-mark {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--paper);
  display: grid;
  place-items: center;
}

.play-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-placeholder h2,
.signup h2 {
  margin-bottom: 0.55rem;
}

.video-placeholder p,
.placeholder-note {
  margin: 0;
  color: var(--ink-soft);
}

.video-frame {
  position: relative;
  margin-top: 1.75rem;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--teal-950);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social */

.social {
  padding-top: 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.social-card {
  flex: 1 1 14rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.social-card:hover {
  border-color: var(--teal-100);
  color: var(--teal-950);
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-card strong {
  display: block;
  font-size: 1.02rem;
}

.social-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Email signup placeholder */

.signup {
  background: var(--teal-900);
  color: var(--cream);
  padding: 4.5rem 0;
}

.signup-card {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.signup .section-kicker,
.signup .badge {
  background: rgba(241, 220, 200, 0.18);
  color: var(--orange-soft);
}

.signup h2 {
  color: var(--paper);
}

.signup p {
  margin: 0 0 1.4rem;
  color: color-mix(in srgb, var(--cream) 82%, white);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.signup-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.signup-form input[type="email"] {
  flex: 1 1 14rem;
  width: 100%;
  max-width: 22rem;
  height: 3.1rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--cream) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal-950) 70%, black);
  color: var(--cream);
  font: inherit;
}

.signup-form input[type="email"]:disabled {
  opacity: 0.7;
}

.signup-form input::placeholder {
  color: color-mix(in srgb, var(--cream) 65%, var(--teal-800));
}

.signup .btn-primary {
  background: var(--orange-soft);
  color: var(--teal-950);
}

.signup .btn:disabled {
  opacity: 1;
  background: color-mix(in srgb, var(--orange-soft) 55%, var(--teal-800));
  color: var(--teal-950);
}

.signup .placeholder-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--cream) 70%, var(--teal-800));
}

/* Footer */

.site-footer {
  background: var(--teal-950);
  color: color-mix(in srgb, var(--cream) 82%, white);
  padding: 3rem 0 2.25rem;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.7rem;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--orange-soft);
}

.site-footer a:hover {
  color: var(--paper);
}

.crisis-box {
  background: color-mix(in srgb, var(--cream) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 14%, transparent);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}

.crisis-box p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  padding-top: 1.25rem;
  color: color-mix(in srgb, var(--cream) 62%, var(--teal-800));
  font-size: 0.92rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--paper);
  text-decoration: underline;
}

/* Inner pages */

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--ink-soft);
}

.prose {
  max-width: 42rem;
  padding-bottom: 4rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.6rem;
}

.prose h3 {
  margin: 1.6rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--teal-900);
}

.prose ul {
  padding-left: 1.2rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notebook {
    width: min(100%, 22rem);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1.0625rem;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
  }

  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }

  .site-header:has(.nav-toggle:checked) .nav-panel,
  .site-header:has(.nav-toggle:focus-visible) .nav-panel {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li {
    border-top: 1px solid var(--line);
  }

  .nav-list a,
  .nav-list .btn {
    display: block;
    padding: 0.8rem 0.2rem;
    border-radius: 0;
  }

  .nav-list .btn {
    text-align: center;
    margin-top: 0.5rem;
    border-radius: 999px;
  }

  .hero {
    padding: 2.25rem 0 2.75rem;
  }

  section {
    padding: 3.1rem 0;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-form input[type="email"],
  .signup-form .btn {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: 3.1rem;
  }

  .video-placeholder {
    aspect-ratio: auto;
    min-height: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
