
:root {
  --ink: #173744;
  --ink-2: #245263;
  --cream: #f6eddd;
  --paper: #fffaf2;
  --rust: #a73b26;
  --rust-dark: #812b1c;
  --orange: #e69a45;
  --teal: #2f7369;
  --green: #446b50;
  --muted: #657279;
  --line: rgba(23, 55, 68, .16);
  --shadow: 0 22px 60px rgba(23, 55, 68, .13);
  --radius: 26px;
  --shell: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(230,154,69,.11), transparent 26%),
    linear-gradient(180deg, #fffdf8, #f8efe3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
code {
  padding: .12em .38em;
  border-radius: 6px;
  background: rgba(23,55,68,.08);
}
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 86px 0; }
.section-soft { background: var(--cream); }
.section-dark { color: white; background: var(--ink); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  transform: translateY(-160%); background: white;
  padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,250,242,.9);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; line-height: 1.05;
}
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 15px;
  color: white; background: var(--ink);
  font-family: Georgia, serif; font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.12);
}
.brand strong { display: block; }
.brand small { display: block; margin-top: 4px; color: rgba(23,55,68,.63); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-weight: 800; font-size: .94rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rust); }
.site-nav .nav-support {
  color: white; background: var(--rust);
  padding: 10px 16px; border-radius: 999px;
}
.menu-button {
  display: none; border: 0; background: transparent; padding: 10px;
}
.menu-button span:not(.sr-only) {
  display: block; width: 26px; height: 2px;
  margin: 5px; background: var(--ink);
}

.eyebrow {
  margin: 0 0 12px; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem;
  font-weight: 900; color: var(--rust);
}
h1, h2, h3 {
  margin: 0; font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}
