/* ============================================================
   LKL — Playful Kraft Design System
   Tokens, typography, texture & base components
   Fonts: Young Serif (display) · Hanken Grotesque (UI/body)
          Shantell Sans (handwritten accent)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Hanken+Grotesque:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Shantell+Sans:ital,wght@0,500;0,600;0,700;1,600&display=swap');

/* ---------- Default palette: "Kraft Pop" (Palette A) ---------- */
:root {
  --paper:        #F4EDE0;
  --paper-2:      #EFE5D4;
  --paper-card:   #FBF6EC;

  --ink:          #1C1A17;
  --ink-soft:     #534D44;
  --ink-faint:    #8A8276;

  --orange:       #F2A45C;
  --orange-deep:  #E8893A;
  --lavender:     #C9B6F2;
  --mint:         #A9DEC0;
  --peach:        #F4C9A3;
  --blue:         #A9C7F0;
  --yellow:       #F6D98A;
  --pink:         #F3B0C3;

  /* Functional */
  --accent:       var(--orange);
  --accent-ink:   var(--ink);

  /* Geometry */
  --r-pill:   999px;
  --r-card:   24px;
  --r-sm:     14px;
  --bw:       2.5px;                 /* signature thick border */
  --border:   var(--bw) solid var(--ink);

  /* Hard "sticker" shadow */
  --shadow:        4px 4px 0 var(--ink);
  --shadow-lg:     6px 6px 0 var(--ink);
  --shadow-sm:     2.5px 2.5px 0 var(--ink);
  --shadow-soft:   0 14px 40px -18px rgba(28,26,23,.45);

  /* Type */
  --font-display: 'Young Serif', Georgia, serif;
  --font-body:    'Hanken Grotesque', system-ui, sans-serif;
  --font-hand:    'Shantell Sans', 'Comic Sans MS', cursive;

  --maxw: 1180px;
}

/* ---------- Alt palette B: "Berry Soda" ---------- */
.pal-berry {
  --paper:        #F6ECEC;
  --paper-2:      #F0E2E4;
  --paper-card:   #FCF4F2;
  --orange:       #F58E8E;   /* coral */
  --orange-deep:  #E96F6F;
  --lavender:     #B7B9F0;   /* periwinkle */
  --mint:         #BFE3B6;   /* sage */
  --peach:        #F7CBB0;
  --blue:         #9FB8F2;
  --yellow:       #F4D98C;
  --pink:         #F2A8C6;
  --accent:       var(--orange);
}

/* ---------- Alt palette C: "Citrus Pool" ---------- */
.pal-citrus {
  --paper:        #F0EFE2;
  --paper-2:      #E7E7D4;
  --paper-card:   #F9F8ED;
  --orange:       #F4A93C;   /* tangerine */
  --orange-deep:  #E6902A;
  --lavender:     #B8C8DE;   /* dusty blue */
  --mint:         #7FC8C0;   /* teal */
  --peach:        #F6D08A;
  --blue:         #8FC6D6;
  --yellow:       #F2DE6E;
  --pink:         #F0A6A0;
  --accent:       var(--orange);
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-size: 360px 360px;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Kraft-paper texture: layered fractal noise baked into a data URI.
   Set as a variable so it can be reused on cards/sections. */
:root {
  --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.06; }

.t-d1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6.5vw, 5.4rem); line-height: 1.0; letter-spacing: -.015em; }
.t-d2 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.01em; }
.t-d3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.t-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.65; }
.t-body { font-size: 1.0625rem; color: var(--ink-soft); }
.t-small { font-size: .9rem; color: var(--ink-soft); }

.hand {
  font-family: var(--font-hand);
  font-weight: 600;
}
em.hand, .italic { font-style: italic; }

/* Eyebrow / kicker pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5em 1.1em;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--orange);
  box-shadow: var(--shadow-sm);
}

/* highlighter marker over text */
.mark {
  background: linear-gradient(120deg, transparent 0 6%, var(--lavender) 6% 94%, transparent 94%);
  background-size: 100% 0.82em;
  background-position: 0 78%;
  background-repeat: no-repeat;
  padding: 0 .12em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* =========================================================
   BUTTONS  (pill · thick border · hard shadow · press)
   ========================================================= */
.btn {
  --btn-bg: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding: .85em 1.5em;
  background: var(--btn-bg);
  border: var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s ease, background .15s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:hover  { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(2px,2px);   box-shadow: var(--shadow-sm); }
.btn .ico { width: 1.15em; height: 1.15em; display: inline-flex; }

.btn--orange   { --btn-bg: var(--orange); }
.btn--lavender { --btn-bg: var(--lavender); }
.btn--mint     { --btn-bg: var(--mint); }
.btn--peach    { --btn-bg: var(--peach); }
.btn--blue     { --btn-bg: var(--blue); }
.btn--yellow   { --btn-bg: var(--yellow); }
.btn--paper    { --btn-bg: var(--paper-card); }
.btn--ink      { --btn-bg: var(--ink); color: var(--paper-card); }
.btn--lg       { font-size: 1.1rem; padding: 1em 1.8em; }
.btn--sm       { font-size: .85rem; padding: .6em 1.1em; box-shadow: var(--shadow-sm); }

/* =========================================================
   TAGS / CHIPS / STICKERS
   ========================================================= */
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .9rem;
  padding: .45em 1em;
  background: var(--peach);
  border: var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.chip--soft { box-shadow: none; }

.sticker {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-hand);
  font-weight: 700;
  padding: .35em .9em;
  background: var(--mint);
  border: var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
}

/* =========================================================
   CARDS & SURFACES
   ========================================================= */
.card {
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}
.card--flat { box-shadow: none; }
.card--lg   { box-shadow: var(--shadow-lg); }

.panel {
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

/* tinted note / callout */
.note {
  background: var(--peach);
  border: var(--border);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.3rem;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 3rem); }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; }
.center { display: flex; align-items: center; justify-content: center; }

/* doodle wrapper — must be inline-block so width/height apply to the span */
.doodle { display: inline-block; line-height: 0; vertical-align: middle; }
.doodle > svg { display: block; width: 100%; height: 100%; }

/* dotted / dashed connector circle used by process diagrams */
.dashring { border: 2.5px dashed var(--ink); border-radius: 50%; }

/* wavy bottom divider (use as decorative svg in markup) */
.swatch {
  width: 100%; height: 56px; border-radius: 12px; border: var(--border);
}

/* focus */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
