/* parentstakefive.com — Rev. Jen Kirby Evans
   Editorial system: deep blue dominant, sage as the quiet accent. */

:root {
  --ink: #173A56;
  --denim: #285F82;
  --dusty: #7E9FB6;
  --sage: #A8C0C0;
  --sage-tint: rgba(168, 192, 192, 0.28);
  --cream: #F7F2E8;
  --paper: #FFFDF8;
  --body: #252421;
  --muted: #55606B;
  --hair: rgba(23, 58, 86, 0.14);
  --hair-light: rgba(255, 253, 248, 0.22);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-1: 0 1px 2px rgba(23,58,86,.05), 0 6px 18px -12px rgba(23,58,86,.22);
  --shadow-2: 0 2px 4px rgba(23,58,86,.06), 0 18px 40px -20px rgba(23,58,86,.32);

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.75rem;
  --s-4: 3rem;
  --s-5: 5rem;

  --wrap: 70rem;
  --measure: 38rem;
  --header-h: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* Paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.085;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--denim); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s ease; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--denim); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: -0.024em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.012em; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 0.4em; letter-spacing: -0.005em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--denim);
  margin: 0 0 var(--s-2);
}
.eyebrow-light, .band-ink .eyebrow { color: var(--sage); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 52rem; }

section { padding: var(--s-5) 0; }
.band-cream { background: var(--cream); }
.band-ink { background: var(--ink); color: #EAF0F5; }
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: var(--paper); }
.band-ink a { color: #CFE0EC; }
.band-ink a:hover { color: var(--paper); }

/* Painted cross divider */

.cross-rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 var(--s-3);
}
.cross-rule::before, .cross-rule::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--sage) 20%, var(--sage) 80%, transparent);
  opacity: .9;
}
.cross-rule::before { max-width: 6rem; flex: 0 0 6rem; }
.cross-mark {
  position: relative;
  width: 1.1rem;
  height: 1.5rem;
  flex: none;
  opacity: .85;
}
.cross-mark::before, .cross-mark::after {
  content: "";
  position: absolute;
  background: var(--sage);
  border-radius: 1px;
}
.cross-mark::before { left: 45%; top: 0; width: 3px; height: 100%; transform: rotate(1.5deg); }
.cross-mark::after { top: 30%; left: 0; width: 100%; height: 3px; transform: rotate(-1.5deg); }
.band-ink .cross-mark::before, .band-ink .cross-mark::after { background: var(--sage); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.93);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 var(--hair);
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--header-h);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  flex-wrap: wrap;
}
.wordmark {
  display: grid;
  gap: 0.05rem;
  text-decoration: none;
  margin-right: auto;
  line-height: 1.05;
}
.wordmark .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.wordmark .role { font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.wordmark:hover .name { color: var(--denim); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; }
.site-nav a {
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.site-nav a:hover { color: var(--denim); border-bottom-color: var(--sage); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--denim); }

.nav-toggle { display: none; }
.menu-summary { display: none; }

/* Buttons */

.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .12s ease;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--denim); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.band-ink .btn-primary { background: var(--paper); color: var(--ink); }
.band-ink .btn-primary:hover { background: var(--sage); color: var(--ink); }
.band-ink .btn-secondary { color: var(--paper); border-color: var(--hair-light); }
.band-ink .btn-secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-small { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: 0.9375rem; }

/* Hero */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--s-5); }
.hero-grid { display: grid; gap: var(--s-4); align-items: center; }
.hero h1 { margin-bottom: 0.35rem; }
.hero .standfirst {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--denim);
  margin: 0 0 var(--s-2);
  line-height: 1.35;
}
.hero .lede { font-size: 1.125rem; max-width: 32rem; margin-bottom: var(--s-3); }
.hero-logo { width: 12rem; margin-bottom: var(--s-2); }

.portrait-frame { position: relative; justify-self: center; width: 100%; max-width: 25rem; }
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1.75rem -1.25rem -1.25rem 1.75rem;
  background: var(--dusty);
  opacity: .4;
  border-radius: 999px 999px 6px 6px;
}
.portrait-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 999px 999px 6px 6px;
  box-shadow: var(--shadow-2);
}

/* About */

.about-grid { display: grid; gap: var(--s-4); align-items: start; }
.about-body p { max-width: 36rem; }

.facts {
  display: grid;
  gap: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: var(--shadow-1);
}
.fact .label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--denim);
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.fact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.9375rem; }
.fact li { color: var(--body); }

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: var(--s-4) 0 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--sage);
  max-width: 34rem;
}

/* Card grids */

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover, .card-link:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--denim); }
.card-link:hover h3, .card-link:hover h4 { color: var(--denim); }
.band-ink .card-link:hover h3, .band-ink .card-link:hover h4 { color: var(--sage); }
.band-ink .ep-card .ep-badge { color: var(--sage); }
.card p { font-size: 0.9375rem; color: var(--muted); }

