/* PaperPauper site. Tokens follow the app's DESIGN.md; the dark palette is site-only. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-opsz-normal.woff2') format('woff2-variations'), url('fonts/dm-sans-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-ext-opsz-normal.woff2') format('woff2-variations'), url('fonts/dm-sans-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f7f7f2;
  --sheet: #fcfbf8;
  --ink: #30352e;
  --caption: #5f6a55;
  --line: #e3e6dc;
  --dot: #d9ddd0;
  --primary: #526b3d;
  --primary-hover: #435c30;
  --on-primary: #ffffff;
  --primary-soft: #e9efdf;
  --primary-soft-ink: #3f5530;
  --clay: #c38f66;
  --focus: #526b3d;
  --shadow: 0 10px 36px rgba(48, 53, 46, .10), 0 1px 2px rgba(48, 53, 46, .06);
  --radius-control: 8px;
  --radius-sheet: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c201a;
    --sheet: #232820;
    --ink: #e8ebdf;
    --caption: #aab39f;
    --line: #353b31;
    --dot: #31372d;
    --primary: #a9c28e;
    --primary-hover: #bdd3a3;
    --on-primary: #1c201a;
    --primary-soft: #2e3a26;
    --primary-soft-ink: #cfe0bb;
    --clay: #d4a17a;
    --focus: #a9c28e;
    --shadow: 0 10px 36px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c201a;
  --sheet: #232820;
  --ink: #e8ebdf;
  --caption: #aab39f;
  --line: #353b31;
  --dot: #31372d;
  --primary: #a9c28e;
  --primary-hover: #bdd3a3;
  --on-primary: #1c201a;
  --primary-soft: #2e3a26;
  --primary-soft-ink: #cfe0bb;
  --clay: #d4a17a;
  --focus: #a9c28e;
  --shadow: 0 10px 36px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--sheet); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-control);
  box-shadow: var(--shadow); text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { border-radius: 8px; flex: none; }
.brand-name { font-weight: 620; letter-spacing: -0.02em; font-size: 1.0625rem; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .01em; line-height: 1;
  padding: 5px 8px 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-ink);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  border-radius: 10px; background: var(--primary); color: var(--on-primary); text-decoration: none;
  font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s ease;
}
.button:hover { background: var(--primary-hover); }
.button-small { min-height: 40px; padding: 9px 15px; font-size: .9375rem; border-radius: var(--radius-control); }
.text-link { color: var(--primary); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; padding: 12px 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Dotted paper, as in the app's Dotted paper setting */
.paper-dots { background-image: radial-gradient(circle at 1px 1px, var(--dot) 1.1px, transparent 1.5px); background-size: 22px 22px; background-position: -1px -1px; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.25rem); letter-spacing: -0.04em; line-height: 1.02; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink); margin: 24px 0 28px; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.fine { margin-top: 16px; font-size: .9375rem; color: var(--caption); }

/* Screenshots: a sheet of paper laid on the page */
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: var(--radius-sheet); background: #fcfbf8;
  box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: -1px;
}
.shot figcaption { margin-top: 10px; font-size: .875rem; color: var(--caption); }
.shot-hero { margin-top: clamp(36px, 6vw, 64px); }
.shot-hero img { border-radius: 18px; }

/* Feature spreads */
.spread { padding: clamp(56px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.spread-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.spread-flip .spread-copy { order: 2; }
.spread-flip .shot { order: 1; }
.spread h2, .device h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); margin-bottom: 20px; }
.spread-copy p { color: var(--ink); }

.spread-wide .spread-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.spread-wide .spread-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.spread-wide .spread-copy > h2 { grid-column: 1; grid-row: 1 / span 6; }
.spread-wide .spread-copy > :not(h2) { grid-column: 2; }
.spread-wide .spread-copy > p:first-of-type { margin-top: .35em; }
.spread-text .spread-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.tool-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tool-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tool-list dt { font-weight: 500; }
.tool-list dd { margin: 0; white-space: nowrap; }
kbd {
  display: inline-block; min-width: 2em; text-align: center; font: inherit; font-size: .8125rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; background: var(--sheet); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line);
}

.brush-names { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brush-names li { padding: 6px 12px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: .9375rem; }

.facts { margin: 4px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--primary); }

/* Device section */
.device { padding: clamp(56px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.device-list { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.device-list > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.device-list dt { font-weight: 620; font-size: 1.125rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.device-list dd { margin: 0; color: var(--caption); }

/* Beta */
.beta { padding: 0 0 clamp(56px, 9vw, 112px); }
.beta-inner { display: block; max-width: 860px; }
.beta-note, .beta-cta { background: var(--sheet); }
.beta-note {
  border: 1px solid var(--line); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; border-bottom: 0;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) 8px;
}
.beta-note h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.badge-large { font-size: .875rem; padding: 6px 10px 7px; letter-spacing: 0; }
.beta-cta { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sheet) var(--radius-sheet); padding: 16px clamp(20px, 4vw, 44px) clamp(24px, 4vw, 44px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.brand-quiet { font-weight: 600; letter-spacing: -0.015em; }
.footer-note { color: var(--caption); font-size: .9375rem; }

@media (max-width: 980px) {
  .device-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .spread-grid, .spread-wide .spread-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.spread-wide .spread-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.spread-wide .spread-copy > h2 { grid-column: 1; grid-row: 1 / span 6; }
.spread-wide .spread-copy > :not(h2) { grid-column: 2; }
.spread-wide .spread-copy > p:first-of-type { margin-top: .35em; }
.spread-text .spread-grid { grid-template-columns: minmax(0, 1fr); }
  .spread-flip .spread-copy, .spread-flip .shot { order: 0; }
  .spread-wide .spread-copy { display: block; }
}
@media (max-width: 560px) {
  .device-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .header-row { min-height: 58px; }
  .brand-name { font-size: 1rem; }
  .brand img { width: 28px; height: 28px; }
  .button-small { padding: 8px 12px; font-size: .875rem; }
  .shot img, .shot-hero img { border-radius: 12px; }
}
@media (max-width: 440px) {
  .button-small .long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
