/* The Family Trail — generated from tokens.json */
:root, [data-theme="light"] {
  --canvas: #fffbf3; /* Page background for the website, product pages, sign-up and print. Warm paper, never pure white. */
  --ground: #eef1e6; /* Background of a family's own home (the dashboard). Sage, so the family space feels like being outdoors. */
  --surface: #fffdf7; /* Cards and panels on canvas or ground. Ink, ink-2 and ink-3 all pass AA on it in both themes. */
  --surface-warm: #f6e4cf; /* Keepsake cards only: time capsule, letters, the year book. Warmth signals 'this is precious'. */
  --photo-frame: #ffffff; /* The white border of a polaroid. Stays white in dark mode because it is a physical object. */
  --line: #d9decf; /* Hairlines, dividers, the polaroid's drop edge. Decorative only, never the only border of a control. */
  --line-strong: #8c877f; /* Borders of inputs, dashed cut lines on print, empty passport stamps. 3.6:1 on surface (light), 4.4:1 (dark). */
  --ink: #2b2a28; /* All headings and body text. 13.9:1 on canvas (light), 15.2:1 (dark). */
  --ink-2: #4a443d; /* Secondary text: descriptions, lead paragraphs. 9.3:1 on canvas. */
  --ink-3: #5a5650; /* Quiet text: dates, counts, helper lines. 7.1:1 on canvas, 5.9:1 on surface-warm; 6.0:1 on dark surface. */
  --moss: #2f5233; /* The product's primary colour: main buttons, active nav, the 'next adventure' card, links. Text on it uses on-moss (8.7:1 / 9.4:1). */
  --on-moss: #fffdf7; /* Text and icons placed on moss. */
  --moss-mist: #dce6d6; /* Quiet green fill: completed months, success washes, photo placeholders. Ink on it 11.2:1. */
  --sun: #e9b949; /* Highlight: the Adventure Captain, rewards, the current month, countdown chips. Always with ink text (7.9:1), never cream. */
  --sun-soft: #f4d98a; /* Handwritten accents on moss (6.4:1) and the soft highlight fill behind stats. Same in both themes. */
  --berry: #a63d55; /* The one 'do it' colour: Start your family, Add a memory, Save. One berry button per screen. Text on it uses on-berry (6.0:1 / 7.5:1). */
  --on-berry: #fffdf7; /* Text and icons on berry. */
  --blush: #f4a9a3; /* Emblem cheeks and tiny decorative touches. Never text, never a fill behind text. */
  --leaf: #7fa36e; /* Family palette: member colour, stamp, washi tape. Ink on it 5.0:1. Decorative; not a status colour. */
  --sky: #8fb3d9; /* Family palette: member colour, stamp, washi tape. Ink on it 6.6:1. */
  --peach: #f2a65a; /* Family palette: member colour, stamp, washi tape. Ink on it 7.1:1. */
  --plum-soft: #b9a3d6; /* Family palette: member colour, stamp. Ink on it 6.3:1. */
  --fawn: #d49a68; /* Family palette and the Roe deer emblem. Ink on it 5.9:1. */
  --family-moss: #2f5233; /* Family colour choice 1 (default). Fills the family's hero card; cream text on it 8.7:1. */
  --family-berry: #a63d55; /* Family colour choice 2. Cream text 6.0:1. */
  --family-ocean: #2d5f86; /* Family colour choice 3. Cream text 6.7:1. */
  --family-plum: #5e4a7a; /* Family colour choice 4. Cream text 7.5:1. */
  --family-rust: #9a4a22; /* Family colour choice 5. Cream text 6.1:1. */
  --family-slate: #3f4a54; /* Family colour choice 6. Cream text 8.9:1. */
  --ok: #2e7d4f; /* Status: saved, booked, done. 4.9:1 on canvas; 8.5:1 dark. Pair with a word or icon, never colour alone. */
  --warn: #a15f05; /* Status: weather risk, storage at 80%, tickets selling out. 4.9:1 on canvas. */
  --bad: #b33a2a; /* Status: cancelled, payment problem, delete. 5.7:1 on canvas. */
  --ad-label: #2b2a28; /* The background of the 'Ad' label on any affiliate link. Text on it is canvas. */
  --shadow-polaroid: 0 2px 0 #d9decf; /* Polaroid photos only: a printed edge, not a floating shadow. */
  --shadow-none: none; /* Everything else. Cards sit flat on the ground; colour, not shadow, separates them. */
}
[data-theme="dark"] {
  --canvas: #1c1a17;
  --ground: #1a1d18;
  --surface: #26231f;
  --surface-warm: #33291f;
  --photo-frame: #ffffff;
  --line: #3a3630;
  --line-strong: #8f877b;
  --ink: #f5efe6;
  --ink-2: #d8cfc3;
  --ink-3: #a89f94;
  --moss: #9ccb93;
  --on-moss: #1c1a17;
  --moss-mist: #2b3a2a;
  --sun: #f0c861;
  --sun-soft: #f4d98a;
  --berry: #f08ea0;
  --on-berry: #1c1a17;
  --blush: #f4a9a3;
  --leaf: #7fa36e;
  --sky: #8fb3d9;
  --peach: #f2a65a;
  --plum-soft: #b9a3d6;
  --fawn: #d49a68;
  --family-moss: #2f5233;
  --family-berry: #a63d55;
  --family-ocean: #2d5f86;
  --family-plum: #5e4a7a;
  --family-rust: #9a4a22;
  --family-slate: #3f4a54;
  --ok: #5fc98c;
  --warn: #ffc24d;
  --bad: #ff7a59;
  --ad-label: #f5efe6;
  --shadow-polaroid: 0 2px 0 #000000;
}
:root {
  --space-1: 4px; /* Icon-to-label nudges. */
  --space-2: 8px; /* Between chips; inside small pills. */
  --space-3: 12px; /* Between a heading and its line; gaps in compact grids. */
  --space-4: 16px; /* Inner padding of small cards; gaps between related cards on phones. */
  --space-5: 22px; /* Gaps between cards in a row; card padding on phones. */
  --space-6: 28px; /* Card padding on desktop; gap between page sections inside the app. */
  --space-7: 40px; /* Page side padding on tablet; space above a section heading. */
  --space-8: 72px; /* Vertical rhythm between marketing sections; print margins (0.75in). */
  --radius-sm: 10px; /* Image placeholders inside cards, tiny tags. */
  --radius-md: 14px; /* Inputs and text areas. */
  --radius-lg: 20px; /* Emblem picker tiles, month stepping stones, small cards. */
  --radius-xl: 28px; /* Main cards and panels: the Next Adventure card, memory jar, pricing cards. */
  --radius-pill: 999px; /* Every button, chip and countdown pill. Nothing rectangular is clickable. */
  --tilt-left: -1.5deg; /* Polaroids and stickers, alternating left and right. */
  --tilt-right: 1.2deg; /* Polaroids and stickers, alternating. */
  --tilt-card: -3deg; /* Marketing collage cards only. Never tilt anything with a button or form inside. */
  --touch-min: 44px; /* Smallest tappable thing. Kids' mode uses touch-kids. */
  --touch-kids: 64px; /* Every tappable thing in kids' mode and the huddle. */
  --emblem-min: 24px; /* Smallest emblem ever drawn; below 56px the simple version (no whiskers) is used. */
  --content-max: 1200px; /* Max width of page content. */
  --font-display: "Grandstander", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --text-display-xl: 800 64px/1.02 var(--font-display); /* One per page: the product homepage hero. 46px on phones. */
  --text-display-l: 800 46px/1.05 var(--font-display); /* The Next Adventure card title and page titles in the app. */
  --text-heading: 800 40px/1.1 var(--font-display); /* Section headings on marketing pages. */
  --text-title: 800 26px/1.2 var(--font-display); /* Card and panel titles inside the app. */
  --text-title-s: 800 20px/1.25 var(--font-display); /* Card titles on phones and inside profile panels. */
  --text-brand-name: 800 30px/1 var(--font-display); /* The family name beside its emblem in the header. 22-24px on phones. */
  --text-lead: 400 19px/1.55 var(--font-body); /* The paragraph under a hero heading. */
  --text-body: 400 17px/1.55 var(--font-body); /* All running text. One size everywhere; never smaller than 15px for anything a person must read. */
  --text-body-s: 600 15px/1.5 var(--font-body); /* Card descriptions, metadata lines, form help. */
  --text-button: 800 16px/1.2 var(--font-body); /* Every button and pill label. */
  --text-label: 800 13px/1.3 var(--font-body); /* Small caps labels: month names, step counters. Uppercase only here. */
  --text-small: 600 13px/1.45 var(--font-body); /* Under avatars, captions. Minimum size for text in the product. */
  --text-hand-l: 700 26px/1 var(--font-hand); /* Polaroid captions and memory-jar slips: the family's own voice. */
  --text-hand: 600 22px/1.15 var(--font-hand); /* Mottos, eyebrows over headings, little asides. Never for instructions, buttons or anything that must be read quickly. */
}
.display-xl {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1px;
}
.display-l {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}
.heading {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}
.title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}
.title-s {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.body-s {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
}
.button {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.small {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0;
}
.hand-l {
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}
.hand {
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}
