/* CheddaStack v1 design tokens: the shelf tag, in Chedda yellow (STK laws 32 and 44; ledger 23). Picked by Mark on
   2026-10-16 from three directions: direction B's type and shelf-tag cards, Chedda yellow as CheddaStack's own color,
   saved green where B had a sale red. The names are fixed; the site and the app use only these.

   The shelf-tag card, the one signature device: a white card with a 1.5px --line border and a 6px --cheddar band across
   the top (with a --hairline of --cheddar-edge under it), the price set big in the display face, and a small --cheddar
   tab at the top right naming what the card is, edged in --cheddar-edge.

   Edges (STK law 45): every button, chip, tab and badge carries a --hairline border one shade darker than its own fill
   (--cheddar-edge on yellow, --saved-edge on green, --live-edge on blue, --warn-edge on amber, --ink-edge on white), so
   the edges pop. The art is Eye Formation (theme/art.mjs): seeded SVG, no script. */
:root {
  /* Ground and text */
  --paper: #ffffff;        /* the page */
  --panel: #fafaf8;        /* a quiet card or section ground */
  --ink: #1f2328;          /* text, never pure black */
  --ink-2: #59606b;        /* secondary text */
  --line: #e6e8eb;         /* hairlines and card borders */
  --line-strong: #cfd3d9;  /* quiet buttons and inputs */

  /* Chedda yellow: CheddaStack's own color. Primary buttons, the shelf-tag band and tab. Text on it is --ink. */
  --cheddar: #ffc21a;
  --cheddar-deep: #e0a800;
  --cheddar-soft: #ffe9a3;   /* a vibrant chip fill */
  --cheddar-edge: #b98200;   /* the hairline on anything yellow: one shade darker, so the edge pops (STK law 45) */

  /* Meaning colors. There is no sale red (STK law 44). */
  --saved: #138a52;        /* what you saved, the price at the register, a good deal */
  --saved-soft: #d3f3df;
  --saved-edge: #0d6b3e;
  --warn: #9a5b00;         /* not a deal at your Smith's, different at your Smith's */
  --warn-soft: #fde3bd;
  --warn-edge: #7a4700;
  --live: #2a64b0;         /* Kroger's live answer, shown and never kept */
  --live-soft: #dce9fb;
  --live-edge: #1d4c88;

  /* Shape */
  --radius: 8px;           /* cards and buttons: crisp, like a tag, not a pill */
  --radius-s: 6px;
  --band: 6px;             /* the shelf-tag band */
  --hairline: 1px;         /* every button, card, chip and tab edge: thin, in the darker shade of its own color */
  --ink-edge: #3b4149;     /* the hairline on white buttons and inputs */
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.06), 0 4px 14px rgba(31, 35, 40, 0.06);
  --tap: 48px;             /* the smallest thing a thumb presses */
  --gutter: 16px;          /* phone side gutter */
  --measure: 40rem;        /* the longest line of reading text */

  /* Type: tall condensed headings and prices, like the tags in the aisle; an open, readable body. Body is never under
     18px on a phone. No all-caps headings. */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: 18px;
  --text-s: 16px;          /* captions and small print only */
  --text-l: 22px;
  --text-xl: 32px;
  --text-xxl: 44px;
  --price: 36px;           /* a price on a deal is big, in the display face */
  --weight-body: 400;
  --weight-strong: 700;
  --weight-display: 700;
}

/* Google Fonts, the one allowed font origin. Pages load:
   https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Figtree:wght@400;600;700&display=swap */
