/* kelseyverse · the kit (2026-11-25)
   The shared pieces every page builds from. They were pulled out of /work/brand/ unchanged; the rules for using them are on /brand-guide/#kit.
   Load this file BEFORE the page's own <style>, so a page can still place and size things after it.
   Colors and fonts come from the page's own tokens (--ink, --cream, --leaf, --neon, --terra, --f-display, --f-mono, --f-hand); the fallbacks here are the same values. */
:root {
  --lift: #13162a;                          /* lifted ink: alternates with ink so sections separate */
  --tape: rgba(232, 223, 201, 0.88);
}

/* ---- 1. ink and lifted ink: a page's big sections alternate between the two ---- */
.sec { position: relative; background: var(--ink, #0d0f1c); }
.sec--lift { background: var(--lift); }

/* ---- 6. checker strip: thin cream and ink checkerboard, a divider between big sections ---- */
.ck { height: 36px; background-image: conic-gradient(#f3ecde 25%, #0d0f1c 0 50%, #f3ecde 0 75%, #0d0f1c 0); background-size: 36px 36px; }

/* small mono label (the number on a paper card, a figure line) */
.mono { font-family: var(--f-mono, 'JetBrains Mono', monospace); font-size: 13px; letter-spacing: 0.14em; line-height: 1.5; }

/* ---- 2. cut-out heading: Syne, lowercase, one word in a tilted cut-out box ---- */
.hd { font-family: var(--f-display, 'Syne', sans-serif); font-weight: 800; color: var(--cream, #f3ecde); line-height: 1.04; letter-spacing: -0.01em; font-size: clamp(32px, 4.5vw, 64px); margin: 12px 0 0; }
.cut { display: inline-block; padding: 0.02em 0.2em 0.12em; line-height: 1; font-size: 1.05em; background: var(--neon, #ff2d8a); color: var(--ink, #0d0f1c); transform: rotate(var(--r, -3deg)); }
.cut--cream { background: var(--cream, #f3ecde); }
.cut--leaf { background: var(--leaf, #86c281); }
.cut--terra { background: var(--terra, #c77a56); }

/* a strip of tape. Place it with top/left on the thing it holds. */
.tape { position: absolute; z-index: 2; width: 120px; height: 32px; background: var(--tape); box-shadow: 0 1px 2px rgba(13, 15, 28, 0.25); transform: rotate(var(--r, 0deg)); }

/* ---- 4. polaroid: taped, tilted. The photo keeps its own shape. ---- */
.pol { position: relative; transform: rotate(var(--r, 0deg)); }
.pol__card { background: var(--cream, #f3ecde); padding: 14px 14px 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.pol__card img { display: block; width: 100%; height: auto; }
/* the pink handwriting sits on an ink label: neon pink straight on the cream card does not pass contrast */
.cap { text-align: center; margin-top: 12px; line-height: 1; }
.cap span { display: inline-block; background: var(--ink, #0d0f1c); padding: 9px 14px 5px; font-family: var(--f-hand, 'Rock Salt', cursive); color: var(--neon, #ff2d8a); font-size: 16px; line-height: 1.4; transform: rotate(-1.5deg); }

/* ---- 5. sticker: decorative only. Never over words, a button or a link; never clickable; no animation. Halftone ones carry no shadow.
   No sticker floats: each one sits ON an element's edge, peeks out from BEHIND an element, or STANDS on a bottom edge. Where one cannot, hide it. ---- */
.stk { position: absolute; z-index: 4; max-width: none; height: auto; pointer-events: none; user-select: none; transform: rotate(var(--r, 0deg)); }

/* ---- 3. paper card: cream, tape on top, a colored edge underneath (--sh picks the edge color) ---- */
.bcard { position: relative; background: var(--cream, #f3ecde); color: var(--ink, #0d0f1c); padding: 24px 24px 26px; box-shadow: 7px 8px 0 var(--sh, var(--neon, #ff2d8a)); transform: rotate(var(--r, 0deg)); margin-top: var(--y, 0px); }
.bcard--leaf { background: var(--leaf, #86c281); }
.bcard--pink { background: var(--neon, #ff2d8a); }
.bcard h3 { margin: 6px 0 8px; font-family: var(--f-display, 'Syne', sans-serif); font-weight: 800; font-size: clamp(30px, 2.6vw, 36px); line-height: 1; }
.bcard p { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; }
.bcard .tape { top: -17px; left: 34%; }

/* ---- 7. corkboard: for anything pinned. Text stays on paper, never on the cork.
   Kelsey's cork photo as a repeating tile (kit/cork-800, made by _tools/kit/make_cork.py), inside a darker terra frame. ---- */
.cork { position: relative; padding: 34px 28px; background-color: var(--terra, #c77a56);
  background-image: url(cork-800.webp);
  background-image: image-set(url(cork-800.avif) type("image/avif"), url(cork-800.webp) type("image/webp"));
  background-size: 800px auto; background-repeat: repeat;
  border: 12px solid color-mix(in srgb, var(--terra, #c77a56) 62%, var(--ink, #0d0f1c)); box-shadow: inset 0 0 28px rgba(13, 15, 28, 0.35), 0 14px 30px rgba(0, 0, 0, 0.5); }

/* one column layouts: tilts are halved */
@media (max-width: 900px) {
  .pol, .bcard, .stk { transform: rotate(calc(var(--r, 0deg) * 0.5)); }
  .cut { transform: rotate(calc(var(--r, -3deg) * 0.5)); }
}
@media (max-width: 600px) {
  .ck { height: 24px; background-size: 24px 24px; }
  .pol__card { padding: 10px 10px 12px; }
  .tape { width: 84px; height: 24px; }
  .cap span { font-size: 14px; }
}
