/* Paradoodle's site: the panel's colours (Sources/UI/Design.swift) and type. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk.ttf"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Medium.ttf"); font-weight: 500; font-display: swap; }

:root {
  --page: #DDD5C8;
  --panel: #E7DFD2;
  --paper: #F3ECE0;
  --ink: #332E29;
  --muted: #857C72;
  --orange: #D27433;
  --coral: #E2684D;
  --night: #0D0C0B;
  --night-panel: #181614;
  --night-ink: #BBB09F;
  --rule: rgba(51, 46, 41, 0.18);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0D0C0B;
    --panel: #181614;
    --paper: #23201D;
    --ink: #BBB09F;
    --muted: #716960;
    --orange: #C06E38;
    --coral: #BF604A;
    --rule: rgba(187, 176, 159, 0.18);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 "Space Grotesk", system-ui, sans-serif;
}

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

a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.mono, .label, nav, .button, footer {
  font-family: "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* --- Top bar ---------------------------------------------------------- */

header.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--night-ink);
}
header.bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
header.bar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: 0; font-family: "Space Grotesk", sans-serif; }
header.bar .brand img { width: 30px; height: 30px; border-radius: 7px; }
nav { margin-left: auto; display: flex; gap: 20px; font-size: 12px; text-transform: uppercase; }
nav a { text-decoration: none; opacity: 0.85; white-space: nowrap; }
nav a:hover { opacity: 1; color: #E9A06A; }

/* --- Buttons ------------------------------------------------------------ */

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
}
.button.primary { background: var(--coral); border-color: var(--coral); color: #FBF4EA; }
.button.primary:hover { background: var(--orange); border-color: var(--orange); color: #FBF4EA; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: radial-gradient(circle at 70% 30%, rgba(210, 116, 51, 0.22), transparent 45%), var(--night);
  color: var(--night-ink);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 58px); line-height: 1.02; margin: 12px 0 18px; color: #EFE6D8; font-weight: 600; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; margin: 0 0 28px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .soon { font-size: 12px; text-transform: uppercase; opacity: 0.7; }
.hero .shot { border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

/* --- Sections ------------------------------------------------------------ */

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 8px 0 20px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-top: 28px; }
.step { background: var(--panel); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--page);
  font: 500 14px "DM Mono", monospace; margin-bottom: 14px;
}

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.way { border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.way .label { display: block; margin-bottom: 8px; color: var(--orange); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature img { border-radius: 16px; box-shadow: 0 18px 50px rgba(51, 46, 41, 0.22); }
.feature ul { padding-left: 1.1em; margin: 0; }
.feature li { margin: 6px 0; }
.feature + .feature { margin-top: 72px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { border: 1.5px solid var(--rule); border-radius: 999px; padding: 6px 14px; font: 500 13px "DM Mono", monospace; }

.beta { background: var(--panel); border-radius: 28px; padding: 48px; text-align: center; }
.beta p { max-width: 36em; margin: 0 auto 24px; }

/* --- Text pages ---------------------------------------------------------- */

.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 24px; font-weight: 600; }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.page th { font: 500 12px "DM Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.page .note { background: var(--panel); border-left: 4px solid var(--coral); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 24px; }
.press-grid a { display: block; text-decoration: none; font: 500 12px "DM Mono", monospace; }
.press-grid img { border-radius: 10px; margin-bottom: 6px; }
.press-icon { display: inline-flex; align-items: center; gap: 14px; margin: 8px 0 4px; text-decoration: none; font: 500 12px "DM Mono", monospace; }
.press-icon img { width: 64px; height: 64px; border-radius: 14px; }

/* --- Footer ------------------------------------------------------------- */

footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 12px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { margin-left: auto; gap: 18px; }
footer a { text-decoration: none; }

/* --- Narrow screens ------------------------------------------------------ */

@media (max-width: 820px) {
  .hero { padding: 48px 0; }
  .hero .wrap, .feature, .steps, .ways, .press-grid { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
  .feature { gap: 24px; }
  header.bar nav { gap: 14px; font-size: 11px; }
  header.bar .hide-narrow { display: none; }
  header.bar nav a[href$="#how"] { display: none; }
  .beta { padding: 32px 20px; }
  section { padding: 52px 0; }
  footer nav { margin-left: 0; }
}

/* --- The manual (manual/index.html, made by tools/build-manual.sh) ------- */

.manual { max-width: 860px; }
.manual [id] { scroll-margin-top: 76px; }
.manual .cover { margin-bottom: 48px; }
.manual .cover h1 { margin-bottom: 6px; }
.manual .subtitle { font: 500 14px "DM Mono", monospace; letter-spacing: 0.3em; text-transform: uppercase; color: var(--coral); margin: 0 0 6px; }
.manual .edition { font: 400 13px "DM Mono", monospace; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 20px; }
.manual .cover .button { margin-bottom: 16px; }
.manual h2 { font-size: 30px; margin: 72px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.manual h3 { margin: 40px 0 10px; }
.manual h4 { font: 500 12px "DM Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 8px; }
.manual hr { display: none; }
.manual .clip { margin: 4px 0 22px; }
.clip video { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--panel); box-shadow: 0 10px 30px rgba(51, 46, 41, 0.18); }
.manual li { margin: 4px 0; }
.manual code { font: 400 0.88em "DM Mono", monospace; background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.manual blockquote { background: var(--panel); border-left: 4px solid var(--coral); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 20px 0; }
.manual blockquote p { margin: 0; }
.manual p > img { margin: 20px auto 8px; border-radius: 12px; border: 1px solid var(--rule); }
.manual p > img[src$=".svg"] { background: #FBF8F3; padding: 12px; }
.manual p > em:only-child, .manual p.pair + p > em { display: block; text-align: center; font-size: 14px; color: var(--muted); }
.manual p.pair { display: flex; gap: 4%; justify-content: center; }
.manual p.pair img { margin: 20px 0 8px; max-width: 300px; }
.manual .scroll { overflow-x: auto; margin: 12px 0 24px; }
.manual .scroll table { margin: 0; }
.manual h2#contents { margin-top: 0; }
.manual h2#contents + ol { columns: 2; column-gap: 40px; }
.manual h2#contents + ol > li { break-inside: avoid; margin-bottom: 14px; font-weight: 600; }
.manual h2#contents + ol > li:last-child { list-style: none; }
.manual h2#contents + ol ul { list-style: none; padding: 0; margin: 4px 0 0; font-size: 15px; font-weight: 400; }
.manual h2#contents + ol a { text-decoration: none; }

@media (max-width: 820px) {
  .manual h2#contents + ol { columns: 1; }
  .manual .scroll table { min-width: 560px; }
}
