/* Zuarinware home and ComicDrive page: the docs' "Ink on Paper" (spec decision 2). No JavaScript. */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/roboto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/roboto-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/roboto-latin-700-normal.woff2') format('woff2'); }

:root {
  --page: #F0EEE6; --card: #FCFBF8; --line: #C5C2B7;
  --ink: #1A1915; --ink-2: #4E4C46; --accent: #3157D5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000; --card: #151515; --line: #2E303A;
    --ink: #E4E5EC; --ink-2: #C6C7D0; --accent: #B9C4FF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.6 Roboto, system-ui, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
/* With 200 % text on a small phone a long word may be wider than its box: break it, never clip it. */
h1, h2, .button, .foot a { overflow-wrap: anywhere; }

/* Name and navigation wrap onto two rows when text is enlarged (200 %) or the screen is narrow. */
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding: 1rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--line); }
.name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; margin: 0; }
.bar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.bar nav a { color: var(--ink-2); text-decoration: none; }
.bar nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* At most 720 px of content on every page (spec decision 2); the hero's two columns fit inside. */
.wrap { max-width: 45rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-body { padding: 1rem 1.25rem 1.25rem; }
.card h2 { font-size: 1.35rem; margin: 0 0 0.25rem; }
.card p { margin: 0 0 1rem; color: var(--ink-2); }

.actions { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.button { display: block; text-align: center; padding: 0.7rem 1rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 500; text-decoration: none; }
.badge { display: inline-block; align-self: center; max-width: 100%; }
/* Sized by width so a narrow box shrinks the badge whole; Google's badge must never be distorted. */
.badge img { width: 9rem; max-width: 100%; height: auto; }
@media (min-width: 40rem) {
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .badge { align-self: auto; }
}

.label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.4rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
.hero p { color: var(--ink-2); margin: 0 0 1rem; }
.hero .graphic { border: 1px solid var(--line); border-radius: 12px; margin: 0.5rem 0 1rem; }
@media (min-width: 53.75rem) {
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
  .hero .graphic { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

.shots { margin: 2rem 0 1rem; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; }
.shots ul { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0.25rem 0 0.75rem; width: max-content; }
.shots li { scroll-snap-align: start; }
.shots img { width: 11.25rem; border: 1px solid var(--line); border-radius: 12px; }

.features { display: grid; gap: 0; margin-top: 1rem; }
.features section { border-top: 1px solid var(--line); padding: 1rem 0; }
.features h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.features p { margin: 0; color: var(--ink-2); }
@media (min-width: 53.75rem) { .features { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.foot { border-top: 1px solid var(--line); padding: 1rem clamp(1rem, 4vw, 2rem) 2rem; font-size: 0.9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* App privacy policy (spec 2026-10-09): skip link, draft banner and long bilingual legal text. */
.skip { position: absolute; left: -999rem; }
.skip:focus { position: static; display: inline-block; margin: 0.75rem clamp(1rem, 4vw, 2rem) 0; }
.draft { margin: 0 0 1.5rem; padding: 0.6rem 0.9rem; border: 1px solid var(--accent); border-radius: 8px; background: var(--card); font-weight: 500; }
.policy { overflow-wrap: anywhere; }
.policy h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.policy h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.policy h3 { font-size: 1.05rem; margin: 1.75rem 0 0.35rem; }
.policy p, .policy li { color: var(--ink-2); }
.policy ul { padding-left: 1.25rem; }
.policy li { margin: 0.35rem 0; }
.policy .meta { font-size: 0.9rem; margin: 0 0 1rem; }