h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.25rem); letter-spacing: -.045em; }
h3 { font-size: 1.55rem; }
.lead {
  font-size: 1.13rem; color: rgba(23,55,68,.72);
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 49px; padding: 12px 19px;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; font-weight: 850; cursor: pointer;
}
.button-primary { color: white; background: var(--rust); }
.button-primary:hover { background: var(--rust-dark); }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); }
.button-secondary:hover { border-color: var(--ink); }
.button-light { color: var(--ink); background: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.parent-hero {
  position: relative; overflow: hidden; padding: 88px 0 76px;
}
.parent-hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; right: -140px; top: -180px;
  border-radius: 50%; background: rgba(230,154,69,.16);
}
.parent-grid {
  display: grid; grid-template-columns: 1fr .88fr;
  align-items: center; gap: 72px;
}
.wordmark-card {
  position: relative; padding: 28px;
  border: 1px solid var(--line); border-radius: 36px;
  background: rgba(255,255,255,.72); box-shadow: var(--shadow);
}
.wordmark-card img { width: 100%; }
.wordmark-card::after {
  content: "Stories • projects • channels";
  display: block; margin-top: 20px; text-align: center;
  font-size: .8rem; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.parent-copy .lead { max-width: 60ch; margin: 24px 0 28px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  padding: 8px 12px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  font-size: .86rem; font-weight: 800;
}

.ticker {
  overflow: hidden; color: white; background: var(--ink);
  border-block: 4px solid var(--rust);
}
.ticker-track {
  display: flex; gap: 38px; width: max-content; padding: 13px 0;
  animation: ticker 26s linear infinite;
  font-size: .82rem; font-weight: 900; letter-spacing: .12em;
}
.ticker-track span::after { content: " • "; color: var(--orange); margin-left: 38px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-heading {
  display: grid; grid-template-columns: 1fr minmax(260px, 470px);
  align-items: end; gap: 38px; margin-bottom: 38px;
}
.section-heading > p { margin: 0; color: rgba(23,55,68,.68); }
.section-dark .section-heading > p { color: rgba(255,255,255,.68); }
.section-dark .eyebrow { color: #f3b275; }

.channel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.channel-card {
  overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.channel-art {
  position: relative; aspect-ratio: 16/10;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #1d5262, #b65332);
}
.channel-art img { width: 100%; height: 100%; object-fit: cover; }
.channel-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  padding: 28px; text-align: center; color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(230,154,69,.48), transparent 30%),
    linear-gradient(145deg, var(--ink), var(--teal));
}
.channel-placeholder span { font-size: 3.4rem; }
.status {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 10px; border-radius: 999px;
  color: white; background: rgba(23,55,68,.84);
  font-size: .72rem; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase;
}
.channel-body { padding: 23px; }
.channel-body p { color: rgba(23,55,68,.67); }
.channel-meta {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin: 18px 0 0; padding: 0; list-style: none;
}
.channel-meta li {
  padding: 5px 9px; border-radius: 999px;
  background: var(--cream); font-size: .76rem; font-weight: 800;
}
.channel-link {
  display: inline-block; margin-top: 18px;
  font-weight: 900; text-underline-offset: 4px;
}

.content-grid, .video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.content-card, .video-card {
  overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.card-visual {
  position: relative; aspect-ratio: 16/10;
  display: grid; place-items: center; padding: 24px;
  color: white;
  background:
    linear-gradient(150deg, rgba(23,55,68,.05), rgba(23,55,68,.72)),
    var(--card-image, linear-gradient(135deg, #2f7369, #d47a38));
  background-size: cover; background-position: center;
}
.card-badge {
  align-self: start; justify-self: start;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(23,55,68,.84);
  font-size: .72rem; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase;
}
.card-emoji { font-size: 3.2rem; filter: drop-shadow(0 5px 10px rgba(0,0,0,.25)); }
.card-body { padding: 22px; }
.card-body p { color: rgba(23,55,68,.67); }
.card-link { font-weight: 900; text-underline-offset: 4px; }

.video-card { color: white; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13); box-shadow: none; }
.video-thumb {
  aspect-ratio: 16/9; display: grid; place-items: center;
  background:
    linear-gradient(rgba(23,55,68,.1), rgba(23,55,68,.72)),
    var(--video-image, linear-gradient(135deg, #8d3222, #2f7369));
  background-size: cover; background-position: center;
}
.play {
  display: grid; place-items: center; width: 70px; height: 70px;
  border-radius: 50%; color: var(--rust); background: white;
  font-size: 1.45rem; box-shadow: 0 15px 40px rgba(0,0,0,.28);
}
.video-card .card-body p { color: rgba(255,255,255,.7); }

.split-panel {
  display: grid; grid-template-columns: .86fr 1.14fr;
  align-items: center; gap: 64px;
}
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.social-link {
  display: flex; align-items: center; gap: 14px;
  min-height: 74px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; background: rgba(255,255,255,.76);
  box-shadow: 0 10px 28px rgba(23,55,68,.07);
}
.social-link:hover { transform: translateY(-2px); border-color: var(--rust); }
.social-icon {
  display: grid; place-items: center; flex: 0 0 42px;
  width: 42px; height: 42px; border-radius: 12px;
  color: white; background: var(--social-color, var(--ink));
  font-weight: 900;
}
.social-link strong, .social-link small { display: block; }
.social-link small { color: rgba(23,55,68,.61); }

.channel-hero { padding: 72px 0 62px; }
.channel-hero-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  align-items: center; gap: 54px;
}
.channel-hero-art {
  margin: 0; padding: 14px;
  border-radius: 42px; background: rgba(255,255,255,.72);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.channel-hero-art img { width: 100%; border-radius: 36% / 32%; }
.channel-hero .lead { max-width: 58ch; margin: 22px 0 28px; }
.channel-label {
  display: inline-flex; gap: 8px; align-items: center;
  margin-bottom: 16px; padding: 7px 11px; border-radius: 999px;
  color: white; background: var(--teal);
  font-size: .75rem; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase;
}

.roadside-cta {
  padding: 30px; border-radius: 28px;
  color: white; background:
    radial-gradient(circle at 90% 10%, rgba(230,154,69,.28), transparent 38%),
    var(--ink);
}
.roadside-cta h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.roadside-cta p { color: rgba(255,255,255,.72); max-width: 65ch; }

.guestbook-page { min-height: 100vh; background: var(--cream); }
.guestbook-hero { padding: 68px 0 36px; text-align: center; }
.guestbook-hero h1 { font-size: clamp(3rem, 7vw, 5.7rem); }
.guestbook-hero p { max-width: 720px; margin: 20px auto 0; }
.guestbook-grid {
  display: grid; grid-template-columns: .72fr 1.28fr;
  gap: 48px; align-items: start; padding-bottom: 90px;
}
.guestbook-side {
  padding: 26px; border-radius: 24px;
  background: rgba(255,255,255,.62); border: 1px solid var(--line);
}
.guestbook-side ul { padding-left: 20px; }
.guestbook-form {
  display: grid; gap: 16px; padding: 30px;
  border-radius: var(--radius); background: white;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.guestbook-form label { display: grid; gap: 8px; font-weight: 800; }
input, textarea {
  width: 100%; padding: 13px 14px;
  color: var(--ink); background: #fffdf8;
  border: 1px solid rgba(23,55,68,.22); border-radius: 14px;
}
input:focus, textarea:focus {
  outline: 3px solid rgba(47,115,105,.2);
  border-color: var(--teal);
}
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }

.support-hero { padding: 74px 0 38px; text-align: center; }
.support-hero p { max-width: 720px; margin: 20px auto 0; }
.support-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; max-width: 860px; margin: 40px auto 0;
}
.support-link {
  min-height: 120px; padding: 24px;
  border: 1px solid var(--line); border-radius: 22px;
  background: white; box-shadow: 0 12px 34px rgba(23,55,68,.08);
  text-decoration: none; cursor: pointer;
}
.support-link:hover { transform: translateY(-2px); border-color: var(--rust); }
.support-link strong { display: block; font-size: 1.2rem; }
.support-link small { color: var(--muted); }
.support-disclaimer {
  max-width: 760px; margin: 30px auto 0;
  text-align: center; color: var(--muted); font-size: .88rem;
}

.newsletter {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
  padding: 38px 42px; border-radius: 28px;
  color: var(--ink); background: var(--cream);
}
.newsletter p { margin-bottom: 0; }
.newsletter-form { display: flex; gap: 10px; min-width: min(100%, 430px); }
.newsletter-form input { min-width: 0; }

.site-footer {
  padding: 40px 0; color: rgba(255,255,255,.82);
  background: #0c202a;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 22px;
}
.footer-grid p { margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.copyright { grid-column: 1 / -1; font-size: .82rem; color: rgba(255,255,255,.52); }

.copy-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0; border-radius: 24px; padding: 28px;
  color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.34);
}
.copy-dialog::backdrop { background: rgba(3,13,18,.72); backdrop-filter: blur(3px); }
.dialog-close {
  position: absolute; right: 14px; top: 10px;
  border: 0; background: transparent; font-size: 2rem; cursor: pointer;
}
.copy-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.copy-row code {
  flex: 1; padding: 14px; overflow-wrap: anywhere;
  color: var(--ink); background: var(--cream);
}

.empty-state {
  grid-column: 1 / -1; padding: 28px;
  border: 1px dashed var(--line); border-radius: 18px;
  text-align: center; color: var(--muted);
}

@media (max-width: 940px) {
  .parent-grid, .channel-hero-grid, .split-panel, .guestbook-grid { grid-template-columns: 1fr; }
  .channel-grid, .content-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .parent-copy { text-align: center; }
  .parent-copy .actions, .parent-copy .pill-row { justify-content: center; }
  .wordmark-card { max-width: 680px; margin-inline: auto; }
  .channel-hero-copy { text-align: center; }
  .channel-hero-copy .actions { justify-content: center; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 18px; right: 18px;
    display: none; flex-direction: column; align-items: stretch;
    padding: 18px; border: 1px solid var(--line);
    border-radius: 18px; background: var(--paper); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-support { text-align: center; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .channel-grid, .content-grid, .video-grid, .social-grid, .support-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 28px; }
  .newsletter-form { flex-direction: column; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .parent-hero, .channel-hero { padding-top: 54px; }
  h1 { font-size: 3.05rem; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .guestbook-form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
