/* Cassetteur — one stylesheet for the whole site.
   Palette: card stock and ink by day, espresso and amber by night (the app's own colours).
   Type: the system's own face. No fonts, no scripts, no requests beyond this site. */

:root {
  color-scheme: light dark;

  --bg: #f8f2e7;        /* paper */
  --surface: #efe4cf;   /* card stock: the tape labels, the panels */
  --text: #24160e;      /* espresso ink */
  --muted: #64503f;
  --accent: #a2410f;    /* links: rust, AA on paper and on card stock */
  --rule: #dfcfb3;
  --mark: #d1561a;      /* ember: large type and marks only (3:1, not body text) */
  --stripe: #a2410f;
  --icon-shadow: drop-shadow(0 10px 18px rgba(36, 22, 14, 0.22));
  --icon-shadow-small: drop-shadow(0 1px 2px rgba(36, 22, 14, 0.3));

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 16px;
  --measure: 38rem;     /* a line of reading text: about 70 characters */
  --doc: 42rem;         /* the privacy and support pages */
  --wide: 66rem;        /* the home page's two tape labels side by side */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #170e09;
    --surface: #22150e;
    --text: #efe4cf;
    --muted: #b9a894;
    --accent: #ffcf7a;  /* filament */
    --rule: #3a2a1f;
    --mark: #ff9d2e;    /* amber */
    --stripe: #d1561a;
    --icon-shadow: drop-shadow(0 6px 22px rgba(255, 157, 46, 0.16));
    --icon-shadow-small: drop-shadow(0 0 1px rgba(239, 228, 207, 0.35));
  }
}

@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1000px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.5rem; }
strong, b { font-weight: 650; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

code {
  font: 0.88em var(--mono);
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 4px;
  overflow-wrap: anywhere;
}

kbd {
  font: 0.86em var(--mono);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header and footer, shared by every page ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; filter: var(--icon-shadow-small); }

.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 550; padding: 6px 0; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-footer { margin-top: 72px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  padding-top: 20px;
  padding-bottom: 40px;
  /* the rule spans the content, not the gutters */
  background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--muted);
  font-size: 0.94rem;
}
.site-footer .copyright { margin: 0 0 0 auto; }

/* ---------- The home page ---------- */

.hero { padding-top: 24px; }

.lockup {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.5vw, 26px);
  margin-bottom: 18px;
}
.lockup img {
  width: clamp(76px, 21vw, 136px);
  height: auto;
  flex: none;
  filter: var(--icon-shadow);
}
.lockup h1 {
  margin: 0;
  font-size: clamp(2.6rem, 12.4vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.tagline {
  max-width: var(--measure);
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.intro { max-width: var(--measure); color: var(--text); }
.intro + .intro { color: var(--muted); }

.platforms {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.platforms li {
  margin: 0;
  padding: 9px 16px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.97rem;
}
.platforms strong { margin-right: 6px; }
.platforms .soon { border-color: var(--mark); }

/* The two sides of the tape: what it does, what it won't do. */

.sides {
  margin-top: 56px;
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 860px) {
  .sides { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.side {
  background: var(--surface);
  border-radius: 18px 18px 8px 8px;
  padding-bottom: 6px;
}

.side-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 4px solid var(--mark);
  margin-bottom: 6px;
}
/* the label's second, thinner stripe */
.side-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--stripe);
}

.side-letter {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--mark);
}

.side-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.tracks { list-style: none; margin: 0; padding: 0 20px; }
.tracks li {
  margin: 0;
  padding: 15px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.tracks li:last-child { border-bottom: 0; }
.tracks strong { font-weight: 700; }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 20px 20px;
  padding: 8px 16px 9px 12px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.005em;
  transform: rotate(-1.5deg);
}
.stamp svg { width: 24px; height: 24px; flex: none; }
.stamp-note {
  margin: 0 20px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* The name */

.name { margin-top: 64px; }
.name h2 { font-size: clamp(1.4rem, 4.6vw, 1.75rem); letter-spacing: -0.015em; margin: 0 0 22px; }
.name dl { max-width: 46rem; margin-bottom: 18px; }
.name dt {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.name dd { margin: 4px 0 20px; color: var(--muted); max-width: var(--measure); }
.name .all-three { max-width: var(--measure); font-weight: 600; }
@media (min-width: 760px) {
  .name dl {
    display: grid;
    grid-template-columns: 12rem 1fr;
    column-gap: 24px;
    align-items: baseline;
  }
  .name dd { margin: 0 0 18px; }
}

/* ---------- The privacy and support pages ---------- */

/* header and footer line up with the reading column */
.doc-page .wrap { max-width: calc(var(--doc) + 2 * var(--gutter)); }

.doc {
  width: 100%;
  max-width: calc(var(--doc) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 12px;
}

.doc h1 {
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 8px 0 8px;
}
.doc .lede { color: var(--muted); margin-bottom: 0; }
.doc .meta { color: var(--muted); font-size: 0.94rem; margin: 0; }

.doc h2 {
  font-size: 1.25rem;
  margin: 2.4rem 0 0.6rem;
  scroll-margin-top: 16px;
}

.panel {
  background: var(--surface);
  border-radius: 14px;
  border-left: 4px solid var(--mark);
  padding: 16px 18px 2px;
  margin: 26px 0 8px;
}

.service { margin-bottom: 14px; }
.service b { display: block; }
.path { font-weight: 600; }
.note { color: var(--muted); font-size: 0.95rem; }

/* ---------- 404 ---------- */

.lost { padding-top: 40px; }
.lost h1 {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.lost p { max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

@media print {
  .site-header, .skip { display: none; }
  body { background: #fff; color: #000; }
}
