/* Bygone website. One stylesheet, system fonts, no scripts. Colours are the app's own (narrator-app/src/style.css). */
:root {
  color-scheme: light dark;
  --bg: #f6f3ec;
  --card: #ffffff;
  --card2: #efeadf;
  --line: #ddd5c4;
  --fg: #1b2029;
  --mut: #566072;
  --acc: #f2a93b; /* the app's amber: fills and buttons */
  --acc-ink: #8a4f00; /* amber dark enough to read as text on a light page */
  --on-acc: #1d1404;
  --r: 14px;
  --wide: 68rem;
  --text: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --card: #171c24;
    --card2: #1f2631;
    --line: #2a3340;
    --fg: #e8ecf2;
    --mut: #9aa5b6;
    --acc-ink: #f2a93b;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--acc-ink);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--acc);
  color: var(--on-acc);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip:focus {
  left: 0;
  z-index: 10;
}
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- header and footer ---- */
.top {
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 12px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--acc-ink);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.top nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.top nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 6px 0;
  display: inline-block;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--acc-ink);
  text-decoration: underline;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 28px 0 40px;
  color: var(--mut);
  font-size: 0.92rem;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
footer p {
  margin: 0 0 6px;
}

/* ---- home ---- */
.hero {
  padding: 48px 0 24px;
}
.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
.kicker {
  color: var(--acc-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lede {
  font-size: 1.2rem;
  color: var(--mut);
  max-width: 34rem;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 11.5rem;
  min-height: 56px;
  padding: 8px 18px;
  border-radius: var(--r);
  background: var(--acc);
  color: var(--on-acc);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}
.store small {
  font-weight: 500;
  font-size: 0.78rem;
}
.store.soon {
  background: var(--card2);
  color: var(--fg);
  border: 1px dashed var(--mut);
}
.note {
  color: var(--mut);
  font-size: 0.92rem;
}
.phone {
  margin: 0 auto;
  width: min(100%, 290px);
  border-radius: 34px;
  border: 8px solid #05070a;
  background: #05070a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.phone img {
  width: 100%;
  border-radius: 26px;
}
section {
  padding: 40px 0;
}
section.band {
  background: var(--card2);
}
.intro {
  max-width: var(--text);
}
.how {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  counter-reset: how;
}
.how li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  counter-increment: how;
}
.how li::before {
  content: counter(how);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--on-acc);
  font-weight: 700;
  margin-bottom: 10px;
}
.how li p,
.card p:last-child,
.feature p:last-child {
  margin-bottom: 0;
}
.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type {
  border-top: 0;
}
.feature .phone {
  width: min(100%, 250px);
}
.feature ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.feature li {
  margin: 0.3em 0;
}
.cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
}
.card h3 {
  margin-bottom: 4px;
}
.card .who {
  color: var(--mut);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.card q {
  font-style: italic;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  font-size: 0.97rem;
}
caption {
  text-align: left;
  color: var(--mut);
  font-size: 0.92rem;
  padding: 0 0 8px;
  caption-side: top;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}
thead th {
  border-top: 0;
  background: var(--card2);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scroll {
  overflow-x: auto;
}
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--acc);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 20px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}

/* ---- text pages (privacy, terms, support) ---- */
.doc {
  max-width: var(--text);
  margin: 0 auto;
  padding: 40px 20px 0;
}
.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}
.doc h2 {
  font-size: 1.4rem;
  margin-top: 1.9em;
}
.doc h3 {
  margin-top: 1.4em;
}
.doc ul,
.doc ol {
  padding-left: 1.25em;
}
.doc li {
  margin: 0.35em 0;
}
.doc .meta {
  color: var(--mut);
}
.doc dt {
  font-weight: 700;
  margin-top: 1.1em;
}
.doc dd {
  margin: 0.25em 0 0;
}

@media (max-width: 560px) {
  .top nav {
    width: 100%;
  }
  th,
  td {
    padding: 9px 10px;
  }
  table {
    font-size: 0.9rem;
  }
}
@media (min-width: 760px) {
  .hero {
    padding: 72px 0 40px;
  }
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .how {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature {
    grid-template-columns: 250px 1fr;
    gap: 44px;
  }
  .feature.flip {
    grid-template-columns: 1fr 250px;
  }
  .feature.flip .phone {
    order: 2;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1000px) {
  .cards.five {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media print {
  .top nav,
  .stores,
  .phone {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* Recordings: the browser's own player, full width of its card. Nothing loads until someone presses play. */
audio {
  display: block;
  width: 100%;
  margin: 12px 0 4px;
}
.card.story .told {
  color: var(--mut);
  font-size: 0.95rem;
  margin: 0;
}
.card.story details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.card.story summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--acc-ink);
}
.card.story .script p {
  margin: 10px 0;
}
.card.story .sources {
  padding-left: 1.3rem;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.cards.two {
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .cards.two {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
p.note {
  margin-top: 18px;
  color: var(--mut);
}
a.hear {
  display: inline-block;
  background: var(--acc);
  color: var(--on-acc);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  margin: 4px 0 6px;
}
a.hear:hover,
a.hear:focus-visible {
  filter: brightness(1.06);
  text-decoration: underline;
}

/* The personal parts of the home page: one readable column, a little larger, like a letter. */
.prose {
  max-width: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
}
.prose p {
  margin: 0 0 1.15em;
}
.prose h2 {
  margin-bottom: 0.7em;
}
.prose .last {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--acc-ink);
  margin-top: 1.4em;
}
a.why {
  display: inline-block;
  margin-left: 14px;
  font-weight: 600;
  color: var(--acc-ink);
}
/* Ryan's own signature, drawn by him (2026-11-18). Two files in the page's ink colours, one for each theme, on a clear background.
   The handwriting face stays for the alt text, which is what shows if the picture cannot load.
   The page gives the picture its shown size (200 by 72) as well, so it is the right size even to a reader whose browser still holds an older copy of this file. */
.prose .sig {
  font-family: "Snell Roundhand", "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0.5em 0 0;
  color: var(--fg);
}
.prose .sig img {
  display: block;
  width: 12.5rem;
  max-width: 62%;
  height: auto;
  margin-left: -0.2rem; /* the drawing has a little clear space round it; this lines the first stroke up with the text */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