/* The site's rules: token names only (theme/tokens.css). The shelf tag, in Chedda yellow (STK law 44), with every edge a
   hairline one shade darker than its own fill, and the Eye Formation art (STK law 45). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text);
  font-weight: var(--weight-body);
  line-height: 1.55;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--cheddar-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--live); outline-offset: 2px; border-radius: var(--radius-s); }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-display); line-height: 1.1; margin: 0 0 12px; text-transform: none; letter-spacing: 0; }
h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-l); }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin: 0 0 6px; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--cheddar); color: var(--ink); border: var(--hairline) solid var(--cheddar-edge); padding: 12px 16px; border-radius: var(--radius-s); z-index: 2; }
.skip:focus { top: 8px; }
.wrap { max-width: 64rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-s); }

/* The top: the mark, the name, the tagline small under it, three links. */
.top { background: var(--paper); border-bottom: 1.5px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-l); }
.brand-name small { font-size: var(--text-s); color: var(--ink-2); }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; font-weight: var(--weight-strong); text-decoration: none; border: var(--hairline) solid transparent; border-radius: var(--radius-s); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cheddar-soft); border-color: var(--cheddar-edge); }
.m-ground { fill: var(--cheddar-soft); }
.m-body { fill: var(--cheddar); stroke: var(--ink); }
.m-top { fill: var(--cheddar-deep); stroke: var(--ink); }
.m-hole { fill: var(--cheddar-deep); }

/* Sections sit on the white page; nothing is a dark strip. */
main { display: block; padding-bottom: 32px; }
.section { padding-top: 32px; }
.hero { padding-top: 24px; }
.hero h1 { max-width: 22ch; }
.lead { max-width: var(--measure); }

/* The art (theme/art.mjs): a panel above Home's hero and a strip between sections, never under text. */
.art { margin: 0; overflow: hidden; border: var(--hairline) solid var(--cheddar-edge); border-radius: var(--radius); background: var(--cheddar-soft); }
.art img, .art-strip img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.art-banner { height: 96px; margin-top: 16px; }
.art-strip { height: 48px; margin-top: 32px; overflow: hidden; background: var(--cheddar-soft); border-top: var(--hairline) solid var(--cheddar-edge); border-bottom: var(--hairline) solid var(--cheddar-edge); }

/* Home's opening: Chedda beside the headline, her line in a bubble, then the receipt. */
.opening { display: grid; gap: 24px; }
.opening .hero { padding-top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.opening .hero h1, .opening .hero .lead, .opening .hero .go { grid-column: 1 / -1; }
.opening .hero h1 { margin-top: 20px; }
.go { margin: 0; }
.face { grid-column: 1; grid-row: 1; width: 88px; height: 88px; margin: 4px; border-radius: 50%; overflow: hidden; background: var(--cheddar-soft); box-shadow: 0 0 0 3px var(--cheddar), 0 0 0 calc(3px + var(--hairline)) var(--cheddar-edge); }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bubble { grid-column: 2; grid-row: 1; margin: 0; padding: 10px 14px; background: var(--cheddar-soft); border: var(--hairline) solid var(--cheddar-edge); border-radius: var(--radius) var(--radius) var(--radius) 2px; }

/* The shelf-tag card: white, a hairline border, Chedda's band across the top edged in its darker shade, and a tab. */
.card { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-top: var(--band) solid var(--cheddar); border-radius: var(--radius); padding: 20px; box-shadow: 0 calc(-1 * var(--hairline)) 0 var(--cheddar-edge), inset 0 var(--hairline) 0 var(--cheddar-edge); }
.card > :last-child { margin-bottom: 0; }
.has-tab { padding-top: 44px; }
.tab { position: absolute; top: 0; right: 16px; max-width: calc(100% - 32px); padding: 3px 12px 5px; border: var(--hairline) solid var(--cheddar-edge); border-top: 0; border-radius: 0 0 var(--radius-s) var(--radius-s); background: var(--cheddar); color: var(--ink); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-s); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buttons: one primary per page, crisp corners, a hairline in the darker shade, every one at least a thumb tall. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 10px 24px; border: var(--hairline) solid var(--ink-edge); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-family: var(--font-body); font-weight: var(--weight-strong); font-size: var(--text); text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--cheddar); border: var(--hairline) solid var(--cheddar-edge); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--cheddar-deep); border-color: var(--cheddar-edge); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chips: the true discount, vibrant green; money that may come later, soft green; each edged one shade darker. */
.chip { display: inline-flex; align-items: center; padding: 3px 12px; border: var(--hairline) solid var(--cheddar-edge); border-radius: var(--radius-s); background: var(--cheddar-soft); color: var(--ink); font-weight: var(--weight-strong); line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-saved { background: var(--saved); border-color: var(--saved-edge); color: var(--paper); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-l); }
.chip-maybe { background: var(--saved-soft); border-color: var(--saved-edge); color: var(--saved-edge); white-space: normal; }
.chip-big { padding: 6px 16px; }
.chip-soon { background: var(--live-soft); border-color: var(--live-edge); color: var(--live-edge); font-family: var(--font-body); font-size: var(--text-s); vertical-align: middle; }
.discount { margin: 12px 0 0; }

