/* Peel: Sticker Launcher site. Tokens from projects/launcher/DESIGN.md ("Design System: Peel"):
   the Album sheet, light (paper #F3EFE7, ink #1E1C19, cobalt #2B54C6) and dark (paper #1A191D,
   ink #F1EDE5, periwinkle #A9BDF6). Flat paper chrome; the only expressive object is the die-cut
   sticker (flat ink, white die-cut edge, soft lift, slight tilt), used here for decoration only.
   Sticker inks appear only on stickers (The Ink-Is-For-Stickers Rule). Fredoka (variable, wdth
   pinned at 100) for headings and sticker faces only; Figtree (variable) for everything you read.
   Focus ring: cobalt on light, marigold #F2C14E on dark (DESIGN.md -> Neutral). */

@font-face {
    font-family: "Fredoka";
    src: url("/peel/fonts/fredoka-var.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Figtree";
    src: url("/peel/fonts/figtree-var.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    /* Album light */
    --paper: #F3EFE7;
    --page: #DFD8CB;
    --card: #FBF9F4;
    --ink: #1E1C19;
    --ink-2: #57524A;
    --hairline: #D6CEBF;
    --outline: #7A7368;
    --primary: #2B54C6;
    --on-primary: #FFFFFF;
    --primary-container: #DCE3FA;
    --on-primary-container: #112A6E;
    --focus: #2B54C6;
    --die-cut: #FFFFFF;
    --lift: rgba(30, 18, 6, 0.32);
    /* Sticker inks: identical in both themes, stickers only */
    --ink-tomato: #D4432A;
    --ink-cobalt: #2B54C6;
    --ink-marigold: #E9A000;
    --ink-on-marigold: #2E2B27;
    --ink-leaf: #17834C;
    --ink-plum: #7A3A9A;
    /* Sheet swatches (paper tones of the three sheets) */
    --slate-paper: #E9ECEE;
    --slate-ink: #191C1F;
    --kraft-paper: #E4D6BE;
    --kraft-ink: #2A2118;
    --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
    --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Album dark */
        --paper: #1A191D;
        --page: #38353C;
        --card: #242228;
        --ink: #F1EDE5;
        --ink-2: #C3BDB3;
        --hairline: #3F3C43;
        --outline: #8E887F;
        --primary: #A9BDF6;
        --on-primary: #0F2A6B;
        --primary-container: #2A3F86;
        --on-primary-container: #DCE3FA;
        --focus: #F2C14E;
        --die-cut: #F7F3EA;
        --lift: rgba(0, 0, 0, 0.5);
        --slate-paper: #15191C;
        --slate-ink: #E9EDF0;
        --kraft-paper: #1C1813;
        --kraft-ink: #F0E6D6;
    }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body);
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

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

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.005em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 6.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.num { font-variant-numeric: tabular-nums; font-weight: 600; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1rem; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 10;
    background: var(--primary); color: var(--on-primary);
    padding: 0.75rem 1rem; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Header: flat paper, hairline below */
.topbar { border-bottom: 1px solid var(--hairline); background: var(--paper); }
.topbar .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.5rem 1.5rem; padding-block: 0.5rem;
}
.brand {
    display: flex; align-items: center; gap: 0.65rem; min-height: 48px;
    color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 12px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.85rem;
    color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 12px;
}
.site-nav a:hover { background: var(--page); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.4em; text-decoration-color: var(--primary); }

/* Sections */
main { display: block; }
.section { padding: 2.75rem 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40rem; }
.answer { font-size: 1.125rem; max-width: 42rem; }
.detail, .prose p, .prose ul { max-width: 42rem; }
.detail li, .prose li { margin-bottom: 0.45rem; }

/* Hero */
.hero { padding: 2rem 0 2.75rem; border-bottom: 1px solid var(--hairline); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) 21rem; } }
.hero-grid > * { min-width: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.cta-note { margin: 0; color: var(--ink-2); font-weight: 600; }
.play-badge { display: inline-block; min-height: 48px; border-radius: 8px; }
.play-badge img { width: 188px; height: 56px; }

/* The die-cut sticker: flat ink, white die-cut edge, soft lift, slight tilt. Decoration only. */
.sticker {
    display: inline-block;
    font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.3;
    padding: 0.3rem 0.85rem;
    border: 4px solid var(--die-cut);
    border-radius: 12px;
    box-shadow: 0 3px 5px var(--lift);
    transform: rotate(-2.5deg);
    margin: 0 0 1.25rem;
    max-width: 100%;
}
.sticker.leaf { background: var(--ink-leaf); color: #FFFFFF; }
.sticker.cobalt { background: var(--ink-cobalt); color: #FFFFFF; transform: rotate(2deg); }
.sticker.marigold { background: var(--ink-marigold); color: var(--ink-on-marigold); transform: rotate(-1.5deg); }
.sticker.plum { background: var(--ink-plum); color: #FFFFFF; transform: rotate(2.5deg); }
.sticker.tomato { background: var(--ink-tomato); color: #FFFFFF; transform: rotate(-2deg); }
@media (prefers-reduced-motion: no-preference) {
    .sticker { transition: transform 0.2s ease; }
}

/* Phone shots: framed deck exports on album paper; a 1 px outline separates them from the page */
.phone { border: 1px solid var(--outline); border-radius: 14px; background: #F3EFE7; }
.hero-shot { display: block; max-width: 21rem; margin: 0 auto; }

/* Answer card: the lifted card surface */
.entity {
    background: var(--card); color: var(--ink);
    border: 1px solid var(--hairline); border-radius: 16px; padding: 1.25rem; max-width: 48rem;
}
.entity p { margin: 0; }

/* Feature with a shot beside it */
.split { display: grid; gap: 1.5rem 2.5rem; align-items: start; }
@media (min-width: 48rem) { .split { grid-template-columns: minmax(0, 1fr) 15rem; } }
.split > * { min-width: 0; }
.split figure { margin: 0; }
.split figure img { max-width: min(15rem, 100%); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 31rem; }

/* Cards */
.cards { display: grid; gap: 1rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--card); color: var(--ink); border: 1px solid var(--hairline); border-radius: 16px; padding: 1.25rem; }
.card p:last-child { margin: 0; }

/* Basics list: two columns of plain rows */
.basics { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.75rem 2rem; max-width: 60rem; }
@media (min-width: 48rem) { .basics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.basics li { padding: 0.75rem 0 0.75rem 1rem; border-left: 3px solid var(--primary); }

/* The three sheets: paper swatches with their names */
.sheets { display: grid; gap: 1rem; list-style: none; margin: 1.25rem 0; padding: 0; max-width: 48rem; }
@media (min-width: 40rem) { .sheets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sheets li { border: 1px solid var(--outline); border-radius: 16px; padding: 1rem 1.1rem; }
.sheets .album { background: var(--card); color: var(--ink); }
.sheets .slate { background: var(--slate-paper); color: var(--slate-ink); }
.sheets .kraft { background: var(--kraft-paper); color: var(--kraft-ink); }
.sheets strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.35rem; }

/* Primary panel: Not now's cobalt, used for the closing band */
.panel {
    background: var(--primary); color: var(--on-primary);
    border-radius: 16px; padding: 1.5rem;
}
.panel h2 { color: var(--on-primary); }
.panel a { color: var(--on-primary); }
.panel :focus-visible { outline-color: var(--on-primary); }
.panel p:last-child { margin-bottom: 0; }

/* Note card for limits that matter */
.note {
    background: var(--primary-container); color: var(--on-primary-container);
    border-radius: 16px; padding: 1rem 1.25rem; max-width: 42rem;
}
.note a { color: var(--on-primary-container); }
.note :focus-visible { outline-color: var(--on-primary-container); }
.note p:last-child { margin-bottom: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery > li { min-width: 0; }
.shot { margin: 0; }
.shot figcaption { font-size: 0.95rem; color: var(--ink-2); margin-top: 0.5rem; }

/* Question links */
.qlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-width: 48rem; }
.qlinks a {
    display: flex; align-items: center; min-height: 48px; padding: 0.5rem 1rem;
    background: var(--card); color: var(--ink); border: 1px solid var(--outline); border-radius: 12px;
    font-weight: 600; text-decoration: none;
}
.qlinks a:hover { background: var(--page); text-decoration: underline; }
.toc { margin-bottom: 1rem; }

/* Breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; color: var(--ink-2); font-size: 0.95rem; }
.crumbs li + li::before { content: "›"; padding: 0 0.5rem; }
.crumbs a { display: inline-block; padding: 0.75rem 0; }

.faq section { padding: 1.5rem 0; border-top: 1px solid var(--hairline); }
.faq h2 { font-size: clamp(1.35rem, 3.8vw, 1.85rem); }

/* Closing band */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.band h2 { margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 2rem 0; margin-top: 1rem; font-size: 0.95rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; list-style: none; margin: 1rem 0; padding: 0; gap: 0 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; }
.fine { color: var(--ink-2); }
.fine p { margin: 0 0 0.5rem; }
