/* Storyds website
   Same type system as the app's ReadingStyle: Charter serif body (~1.6 line height),
   a serif display face for titles, sans for UI. Monochrome ink on paper, light and dark. */

:root {
  --paper: #ffffff;
  --paper-2: #f6f4ef;
  --ink: #1a1a1a;
  --body: #242424;
  --muted: rgba(0, 0, 0, 0.55);
  --rule: rgba(0, 0, 0, 0.1);
  --chip: rgba(0, 0, 0, 0.05);
  --skeleton: rgba(0, 0, 0, 0.06);
  --doodle-filter: none;

  /* One typeface everywhere: the system sans */
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
  --mission-bg: #f3f3f2;
  --serif-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171719;
    --paper-2: #1f1f22;
    --mission-bg: #242427;
    --ink: rgba(255, 255, 255, 0.92);
    --body: rgba(255, 255, 255, 0.84);
    --muted: rgba(255, 255, 255, 0.55);
    --rule: rgba(255, 255, 255, 0.12);
    --chip: rgba(255, 255, 255, 0.08);
    --skeleton: rgba(255, 255, 255, 0.07);
    --doodle-filter: invert(1) brightness(0.92);
  }
}

:root[data-theme="dark"] {
  --paper: #171719;
  --paper-2: #1f1f22;
  --mission-bg: #242427;
  --ink: rgba(255, 255, 255, 0.92);
  --body: rgba(255, 255, 255, 0.84);
  --muted: rgba(255, 255, 255, 0.55);
  --rule: rgba(255, 255, 255, 0.12);
  --chip: rgba(255, 255, 255, 0.08);
  --skeleton: rgba(255, 255, 255, 0.07);
  --doodle-filter: invert(1) brightness(0.92);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.doodle { filter: var(--doodle-filter); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 26px; width: auto; filter: var(--doodle-filter); }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--sans);
  font-size: 15px;
}
.nav a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { font-weight: 600; }

@media (max-width: 720px) {
  .nav { gap: 18px; }
}
@media (max-width: 480px) {
  .nav { gap: 20px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; }

.app-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  line-height: 1.1;
}
.app-store svg { width: 24px; height: 24px; fill: currentColor; margin-top: -3px; }
.app-store small { display: block; font-size: 11px; opacity: 0.8; }
.app-store strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  font-variant-numeric: lining-nums;
}

/* ---------- About: photo hero and mission ---------- */

/* The header sits over the photo, see-through with white text, until the page scrolls */
.about .site-header { transition: background-color 0.25s, border-color 0.25s; }
.about .site-header:not(.scrolled) { background: transparent; }
.about .site-header:not(.scrolled) .brand,
.about .site-header:not(.scrolled) .nav a { color: rgba(255, 255, 255, 0.78); }
.about .site-header:not(.scrolled) .brand,
.about .site-header:not(.scrolled) .nav a:hover,
.about .site-header:not(.scrolled) .nav a[aria-current] { color: #fff; }
.about .site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.about .photo-hero { margin-top: calc(var(--header-h) * -1); padding-top: calc(72px + var(--header-h)); }

.photo-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 54vw, 640px);
  padding: 72px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.photo-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 8, 0.48); }
.photo-hero .wrap { position: relative; z-index: 1; }
.photo-hero .app-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 30px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.photo-hero .app-icon img { width: 28px; height: auto; }
.photo-hero h1 { color: #fff; font-family: var(--serif-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.01em; }
.photo-hero p { max-width: 34em; margin: 22px auto 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.9); }

