/* Layout: one calm column, big type and big targets (readable for every age); the printed tag is the hero object. */
:root {
  --paper: #FFF7F1;
  --card: #FFFFFF;
  --ink: #2B1B14;
  --muted: #6F5B51;
  --line: #EBDCD1;
  --clay: #993C1D;
  --coral: #D85A30;
  --on-clay: #FFFFFF;
  --tint: #FBE9DF;
  --lost: #B42318;
  --lost-bg: #FDECEA;
  --ok: #1F7A4D;
  --ok-bg: #E7F5EE;
  --tag: #FFFFFF;
  --tag-ink: #2B1B14;
  --font-display: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17110E; --card: #221915; --ink: #F7ECE5; --muted: #BFA99D; --line: #3A2C25;
    --clay: #F0997B; --coral: #F5C4B3; --on-clay: #2B1B14; --tint: #2E201A;
    --lost: #FF9B92; --lost-bg: #3A1D1C; --ok: #6EE7A8; --ok-bg: #15291F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17110E; --card: #221915; --ink: #F7ECE5; --muted: #BFA99D; --line: #3A2C25;
  --clay: #F0997B; --coral: #F5C4B3; --on-clay: #2B1B14; --tint: #2E201A;
  --lost: #FF9B92; --lost-bg: #3A1D1C; --ok: #6EE7A8; --ok-bg: #15291F;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--clay); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 560px; }

/* Header */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.lang {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 12px; min-height: 44px; padding: 6px 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--clay); color: var(--on-clay); }
.btn-primary:hover { background: var(--coral); color: var(--on-clay); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--clay); }
.btn-lost { background: #B42318; color: #FFFFFF; }
.btn-lost:hover { background: #912018; }
.btn svg { width: 22px; height: 22px; flex: none; }

.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); }

/* The printed tag: dashed cut line, like the PDF the app prints */
.tag {
  background: var(--tag); color: var(--tag-ink);
  border: 2px dashed #C9B3A6; border-radius: 22px;
  padding: 18px 18px 14px; display: grid; justify-items: center; gap: 6px;
  width: min(100%, 280px);
}
.tag canvas { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.tag .tag-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.tag .tag-cta { font-size: 14px; text-align: center; line-height: 1.3; }
.tag .tag-url { font-family: var(--font-mono); font-size: 12px; color: #6F5B51; }

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