/* Chedda: small and framed beside the words, never in a price, a check or a button. */
.pose { flex: none; width: 88px; height: 88px; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cheddar-soft); border: var(--hairline) solid var(--cheddar-edge); }
.pose img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pose-s { width: 72px; height: 72px; }
.beside { display: flex; gap: 16px; align-items: flex-start; }
.beside > div { min-width: 0; }

/* The receipt: the proof, right under the headline. */
.receipt { max-width: 30rem; font-variant-numeric: tabular-nums; box-shadow: 0 calc(-1 * var(--hairline)) 0 var(--cheddar-edge), inset 0 var(--hairline) 0 var(--cheddar-edge), var(--shadow); }
.receipt h2 { font-size: var(--text-l); margin-bottom: 4px; }
.receipt .when { color: var(--ink-2); margin-bottom: 12px; }
.receipt h3 { font-family: var(--font-body); font-size: var(--text); font-weight: var(--weight-strong); margin: 12px 0 4px; }
.rows { list-style: none; margin: 0 0 16px; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 6px 0; border-bottom: 1.5px solid var(--line); }
.rows li > span:last-child { white-space: nowrap; }
.rows .off { margin: 6px 0; padding: 6px 10px; border: var(--hairline) solid var(--saved-edge); border-radius: var(--radius-s); background: var(--saved-soft); }
.rows .off b { color: var(--saved-edge); }
.rows .total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--price); line-height: 1.1; }
.rows .total .pop { display: inline-block; color: var(--saved); }
.quote { margin: 16px 0 0; padding: 14px 16px; border: var(--hairline) solid var(--cheddar-edge); border-radius: var(--radius-s); background: var(--cheddar-soft); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: 6px; color: var(--ink-2); }

/* The receipt stacks in, CSS only: the saving rows drop in one after another, then the total and the discount pop.
   Its resting state is the finished receipt; with reduced motion nothing moves. */