.band-ink .card {
  background: rgba(255,253,248,.05);
  border-color: var(--hair-light);
  box-shadow: none;
}
.band-ink .card p { color: #C6D5E0; }

.mark {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.9rem;
  color: var(--denim);
}
.band-ink .mark { color: var(--dusty); }
.mark svg { width: 100%; height: 100%; display: block; }

/* Speaking CTA panel */

.cta-panel {
  margin-top: var(--s-4);
  background: var(--paper);
  border-left: 4px solid var(--sage);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.cta-panel h3, .cta-panel p { color: var(--ink); margin: 0; }
.cta-panel p { color: var(--muted); }
.cta-panel .btn-primary { background: var(--ink); color: var(--paper); }
.cta-panel .btn-primary:hover { background: var(--denim); color: var(--paper); }
.cta-panel .btn-secondary { color: var(--ink); border-color: var(--ink); }
.cta-panel .btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* Podcast */

.show-logo { width: min(22rem, 100%); margin-bottom: var(--s-3); }

.stats { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; margin: var(--s-3) 0; }
.stat { background: var(--paper); padding: 1.4rem 1.5rem; }
.stat .num { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); display: block; white-space: nowrap; }
.stat .cap { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.45rem; display: block; }

.platforms { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; align-items: center; margin-top: var(--s-2); }
.platform {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 0.9375rem;
  text-decoration: none;
  background: var(--paper);
  transition: border-color .25s ease, color .25s ease;
}
a.platform:hover { border-color: var(--sage); background: var(--cream); color: var(--ink); }
.platform-soon {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
  cursor: default;
}
.platform-soon .soon {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.5rem;
  color: var(--muted);
}

/* Resources */

.res-card { display: flex; flex-direction: column; gap: 0.6rem; }
.res-card .format {
  align-self: flex-start;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  background: var(--sage-tint);
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
}
.res-card p { flex: 1; }
.res-card .action { font-weight: 700; font-size: 0.9375rem; color: var(--denim); }
.res-card.unavailable { border-style: dashed; box-shadow: none; background: transparent; }
.res-card.unavailable .action { color: var(--muted); font-weight: 400; }

/* Episodes */

.ep-list { list-style: none; margin: 0; padding: 0; }
.ep-list li { border-bottom: 1px solid var(--hair); }
.ep-list a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.75rem 0;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--body);
  transition: color .25s ease, padding-left .25s ease;
}
.ep-list a:hover { color: var(--denim); padding-left: 0.35rem; }
.ep-num { font-family: var(--mono); font-size: 0.8125rem; color: var(--denim); }
.ep-title { font-size: 1.0625rem; }

.theme { margin-bottom: var(--s-4); }
.theme > p { color: var(--muted); font-size: 0.9375rem; max-width: 30rem; }

.ep-card .ep-badge {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--denim);
  display: block;
  margin-bottom: 0.5rem;
}
.ep-card .runtime { font-size: 0.8125rem; color: var(--muted); }

.season-grid { display: grid; gap: var(--s-3); }

/* Series — plain by design */

.series { border-top: 2px solid var(--ink); padding-top: 1.25rem; margin-bottom: var(--s-3); }
.series .meta { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.75rem; }
.helpline { border: 1px solid var(--ink); padding: 1.25rem 1.5rem; background: var(--paper); max-width: 42rem; }
.helpline p { margin: 0; }
.helpline strong { display: block; margin-bottom: 0.25rem; color: var(--ink); }

.embed { border: 1px solid var(--hair); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-1); }
.embed { padding: 0.75rem; }
.embed iframe { width: 100%; border: 0; display: block; }
.embed-placeholder { padding: 2.5rem 1.5rem; text-align: center; }

.todo {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px dashed var(--hair);
  border-radius: 2px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
}
.ext-todo { color: var(--muted); }
.band-ink .ext-todo { color: #C6D5E0; }
.band-ink .todo { color: #C6D5E0; border-color: var(--hair-light); }

/* Contact */

.contact-grid { display: grid; gap: var(--s-4); align-items: start; }
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-2);
}
.contact-form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 0.75rem 0.85rem;
  min-height: 3rem;
  width: 100%;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: var(--dusty); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--denim);
  box-shadow: 0 0 0 3px rgba(40,95,130,.16);
}
.contact-form input:user-invalid,
.contact-form textarea:user-invalid { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,58,86,.12); }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form button { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.contact-side ul { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9375rem; }

/* Footer */

.site-footer { background: var(--ink); color: #C6D5E0; padding: var(--s-4) 0 var(--s-3); }
.site-footer a { color: #DCE7EF; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-3); padding-bottom: var(--s-3); }
.footer-grid h4 { color: var(--paper); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.footer-brand .name { font-family: var(--serif); font-size: 1.35rem; color: var(--paper); letter-spacing: -0.02em; display: block; }
.footer-brand p { font-size: 0.9375rem; margin-top: 0.5rem; max-width: 22rem; }
.footer-bottom { border-top: 1px solid var(--hair-light); padding-top: 1.25rem; font-size: 0.8125rem; color: #A9C2D2; }

/* Responsive */

@media (max-width: 45.99rem) {
  .menu {
    margin-left: auto;
    position: relative;
  }
  .menu-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
    border: 1px solid var(--hair);
    border-radius: 3px;
    cursor: pointer;
    list-style: none;
  }
  .menu-summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-summary { border-color: var(--denim); }
  .menu .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 13rem;
    background: var(--paper);
    border: 1px solid var(--hair);
    border-radius: 4px;
    box-shadow: var(--shadow-2);
    padding: 0.4rem 0;
  }
  .menu .site-nav a { padding: 0.7rem 1.1rem; border-bottom: 0; }
  .menu .site-nav a:hover { background: var(--cream); }
  .header-cta { display: none; }
}

@media (min-width: 46rem) {
  details.menu > .site-nav,
  details.menu:not([open]) > .site-nav { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-4); }
  .about-grid { grid-template-columns: 1.35fr 0.65fr; gap: var(--s-4); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .hero .stats { grid-template-columns: 1fr; }
  .season-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; }
  .cta-panel { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .theme-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
}

@media (min-width: 62rem) {
  .about-grid { grid-template-columns: 1.4fr 0.6fr; gap: var(--s-5); }
  .hero-grid { gap: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
