/* Knotty's Paper (light) and Midnight (dark) themes, as in the app. */
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap; src: url(assets/fonts/Fraunces-Bold.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/DMSans-Regular.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(assets/fonts/DMSans-Medium.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/DMSans-Bold.ttf) format("truetype"); }

:root {
  --bg: #f6f1e7;
  --surface: #ffffff;
  --surface-alt: #efe7d8;
  --line: #e3dbcb;
  --ink: #1f1b16;
  --muted: #7a7163;
  --accent: #e8553d;
  --on-accent: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1c1c1c;
    --surface-alt: #262626;
    --line: #2e2e2e;
    --ink: #ededed;
    --muted: #8a8a8a;
    --accent: #c6f432;
    --on-accent: #121212;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent); }
img { display: block; max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
.bar { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 26px; letter-spacing: -0.3px; }
.bar nav { margin-left: auto; display: flex; gap: 14px; }
.bar nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.bar nav a:hover { color: var(--ink); }

h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: -0.5px; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin: 24px 0 12px; }
h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.2px; }

/* Landing page */
.hero { display: grid; gap: 24px; align-items: center; padding: 24px 0 8px; }
.hero .lede { color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); max-width: 32ch; margin: 0 0 20px; }
.hero .icon { width: clamp(96px, 16vw, 168px); height: auto; border-radius: 24%; box-shadow: 0 18px 40px rgb(0 0 0 / 0.12); }
.soon {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr auto; padding: 48px 0 24px; }
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 240px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 16px 28px;
  margin: 0 -16px;
  scrollbar-width: thin;
}
.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  border: 1px solid var(--line);
  scroll-snap-align: center;
}

.features { display: grid; gap: 14px; margin: 8px 0 40px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}
.feature h3 { margin: 0 0 4px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

/* Policy pages */
.updated { color: var(--muted); margin: 0 0 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px;
  margin: 16px 0;
}
ol, ul { padding-left: 22px; }
li { margin: 4px 0; }

footer {
  color: var(--muted);
  font-size: 14px;
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
}
footer a { color: inherit; }