@keyframes stack-drop { from { opacity: 0; transform: translateY(-24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes stack-pop { 0% { transform: scale(0.9); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .receipt .drop { animation: stack-drop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
  .receipt .drop-1 { animation-delay: 250ms; }
  .receipt .drop-2 { animation-delay: 700ms; }
  .receipt .drop-3 { animation-delay: 1150ms; }
  .receipt .pop { animation: stack-pop 380ms ease-out 1600ms both; }
  .receipt .pop-2 { animation-delay: 1950ms; }
}

/* This week's best stacks: Chedda says what she read, then a shelf-tag card per stack, each saving a chip lined up,
   cash back dashed because it may not pay, and the register price big in saved green with its true discount. */
.says { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
.says .bubble { flex: 1; }
.face-s { width: 72px; height: 72px; flex: none; margin: 4px; }
.explain { color: var(--ink-2); }
.deals { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px; }
.deals > li { margin: 0; }
.deal h3 { margin-bottom: 2px; padding-right: 96px; }
.deal .about { margin: 0 0 6px; color: var(--ink-2); }
.deal .shelf { margin: 6px 0 8px; color: var(--ink-2); }
.parts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.parts li { margin: 0; }
.chip-part { display: flex; justify-content: space-between; gap: 12px; white-space: normal; font-weight: var(--weight-body); }
.chip-part b { color: var(--saved-edge); white-space: nowrap; font-weight: var(--weight-strong); }
.chip-later { background: var(--paper); border-style: dashed; border-color: var(--saved-edge); }
.deal .register { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 8px 0 6px; }
.deal .chips { margin: 0 0 6px; }
.deal .chip-maybe { white-space: normal; }
.meta { margin: 8px 0 0; color: var(--ink-2); }

/* A shared win: Chedda celebrating big over the art, the win as a shelf tag, then one button. */
.win { padding-top: 16px; }
.win-art { position: relative; margin-bottom: 76px; }
.win-art .art-banner { margin-top: 0; height: 140px; }
.face-win { position: absolute; left: 50%; bottom: -64px; width: 128px; height: 128px; margin: 0; transform: translateX(-50%); }
.win-card { max-width: 32rem; margin: 0 auto; text-align: center; }
.win-card h1 { font-size: var(--text-xl); }
.win-amount { margin: 0 0 6px; font-family: var(--font-display); font-weight: var(--weight-display); font-size: calc(var(--text-xxl) * 1.5); line-height: 1; color: var(--saved); font-variant-numeric: tabular-nums; }
.win .go, .win .how { text-align: center; margin: 16px 0 0; }
.how a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--weight-strong); }

/* How Chedda helps: four steps, a pose each. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { margin: 0; }
.step { display: flow-root; }
.step .pose { float: left; margin: 0 14px 6px 0; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }

/* The one-item example: the price at the register is the big one, in saved green, with its true discount under it. */
.example h2 { font-size: var(--text-l); }
.example .rows li { align-items: center; }
.example .rows .register { border-bottom: 0; }
.example .rows .chip-row { justify-content: flex-end; padding-top: 0; }
.price-big { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--price); line-height: 1.1; color: var(--saved); }
.was { text-decoration: line-through; color: var(--ink-2); }
.back { font-weight: var(--weight-strong); }

/* Can and can't. */
.can { display: grid; gap: 16px; }
.can h3 { margin-bottom: 6px; }
.can ul { margin: 0; }
.yes li::marker { color: var(--saved); }
.no li::marker { color: var(--warn); }

/* Lists of how-tos, and the facts on How it works. */
.list-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.list-cards li { margin: 0; }
.list-cards a { display: block; height: 100%; min-height: var(--tap); text-decoration: none; }
.list-cards a:hover { border-color: var(--line-strong); border-top-color: var(--cheddar-deep); }
.list-cards h2 { font-size: var(--text-l); text-decoration: underline; text-decoration-color: var(--cheddar-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jobs li { margin-bottom: 10px; }
.facts { display: grid; gap: 16px; }
.facts h3 { margin-bottom: 4px; }
.facts p { margin: 0; }

/* A how-to. */
.crumb { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--weight-strong); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--text-l); margin-top: 28px; }
.prose code { font-family: inherit; background: var(--panel); padding: 0 4px; border-radius: var(--radius-s); }
.prose blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 4px solid var(--cheddar); background: var(--panel); }
.prose .chip { margin: 2px 0; }
.next { margin-top: 24px; }

/* The footer: quiet and light, like the rest. */
.foot { margin-top: 24px; padding: 24px 0 32px; border-top: 1.5px solid var(--line); background: var(--panel); }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 8px; margin-left: -10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; }

@media (min-width: 720px) {
  h1 { font-size: var(--text-xxl); }
  .hero { padding-top: 40px; }
  .steps, .facts, .can, .list-cards, .deals { grid-template-columns: 1fr 1fr; }
  .art-banner { height: 168px; }
  .win-art .art-banner { height: 200px; }
  .win-art { margin-bottom: 100px; }
  .face-win { width: 168px; height: 168px; bottom: -84px; }
}
@media (min-width: 960px) {
  .opening { grid-template-columns: minmax(0, 1fr) 30rem; align-items: start; column-gap: 32px; }
  .opening .art-banner { grid-column: 1 / -1; }
  .opening .hero { grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; align-items: start; padding-top: 8px; }
  .opening .face { width: 140px; height: 140px; grid-row: 1 / span 4; }
  .opening .hero .bubble { grid-column: 2; }
  .opening .hero h1, .opening .hero .lead, .opening .hero .go { grid-column: 2; }
  .opening .receipt { margin-top: 8px; }
  .deals { grid-template-columns: 1fr 1fr 1fr; }
}
