/* Fonts are served from this site (latin subset, SIL OFL, licences in /fonts). */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/anton-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #ecebe6;
  --bg-2: #e2e0d9;
  --paper: #fbfaf6;
  --ink: #121212;
  --ink-2: #4a4a47;
  --ink-3: #7a7a75;
  --line: #d3d0c7;
  --caution: #ffd400;
  --caution-ink: #121212;
  --tape: rgba(198, 196, 186, 0.82);
  --tape-edge: rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 0 rgba(0,0,0,0.04), 0 10px 30px -12px rgba(0,0,0,0.25);
  --noise-opacity: 0.35;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151515;
    --bg-2: #1c1c1b;
    --paper: #1f1f1e;
    --ink: #f2f0e8;
    --ink-2: #b9b6ad;
    --ink-3: #8a877f;
    --line: #2f2e2b;
    --tape: rgba(120, 118, 110, 0.55);
    --tape-edge: rgba(255, 255, 255, 0.05);
    --shadow: 0 1px 0 rgba(255,255,255,0.03), 0 14px 34px -14px rgba(0,0,0,0.8);
    --noise-opacity: 0.18;
  }
}
:root[data-theme="dark"] {
  --bg: #151515;
  --bg-2: #1c1c1b;
  --paper: #1f1f1e;
  --ink: #f2f0e8;
  --ink-2: #b9b6ad;
  --ink-3: #8a877f;
  --line: #2f2e2b;
  --tape: rgba(120, 118, 110, 0.55);
  --tape-edge: rgba(255, 255, 255, 0.05);
  --shadow: 0 1px 0 rgba(255,255,255,0.03), 0 14px 34px -14px rgba(0,0,0,0.8);
  --noise-opacity: 0.18;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Concrete grain, drawn once as an SVG noise texture. */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.display {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Tape ---------- */
.tape {
  position: absolute;
  width: 92px; height: 26px;
  background: var(--tape);
  box-shadow: inset 0 0 0 1px var(--tape-edge);
  /* Torn ends */
  clip-path: polygon(2% 8%, 6% 0, 12% 10%, 18% 2%, 24% 9%, 76% 4%, 82% 12%, 88% 2%, 94% 10%, 100% 4%, 98% 92%, 93% 100%, 87% 90%, 81% 99%, 75% 91%, 25% 96%, 19% 88%, 13% 98%, 7% 89%, 0 97%);
  backdrop-filter: blur(1px);
}

/* ---------- Header ---------- */
header { padding: 22px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 26px;
}
.wordmark .tape { width: 40px; height: 14px; right: -16px; top: -8px; transform: rotate(18deg); }
.wordmark b {
  background: var(--caution); color: var(--caution-ink);
  padding: 2px 7px 0; transform: rotate(-2deg); display: inline-block;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.theme-btn {
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px;
}
@media (max-width: 680px) { .nav-links a:not(.keep) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(56px, 9vw, 112px); margin: 14px 0 22px; }
.hero h1 .hl { background: var(--caution); color: var(--caution-ink); padding: 0 10px; display: inline-block; transform: rotate(-1.5deg); }
.hero p.lede { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--caution); color: var(--caution-ink); border-color: var(--caution); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper); }

@media (max-width: 900px) { .hero { padding-top: 28px; } }
@media (max-width: 600px) { .hero { padding-bottom: 48px; } }

/* ---------- Caution tape ---------- */
.caution {
  background: var(--caution); color: var(--caution-ink);
  transform: rotate(-1.2deg); margin: 0 -20px;
  border-top: 3px solid var(--caution-ink); border-bottom: 3px solid var(--caution-ink);
  overflow: hidden; white-space: nowrap; position: relative; z-index: 2;
}
.caution .track { display: inline-block; padding: 12px 0; animation: crawl 38s linear infinite; }
.caution span { font-family: Anton, Impact, sans-serif; font-size: 22px; letter-spacing: 0.06em; padding: 0 22px; }
.caution span::after { content: "\2715"; padding-left: 44px; font-size: 16px; position: relative; top: -2px; }
@keyframes crawl { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .caution .track { animation: none; } }

/* ---------- Section heads ---------- */
section { padding: 96px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(44px, 6vw, 72px); margin: 8px 0 0; }
.section-head p { color: var(--ink-2); max-width: 380px; margin: 0; }

/* ---------- App shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 900px) { .shelf { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 44px; } }
.card {
  position: relative; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow);
  padding: 28px 24px 24px; display: flex; flex-direction: column;
}
.shelf > :nth-child(3n+1) { transform: rotate(-0.8deg); }
.shelf > :nth-child(3n+2) { transform: rotate(0.6deg); }
.shelf > :nth-child(3n) { transform: rotate(-0.4deg); }
.card .tape { top: -13px; left: 26px; transform: rotate(-6deg); }
.shelf > :nth-child(3n+2) .tape { transform: rotate(4deg); left: 40px; }
.card-top { display: flex; gap: 16px; align-items: center; }
.card-top img { width: 64px; height: 64px; flex: none; }
.card h3 { font-size: 34px; margin: 0; }
.card h3 a { text-decoration: none; }
.card .what { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
.card p { color: var(--ink-2); margin: 18px 0 18px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.chip {
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
}
.sticker {
  position: absolute; top: -14px; right: 18px; font-family: Anton, Impact, sans-serif; font-size: 15px;
  letter-spacing: 0.05em; padding: 5px 10px 4px; transform: rotate(6deg); border-radius: 4px;
}
.sticker.free { background: var(--caution); color: var(--caution-ink); }
.sticker.paid { background: var(--ink); color: var(--bg); }
.sticker.soon { background: var(--bg); color: var(--ink); border: 2px dashed var(--ink); }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { padding: 10px 14px; font-size: 14px; flex: 1; justify-content: center; }


/* ---------- Featured app (home page and the top of an app page) ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); padding: 48px; position: relative;
}
.feature > .tape { top: -13px; left: 40px; transform: rotate(-3deg); width: 120px; }
.feature > .tape.r { left: auto; right: 40px; transform: rotate(4deg); }
.feature h3, .feature h1 { font-size: 56px; margin: 10px 0 12px; }
.feature .sub { font-size: 18px; color: var(--ink-2); margin: 0 0 26px; }
.feature ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.feature li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.n {
  font-family: Anton, Impact, sans-serif; font-size: 15px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--caution); color: var(--caution-ink); display: grid; place-items: center; margin-top: 1px;
}
.feature li b { display: block; }
.feature li span { color: var(--ink-2); font-size: 15px; }
.app-id { display: flex; gap: 22px; align-items: center; margin-top: 18px; }
.app-id img { width: 84px; height: 84px; flex: none; }
.app-id h1 { margin: 0; }
.meta { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.shots { position: relative; min-height: 460px; }
.shots .window {
  position: absolute; right: 0; top: 0; width: 92%; border-radius: 8px; box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.shots .panel {
  position: absolute; left: 0; bottom: 0; width: 50%; border-radius: 14px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.55); transform: rotate(-3deg);
}
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; }
  .shots { min-height: 400px; }
}
@media (max-width: 480px) {
  .shots { min-height: 300px; }
  .feature h3, .feature h1 { font-size: 44px; }
  .app-id img { width: 64px; height: 64px; }
}

/* ---------- App page ---------- */
.app-hero { padding-top: 28px; }
.crumb { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; display: inline-block; margin-bottom: 26px; }
.crumb:hover { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { background: var(--paper); border-radius: 6px; box-shadow: var(--shadow); padding: 26px 24px; }
.tile h4 { font-size: 18px; margin: 14px 0 8px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.facts { margin: 0; border-top: 3px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
.changelog { border-top: 3px solid var(--ink); }
.release { padding: 18px 0; border-bottom: 1px solid var(--line); }
.release h4 { margin: 0; font-size: 18px; display: flex; gap: 12px; align-items: baseline; }
.release h4 small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.release ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
.faq { border-top: 3px solid var(--ink); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.sub-head { font-size: clamp(32px, 4vw, 44px); margin: 0 0 22px; }
@media (max-width: 900px) { .two-col > div + div .sub-head { margin-top: 64px; } }

/* ---------- Plain text pages (privacy, 404) ---------- */
.page { padding-top: 40px; max-width: 720px; }
.page h1 { font-size: clamp(48px, 8vw, 88px); margin: 12px 0 28px; }
.page h2 { font-size: 20px; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink-2); }

/* ---------- Footer ---------- */
footer { padding: 96px 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; border-top: 1px solid var(--line); padding-top: 28px; }
.foot .big { font-size: 54px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot small { display: block; color: var(--ink-3); margin-top: 10px; }

/* An app with no screenshots: the featured block is one column. */
.feature.no-shots { grid-template-columns: minmax(0, 1fr); }
.feature.no-shots > div { max-width: 640px; }

/* Keyboard focus: a clear ring on anything you can tab to. */
:where(a, button, summary, input):focus-visible {
  outline: 3px solid var(--caution); outline-offset: 3px; border-radius: 6px;
}
.btn:focus-visible { outline-offset: 2px; }

.release-fallback { color: var(--ink-3); padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }

/* App page: the longer intro under the tagline. */
.feature .about { color: var(--ink-2); font-size: 16px; margin: -12px 0 26px; max-width: 520px; }
