/* ============================================================
   ONE YEAR TO LIVE - "Daybreak" design system
   Fresh rebrand 2026. Warm paper, deep ink, sunrise orange.
   Fraunces display + Instrument Sans body.
============================================================ */

:root {
  --paper: #FAF6EE;
  --paper-2: #F2EBDD;
  --ink: #15181B;
  --ink-2: #1D2126;
  --ink-soft: #4A5158;
  --line: rgba(21, 24, 27, 0.14);
  --line-dark: rgba(250, 246, 238, 0.16);
  --orange: #E4572E;
  --orange-bright: #FF6B3D;
  --gold: #D9A441;
  --jungle: #1E4034;
  --white: #FFFFFF;
  --text-on-dark: #EDE7DA;
  --muted-on-dark: #A9A296;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --max-w: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
p { margin: 0 0 1.1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.narrow { max-width: 780px; }
section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
}
.dark .eyebrow { color: var(--orange-bright); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(228, 87, 46, 0.28);
}
.btn-solid:hover { background: var(--orange-bright); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-ghost { border-color: var(--text-on-dark); color: var(--text-on-dark); }
.dark .btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---- Nav ---- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-wrap.scrolled {
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap.on-dark:not(.scrolled) { color: var(--text-on-dark); }
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.05rem clamp(1.2rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo .ring { flex: 0 0 auto; }
.logo em { font-style: italic; font-weight: 400; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--orange); }
.nav-links .btn { padding: 0.6rem 1.3rem; font-size: 0.88rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5.5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem 1.6rem;
    gap: 1.1rem;
    display: none;
    color: var(--ink);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { justify-content: center; }
}

/* ---- Dark sections ---- */
.dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .soft { color: rgba(237, 231, 218, 0.72); }
.soft { color: var(--ink-soft); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(21, 24, 27, 0.09);
  border-color: rgba(228, 87, 46, 0.35);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- Checklist ---- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.65rem;
  font-size: 0.97rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.52em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---- Episode cards ---- */
.ep-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-on-dark);
  transition: transform var(--transition), border-color var(--transition);
}
.ep-card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 61, 0.5); }
.ep-thumb { aspect-ratio: 16 / 9; background: #0d0f11; position: relative; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-thumb .play span {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(228, 87, 46, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.ep-card:hover .play span { transform: scale(1.1); }
.ep-body { padding: 1.3rem 1.4rem 1.5rem; }
.ep-num {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 0.4rem;
}
.ep-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 560;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.ep-meta { font-size: 0.82rem; color: rgba(237, 231, 218, 0.55); }

/* ---- Subscribe pills ---- */
.sub-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.sub-pill:hover { border-color: var(--orange-bright); background: rgba(255, 107, 61, 0.1); }
.light .sub-pill { border-color: var(--line); color: var(--ink); }
.light .sub-pill:hover { background: rgba(228, 87, 46, 0.08); }

/* ---- Audio player ---- */
audio { width: 100%; }

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { text-decoration: none; font-size: 0.92rem; opacity: 0.8; transition: opacity var(--transition), color var(--transition); }
.footer a:hover { opacity: 1; color: var(--orange-bright); }
.footer-brand p { font-size: 0.93rem; color: rgba(237, 231, 218, 0.65); max-width: 300px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(237, 231, 218, 0.5);
}
.footer-bottom a { font-size: inherit; }

/* ---- Fade in ---- */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---- Warm image treatment ---- */
.warm-img {
  border-radius: var(--r);
  overflow: hidden;
}
.warm-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---- Big statement ---- */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-style: italic;
  font-weight: 480;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