.photo-hero .app-store { margin-top: 32px; background: #fff; color: #1a1a1a; border-radius: 10px; }

.mission { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0; }
.mission-text { padding: 64px 64px 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.mission-text h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(36px, 4vw, 50px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 28px; }
.mission-text p { margin: 0; max-width: 30em; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--ink); }
.mission-art { align-self: stretch; min-height: 480px; display: flex; justify-content: center; align-items: flex-end; padding-top: 64px; background: var(--mission-bg); overflow: hidden; }

/* The app's Read feed, drawn in HTML. Light in both themes, like the real screen. */
.feed-phone { width: 290px; height: 410px; padding: 14px 16px 0; border: 5px solid #000; border-bottom: 0; border-radius: 36px 36px 0 0; background: #fff; color: #1a1a1a; overflow: hidden; font-family: var(--sans); }
.feed-top { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 10px; }
.feed-brand { display: flex; align-items: center; gap: 5px; font-family: var(--serif-display); font-weight: 600; font-size: 15px; }
.feed-top svg { width: 17px; height: 17px; fill: none; stroke: #1a1a1a; stroke-width: 2.2; stroke-linecap: round; }
.feed-tabs { display: flex; gap: 14px; font-size: 10.5px; color: #8a8a8a; white-space: nowrap; margin-bottom: 12px; }
.feed-tabs b { color: #1a1a1a; font-weight: 600; padding-bottom: 4px; border-bottom: 1.5px solid #1a1a1a; }
.feed-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.feed-head img { width: 66px; height: 66px; object-fit: cover; flex: none; }
.feed-author { display: flex; align-items: center; gap: 6px; font-size: 10.5px; margin: 0 0 8px; }
.feed-author i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e8d9c4; color: #8a6d4b; font-style: normal; font-size: 8px; font-weight: 600; }
.feed-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.feed-meta { font-size: 9px; color: #8a8a8a; margin: 0; }
.feed-screen > p { font-family: Charter, "Iowan Old Style", Georgia, serif; font-size: 12px; line-height: 1.65; margin: 0 0 10px; }

/* About headings share the hero's serif */
.about .section-head h2, .cta h2, .about .promise h3, .about .faq summary { font-family: var(--serif-display); font-weight: 600; letter-spacing: -0.01em; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .mission { grid-template-columns: 1fr; padding: 0; }
  .mission-text { padding: 56px var(--gutter); }
  .mission-art { min-height: 0; padding-top: 48px; }
}

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

section { padding-top: 96px; padding-bottom: 96px; }
section.tint { background: var(--paper-2); }

.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 20px; margin: 18px 0 0; }

@media (max-width: 720px) {
  section { padding-top: 80px; padding-bottom: 80px; }
  .section-head { margin-bottom: 44px; }
  .section-head p:not(.eyebrow) { font-size: 18px; }
}

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { padding-top: 0; }
.step img { height: 130px; width: auto; margin: 6px 0 20px; }
.step .num { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.step h3 { font-size: 26px; margin: 6px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 17px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 44px; }
}

/* Write */


/* Safety */

.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .promises { grid-template-columns: repeat(2, 1fr); } }
.promise {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 26px 24px;
}
.promise img { height: 70px; width: auto; margin-bottom: 16px; }
.promise h3 { font-size: 22px; margin-bottom: 8px; }
.promise p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

/* FAQ */

.faq { max-width: none; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); font-size: 17px; max-width: 60ch; }

/* Final CTA */

.cta { text-align: center; padding-top: 104px; padding-bottom: 104px; background: #1a1a1a; color: #fff; } /* dark in both themes, like the app banner */
.cta .wrap > * { margin-left: auto; margin-right: auto; }
.cta img { height: 64px; width: auto; margin: 0 auto 28px; filter: brightness(0) invert(1); }
.cta h2 { color: #fff; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 auto; }
.cta p { color: rgba(255, 255, 255, 0.7); font-size: 20px; margin: 20px auto 36px; }
.cta .app-store { background: #fff; color: #1a1a1a; border-radius: 10px; }
.cta + .site-footer, main:has(> .cta:last-child) + .site-footer { border-top-color: transparent; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 36px;
  padding-bottom: 44px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Stories home ---------- */

.intro { padding-bottom: 36px; }
/* sized to the feed column so the headline stays on one line beside the banner */
.intro h1 { font-size: clamp(30px, 6.4cqi, 58px); line-height: 1.05; letter-spacing: -0.03em; }
.intro h1 em { font-style: normal; }
.intro p { font-family: var(--sans); font-size: 16px; color: var(--muted); margin: 16px 0 0; }
.intro p a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.intro p a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .intro { padding-bottom: 24px; }
  .feed { padding-top: 36px; }
}


.tabs-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.chips {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--sans);
  font-size: 15px;
  padding-top: 4px;
}
.chips::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .chips { gap: 22px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
}

.chip {
  flex: none;
  background: none;
  border: 0;
  padding: 10px 0 13px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.chip[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.feed { padding-top: 64px; padding-bottom: 72px; }
.feed-main .tabs-bar { margin-bottom: 44px; }

/* Cards */

.story-card { display: block; text-decoration: none; color: inherit; min-width: 0; }
.story-card .cover-wrap { overflow: hidden; border-radius: 14px; background: var(--skeleton); }
.story-card .cover { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story-card:hover .cover { transform: scale(1.035); }
.story-card:hover h2, .story-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.story-card h2, .story-card h3 { overflow-wrap: anywhere; }
.story-card .excerpt {
  margin: 0 0 16px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* Featured: the newest story */
.story-card.lead { padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.story-card.lead.has-cover { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.story-card.lead .cover-wrap { aspect-ratio: 4 / 3; border-radius: 18px; }
.story-card.lead h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; margin-bottom: 16px; }
.story-card.lead .excerpt { font-size: 19px; line-height: 1.6; color: var(--body); -webkit-line-clamp: 6; }
.story-card.lead:not(.has-cover) .card-text { max-width: 760px; }
@media (max-width: 860px) {
  .story-card.lead.has-cover { grid-template-columns: 1fr; gap: 24px; }
  .story-card.lead .cover-wrap { aspect-ratio: 16 / 10; }
  .story-card.lead .excerpt { font-size: 17px; -webkit-line-clamp: 5; }
}

/* Grid */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 56px 40px; padding-top: 48px; }
.feed-grid:empty { display: none; }
.story-card.tile .cover-wrap { aspect-ratio: 3 / 2; margin-bottom: 18px; }
.story-card.tile h3 { font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.story-card.tile .excerpt { font-size: 16px; line-height: 1.55; -webkit-line-clamp: 3; }
.story-card.tile:not(.has-cover) .excerpt { -webkit-line-clamp: 7; }
.story-card.tile:not(.has-cover) { border-top: 2px solid var(--ink); padding-top: 18px; }

/* Home: story list with a sticky "get the app" banner on the right */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.feed-main { min-width: 0; container-type: inline-size; }
.app-banner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px 26px;
  background: #1a1a1a; /* dark in both themes */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--sans);
}
.app-banner img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.app-banner h2 { color: #fff; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; }
.app-banner p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); margin: 0 0 22px; }
.app-banner .app-store { border-radius: 10px; height: 50px; background: #fff; color: #1a1a1a; }
@media (max-width: 960px) {
  /* one column: headline, tabs, banner, then the list */
  .feed-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .feed-main { display: contents; }
  .intro { order: -3; }
  .feed-main .tabs-bar { order: -2; margin-bottom: 24px; }
  .app-banner { margin-bottom: 32px; }
  .app-banner { position: static; order: -1; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .app-banner img { grid-row: span 2; height: 34px; margin: 2px 0 0; }
  .app-banner h2 { font-size: 18px; margin-bottom: 4px; }
  .app-banner p { margin-bottom: 16px; }
  .app-banner .app-store { grid-column: 2; justify-self: start; }
}

/* Home list: one story after another, text on the left, thumbnail on the right */
.feed-lead:empty { display: none; }
.feed .feed-grid { display: block; max-width: 820px; padding-top: 0; }
.story-card.row { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.story-card.row:first-child { padding-top: 8px; }
.story-card.row.has-cover { grid-template-columns: 1fr 112px; gap: 28px; }
.story-card.row .cover-wrap { aspect-ratio: 1 / 1; border-radius: 0; }
.story-card.row h3 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.story-card.row .excerpt { font-size: 16px; line-height: 1.55; -webkit-line-clamp: 2; margin-bottom: 14px; }
.story-card.row:not(.has-cover) .excerpt { -webkit-line-clamp: 3; }
@media (max-width: 600px) {
  .story-card.row { padding: 24px 0; }
  .story-card.row.has-cover { grid-template-columns: 1fr 72px; gap: 16px; align-items: start; }
  .story-card.row h3 { font-size: 20px; }
  .story-card.row .excerpt { font-size: 15px; -webkit-line-clamp: 2; }
}

.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.byline b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  text-transform: uppercase;
}
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }

/* Loading */
.skeleton { pointer-events: none; }
.skeleton .cover-wrap { aspect-ratio: 3 / 2; }
.skeleton.lead .cover-wrap { aspect-ratio: 4 / 3; }
.skeleton .bar { height: 12px; border-radius: 6px; background: var(--skeleton); margin-bottom: 12px; }
.skeleton .bar.t { height: 26px; width: 80%; margin-bottom: 18px; }
.skeleton .bar.s { width: 35%; }
.skeleton .bar, .skeleton .cover-wrap { animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: 0.45; } }

/* Empty, error and end-of-list states */
.state { text-align: center; padding: 56px 12px 16px; font-family: var(--sans); }
.state img { width: auto; height: 120px; margin: 0 auto 18px; }
.state h3 { font-size: 22px; margin-bottom: 6px; }
.state p { margin: 0 auto 18px; color: var(--muted); font-size: 15px; max-width: 32ch; line-height: 1.5; }

/* ---------- Story page ---------- */

.wrap.narrow { max-width: 720px; }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.2s;
}
.progress.on { opacity: 1; }

.story-article { padding-top: 40px; padding-bottom: 80px; min-height: 60vh; }
.story-article .skeleton { padding-top: 40px; }
.crumb {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 36px;
}
.crumb:hover { color: var(--ink); }
.story-article h1 { font-size: clamp(36px, 5.2vw, 54px); line-height: 1.08; margin: 0 0 24px; overflow-wrap: anywhere; }
.story-article .byline { font-size: 15px; margin-bottom: 40px; }
.story-cover { width: 100%; max-height: 560px; object-fit: cover; border-radius: 16px; margin-bottom: 44px; background: var(--skeleton); }
.story-body p { font-size: 20px; line-height: 1.65; color: var(--body); margin: 0 0 1.4em; overflow-wrap: break-word; }
@media (max-width: 720px) { .story-body p { font-size: 19px; } }

.the-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 32px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.the-end::before, .the-end::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.after-story {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 16px 16px 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--sans);
}
.after-story img { height: 30px; width: auto; flex: none; filter: var(--doodle-filter); }
.after-story p { flex: 1; margin: 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.after-story .btn { flex: none; height: 38px; font-size: 14px; padding: 0 16px; }
@media (max-width: 480px) { .after-story img { display: none; } }


.up-next { padding-top: 72px; padding-bottom: 96px; background: var(--paper); border-top: 1px solid var(--rule); }
.up-next-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 36px; }

/* ---------- Legal / support pages ---------- */

.doc { padding: 72px 0 112px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.08; margin-bottom: 12px; }
.doc .updated { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0 0 40px; }
.doc .intro { font-size: 21px; color: var(--body); }
.doc h2 { font-size: 26px; margin: 48px 0 12px; }
.doc p { margin: 0 0 1em; }
.doc a { text-underline-offset: 3px; }
.doc .doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  font-family: var(--sans);
  font-size: 14px;
}
.doc .doc-nav a {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.doc .doc-nav a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.contact-card {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px;
  margin: 32px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.contact-card img { height: 90px; width: auto; flex: none; }
.contact-card p { margin: 0 0 14px; }
@media (max-width: 560px) { .contact-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.fade-in { animation: fadeIn 0.35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fade-in, .skeleton .bar, .skeleton .cover-wrap { animation: none; }
  .story-card .cover { transition: none; }
}
