  @font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.ttf") format("truetype"); }
  @font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); }
  @font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("fonts/Literata-Regular.ttf") format("truetype"); }
  @font-face { font-family: "Literata"; font-weight: 700; font-display: swap; src: url("fonts/Literata-Bold.ttf") format("truetype"); }
  @font-face { font-family: "Literata"; font-style: italic; font-display: swap; src: url("fonts/Literata-Italic.ttf") format("truetype"); }

  /* The colours of StorySled's own Dark theme. */
  :root {
    --desk: #0e151c;
    --bar: #141c25;
    --page: #18212b;
    --surface: #1d2834;
    --line: #2b3947;
    --line-strong: #3d4e5f;
    --ink: #e4e9ee;
    --ink-soft: #b7c3ce;
    --muted: #8395a5;
    --accent: #ee8623;
    --accent-soft: rgba(238, 134, 35, 0.14);
    --link: #8fc0f0;
    --radius: 12px;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--desk); color: var(--ink); font: 400 17px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  html, body { overflow-x: clip; }
  a { color: var(--link); }
  img, video { display: block; max-width: 100%; height: auto; }
  .wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

  /* Top bar */
  .top { position: sticky; top: 0; z-index: 10; background: rgba(20, 28, 37, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
  .wordmark { position: relative; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: #eef2f6; text-decoration: none; }
  .wordmark::after { content: ""; position: absolute; left: 0; right: 38%; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent); }
  .top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
  .top nav a { color: var(--ink-soft); text-decoration: none; }
  .top nav a:hover { color: var(--ink); }
  .button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
  .button:hover { border-color: var(--muted); }
  .button.primary { background: var(--accent); border-color: var(--accent); color: #1a1006; }
  .button.primary:hover { background: #f59a42; }
  .top .button { padding: 7px 14px; font-size: 14px; }

  /* Hero */
  .hero { padding: 72px 0 40px; text-align: center; }
  .badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: #f7b26c; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
  h1 { font-family: "Literata", Georgia, serif; font-weight: 700; font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -0.015em; margin: 20px auto 18px; max-width: 15ch; }
  h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
  .lede { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); font-size: clamp(17px, 2.2vw, 20px); }
  .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
  .fine { margin-top: 14px; color: var(--muted); font-size: 14px; }
  .frame { margin-top: 52px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02); background: var(--bar); }
  .frame img, .frame video { width: 100%; height: auto; }

  /* Sections */
  section { padding: 72px 0; }
  .kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
  h2 { font-family: "Literata", Georgia, serif; font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 8px 0 14px; letter-spacing: -0.01em; }
  .intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 36px; }

  /* Features */
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
  .features li { padding: 24px; border-radius: var(--radius); background: var(--page); border: 1px solid var(--line); }
  .features h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
  .features h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
  .features p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

  /* Tour video */
  .tour { background: linear-gradient(180deg, var(--desk), var(--bar) 30%, var(--bar) 70%, var(--desk)); }
  .chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .chapters button { font: inherit; font-size: 14px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
  .chapters button:hover { color: var(--ink); border-color: var(--line-strong); }

  /* Screens */
  .screens { display: grid; gap: 40px; }
  .screen { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; }
  .screen:nth-child(even) { grid-template-columns: 1.6fr 1fr; }
  .screen:nth-child(even) .words { order: 2; }
  .screen h3 { font-family: "Literata", Georgia, serif; font-size: 24px; margin: 0 0 10px; }
  .screen p { margin: 0; color: var(--ink-soft); }
  .screen figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
  .screen figure a { display: block; }

  /* Closing */
  .closing { text-align: center; }
  .closing .intro { margin-inline: auto; }
  footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
  footer a { color: var(--ink-soft); text-decoration: none; }
  footer a:hover { color: var(--ink); }
  .top nav a[aria-current="page"] { color: var(--ink); }
  .more-link { margin-top: 28px; }

  /* Advanced features: the two helpers, with and without AI */
  .helper { padding: 32px; border-radius: var(--radius); background: var(--page); border: 1px solid var(--line); }
  .helper + .helper { margin-top: 24px; }
  .helper > h3 { font-family: "Literata", Georgia, serif; font-size: clamp(24px, 3vw, 30px); margin: 0 0 8px; }
  .helper > p { color: var(--ink-soft); margin: 0 0 24px; max-width: 70ch; }
  .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .mode { padding: 22px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
  .mode.ai { border-style: dashed; border-color: var(--line-strong); }
  .mode h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
  .mode .note { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
  .tag { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
  .tag.local { background: rgba(120, 200, 150, 0.13); color: #8fd6a8; }
  .tag.ai { background: var(--accent-soft); color: #f7b26c; }
  .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; color: var(--ink-soft); }
  .ticks li { position: relative; padding-left: 20px; }
  .ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
  .mode.local .ticks li::before { background: #6cbf8b; }
  .mode.ai .ticks li::before { background: var(--accent); }
  .ticks strong { color: var(--ink); font-weight: 600; }

  /* AI is optional */
  .promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .promise div { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bar); }
  .promise h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
  .promise p { margin: 0; color: var(--ink-soft); font-size: 15px; }
  .callout { margin: 0 0 36px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid rgba(238, 134, 35, 0.4); background: var(--accent-soft); font-size: clamp(17px, 2vw, 19px); }
  .callout strong { color: #f7b26c; }

  /* Feature groups */
  .group + .group { margin-top: 48px; }
  .group h3.group-title { font-family: "Literata", Georgia, serif; font-size: 24px; margin: 0 0 16px; }

  /* Roadmap */
  .trail { position: relative; display: grid; gap: 22px; padding-left: 40px; }
  .trail::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 16px); }
  .stop { position: relative; padding: 26px 28px; border-radius: var(--radius); background: var(--page); border: 1px solid var(--line); }
  .stop::before { content: ""; position: absolute; left: -34px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--desk); border: 2px solid var(--accent); }
  .stop.here::before { background: #6cbf8b; border-color: #6cbf8b; box-shadow: 0 0 0 6px rgba(108, 191, 139, 0.15); }
  .stop.wish { border-style: dashed; border-color: var(--line-strong); background: var(--bar); }
  .stop.wish::before { border-color: var(--muted); border-style: dashed; }
  .stop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
  .stop-head .num { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .stop h3 { font-family: "Literata", Georgia, serif; font-size: 24px; margin: 2px 0 0; }
  .status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: var(--accent-soft); color: #f7b26c; }
  .status.live { background: rgba(120, 200, 150, 0.13); color: #8fd6a8; }
  .status.wish { background: var(--surface); color: var(--ink-soft); }
  .legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 36px; color: var(--ink-soft); font-size: 15px; }
  .legend span { display: inline-flex; align-items: center; gap: 8px; }

  @media (max-width: 820px) {
    /* On a narrow screen the links take a second row, which scrolls sideways if it must. */
    .top .wrap { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; }
    .top nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .top nav::-webkit-scrollbar { display: none; }
    .top nav a { white-space: nowrap; }
    .top nav .button { position: absolute; top: 10px; right: 16px; }
    .hero { padding-top: 48px; }
    .screen, .screen:nth-child(even) { grid-template-columns: 1fr; gap: 16px; }
    .screen:nth-child(even) .words { order: 0; }
    section { padding: 52px 0; }
    .modes { grid-template-columns: 1fr; }
    .helper { padding: 22px; }
    .trail { padding-left: 30px; }
    .trail::before { left: 8px; }
    .stop { padding: 22px; }
    .stop::before { left: -29px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
