/* Sample89 website
   Type: Barlow (body) and Barlow Semi Condensed (headings), self-hosted, SIL OFL.
   Colors: cool panel grey paper, black panels like the app icon, the Beacon 89 blue for
   links and focus, the icon's orange only inside the black artwork. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #ECEEF1;
  --paper-raised: #F7F8FA;
  --ink: #16191D;
  --ink-soft: #545C68;
  --rule: #C8CED6;
  --link: #0E66A6;
  --focus: #1A7BC0;
  --panel: #000000;
  --panel-ink: #E6E9ED;
  --panel-soft: #8E96A2;
  --orange: #F07A24;

  --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* scale: 1.333 from an 18px body */
  --s-0: 0.875rem;   /* 14 */
  --s-1: 1.125rem;   /* 18 */
  --s-2: 1.5rem;     /* 24 */
  --s-3: 2rem;       /* 32 */
  --s-4: 2.666rem;   /* 42.7 */
  --s-5: clamp(3.2rem, 8vw, 5.6rem);

  --measure: 34em;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121519;
    --paper-raised: #1A1E23;
    --ink: #E6E9ED;
    --ink-soft: #9CA4AF;
    --rule: #2B3139;
    --link: #5CB0EC;
    --focus: #5CB0EC;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--s-1);
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: var(--s-4); }
h3 { font-size: var(--s-2); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── header ─────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.375rem; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-weight: 500; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* ── buttons ────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--text);
  padding: 14px 20px; border-radius: 10px;
  text-decoration: none; border: 1.5px solid var(--ink);
  color: var(--ink); background: transparent;
}
.button:hover { background: var(--paper-raised); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--ink); opacity: 0.88; }
/* Placeholder until the App Store link exists. Remove aria-disabled and give it an href. */
.button[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.button svg { width: 18px; height: 18px; }

/* ── home: hero ─────────────────────────────────────────── */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-icon { width: 88px; height: 88px; margin-bottom: 22px; }
.hero h1 { font-size: var(--s-5); line-height: 0.95; letter-spacing: -0.02em; }
.hero .tagline { font-family: var(--display); font-weight: 600; font-size: var(--s-2); color: var(--ink-soft); margin: 10px 0 26px; line-height: 1.2; max-width: none; }
.hero .intro { font-size: 1.1875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.fine { font-size: var(--s-0); color: var(--ink-soft); }
.slots-art { width: 100%; border-radius: 22px; }
@media (prefers-color-scheme: dark) { .slots-art { box-shadow: 0 0 0 1px var(--rule); } }

/* ── home: sections ─────────────────────────────────────── */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--rule); }
.section > .wrap > h2 { margin-bottom: clamp(24px, 4vw, 40px); }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); }
.shot figcaption { margin-top: 12px; font-size: var(--s-0); color: var(--ink-soft); max-width: var(--measure); }
.step .shot.shot-narrow { max-width: 460px; }
.step .shot.shot-medium { max-width: 600px; }
/* Placeholder look, used until a figure has an image in it */
.shot:not(:has(img)) {
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; border-radius: 18px;
  background: var(--paper-raised); border: 1.5px dashed var(--rule); color: var(--ink-soft); font-size: var(--s-0);
}

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 80px); margin: 0; }
.feature { padding: 26px 0; border-top: 1px solid var(--rule); }
.feature dt { font-family: var(--display); font-weight: 600; font-size: var(--s-2); line-height: 1.2; margin-bottom: 8px; }
.feature dd { margin: 0; color: var(--ink-soft); max-width: var(--measure); }

.needs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.needs ul { margin: 0; padding: 0; list-style: none; }
.needs li { padding: 16px 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.needs li:last-child { border-bottom: 1px solid var(--rule); }
.needs li strong { display: block; font-weight: 600; }
.needs li span { color: var(--ink-soft); }

.maker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; }
.maker .mark { width: clamp(96px, 14vw, 150px); }
.maker .wordmark { height: 30px; width: auto; margin-bottom: 14px; }

/* ── documentation pages ───────────────────────────────── */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.page-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.1875rem; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); padding-bottom: 96px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: 1rem; }
.toc h2 { font-size: var(--s-0); font-family: var(--text); font-weight: 600; color: var(--ink-soft); margin: 0 0 8px; letter-spacing: 0; }
.toc ol, .toc ul { margin: 0 0 24px; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: flex; gap: 10px; padding: 5px 0; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); }
.toc .n { font-family: var(--display); font-weight: 600; color: var(--ink-soft); min-width: 1.2em; font-variant-numeric: tabular-nums; }

.step { padding: 0 0 56px; scroll-margin-top: 24px; }
.step + .step { padding-top: 40px; border-top: 1px solid var(--rule); }
.step h2 { font-size: var(--s-3); display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.step h2 .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.step h3 { margin: 28px 0 10px; font-size: 1.25rem; }
.step ol, .step ul { padding-left: 1.3em; margin: 0 0 1em; max-width: var(--measure); }
.step li { margin-bottom: 0.4em; }
.step .shot { margin: 24px 0 0; max-width: 760px; }

kbd {
  font-family: var(--text); font-weight: 600; font-size: 0.85em;
  padding: 1px 6px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; background: var(--paper-raised);
}

.note { border-left: 3px solid var(--focus); padding: 4px 0 4px 16px; margin: 1em 0; max-width: var(--measure); }
.draft { color: var(--ink-soft); font-style: italic; }

/* FAQ */
.faq-group { padding-bottom: 40px; scroll-margin-top: 24px; }
.faq-group > h2 { font-size: var(--s-3); margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p, .faq .answer ul { max-width: var(--measure); }

/* plain prose pages (privacy) */
.prose { max-width: 42rem; padding-bottom: 96px; }
.prose h2 { font-size: var(--s-2); margin: 36px 0 12px; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: var(--s-0); color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 32px; align-items: start; }
.site-footer .from { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-footer .from img:first-child { width: 40px; }
.site-footer .from img:last-child { height: 15px; width: auto; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-soft); }
.site-footer p { margin: 0; max-width: 46em; }

/* ── small screens ──────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap, .needs, .doc { grid-template-columns: 1fr; }
  .hero .art { max-width: 520px; }
  .features { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-nav .nav-download { display: none; }
  .maker { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
