/* Shop Smart. One sheet of ruled list paper, one orange margin, one blue pen. Only the pen moves. */
:root {
  --paper: #f3eee3;
  --paper-white: #fbf9f3;
  --kraft: #e6dccb;
  --ink: #14151a;
  --ink-soft: #494b57;
  --pen: #1c3fd6;
  --sticker: #ff5a1f;
  --rule: #c9d4e6;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* The baseline rhythm of the rules, the x-position of the margin rule, the page gutter. */
  --line: 3rem;
  --margin: 1rem;
  --gut: clamp(1rem, 3vw, 2.5rem);
  --head: 4rem;
  --hair: .0625rem;
  /* The pen: stroke weight relative to the type it marks, and how a stroke accelerates. */
  --pen-w: .075em;
  --pen-ease: cubic-bezier(.3, .6, .2, 1);
  --pen-time: .55s;
}
@media (min-width: 60rem) {
  :root { --line: 4rem; --margin: 12vw; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head); }
html.menu-open { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 1rem; line-height: 1.6; font-weight: 400;
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: -.035em; overflow-wrap: break-word; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: .1875rem solid var(--pen); outline-offset: .1875rem; }
::selection { background: var(--pen); color: var(--paper); }

/* Screen-reader-only text: .sr */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Skip link: .skip */
.skip { position: absolute; left: -999rem; top: 0; z-index: 99; background: var(--ink); color: var(--paper); padding: .75rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---- Type scale ----------------------------------------------------------- */
/* Display sizes, all Bricolage on tight leading: .t-mega (list items, 12vw+), .t-xl (page titles), .t-l, .t-m */
.t-mega, .t-xl, .t-l, .t-m { font-family: var(--display); font-weight: 400; overflow-wrap: break-word; }
.t-mega { font-size: clamp(2.5rem, 12.5vw, 15rem); line-height: .86; letter-spacing: -.05em; }
.t-xl { font-size: clamp(2.25rem, 7.4vw, 7rem); line-height: .9; letter-spacing: -.04em; }
.t-l { font-size: clamp(1.75rem, 4.2vw, 3.75rem); line-height: .96; letter-spacing: -.03em; }
.t-m { font-size: clamp(1.25rem, 2.1vw, 1.875rem); line-height: 1.1; letter-spacing: -.02em; }
/* Till-receipt voice for labels, aisle names, quantities: .t-note (small tracked caps), .t-small (small mono) */
.t-note { font-family: var(--mono); font-size: .75rem; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.t-small { font-size: .875rem; line-height: 1.55; }
/* Reading paragraph, list-short and never wider than a receipt: .lede (larger opening paragraph), .copy */
.lede { font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem); line-height: 1.5; max-width: 34em; }
.copy { max-width: 36em; }
.copy > * + * { margin-top: 1.25em; }

/* ---- The recurring device: the sheet ------------------------------------------ */
/* The sheet: .sheet is a section of list paper with the orange margin rule; every direct child sits right of it. */
.sheet {
  display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); align-items: start;
  background-image: linear-gradient(var(--sticker), var(--sticker));
  background-repeat: no-repeat; background-position: var(--margin) 0; background-size: .125rem 100%;
  padding-block: calc(var(--line) * 1);
}
.sheet > * { grid-column: 2; min-width: 0; padding-inline: var(--gut); }
/* Sheet modifiers: .sheet--flush (no vertical padding), .sheet--kraft (back-cover ground), .bleed on a child (runs off the right edge) */
.sheet--flush { padding-block: 0; }
.sheet--kraft { background-color: var(--kraft); }
.sheet > .bleed { padding-right: 0; }
/* Margin note: .note placed directly BEFORE the block it annotates; sits left of the margin rule on desktop, above the block on mobile. */
.note {
  font-family: var(--mono); font-size: .75rem; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); overflow-wrap: anywhere; padding-block: .75rem .25rem;
}
.note b, .note strong { font-weight: 400; color: var(--pen); }
@media (min-width: 60rem) {
  .sheet > .note { grid-column: 1; padding: .875rem 1rem 0 .75rem; text-align: right; }
}

/* Ruled list: .lines wraps .line items; each .line is one row of display type sitting on its own pale blue rule. */
.lines { border-top: var(--hair) solid var(--rule); }
.line {
  display: block; min-height: var(--line); padding: .14em 0 .06em;
  border-bottom: var(--hair) solid var(--rule);
  font-family: var(--display); letter-spacing: -.04em; line-height: .9; overflow-wrap: break-word;
}
/* Empty ruled paper for areas WITHOUT running text (pads, spacers, photo grounds): .ruled */
.ruled {
  background-image: linear-gradient(to bottom, transparent calc(var(--line) - var(--hair)), var(--rule) calc(var(--line) - var(--hair)));
  background-size: 100% var(--line);
}

/* The strike: wrap one unbroken phrase in .strike; the blue stroke length is --s (0 to 1). Add data-strike to cross it off once on arrival, data-strike="scroll" to tie it to scroll, or set --s yourself. */
.strike { position: relative; display: inline-block; max-width: 100%; --s: 0; }
.strike::after {
  content: ""; position: absolute; left: -.06em; right: -.1em; top: 53%;
  height: max(var(--pen-w), .125rem); border-radius: 1em; background: var(--pen);
  transform-origin: 0 50%; transform: rotate(-1.1deg) scaleX(var(--s)); pointer-events: none;
}
.strike.is-struck { --s: 1; }
.strike.is-struck::after { transition: transform var(--pen-time) var(--pen-ease); }
html:not(.js) .strike { --s: 1; }

/* The pen rule: hr.pen-rule or span.pen-rule is a slightly slanted blue stroke that draws left to right inside a [data-reveal] block. */
.pen-rule {
  display: block; width: min(100%, 14rem); height: .1875rem; margin: 1.25rem 0; border: 0; border-radius: 1em;
  background: var(--pen); transform-origin: 0 50%; transform: rotate(-.6deg) scaleX(1);
  transition: transform var(--pen-time) var(--pen-ease);
}
.js [data-reveal]:not(.is-in) .pen-rule, .js .pen-rule[data-reveal]:not(.is-in) { transform: rotate(-.6deg) scaleX(0); }

/* The tick: svg.tick holding path.tick-box (the empty box) and two path.tick-mark strokes, each with pathLength="1"; draws inside a [data-reveal] block or when .is-ticked is removed/added by a page. */
.tick { width: 1.75em; height: 1.75em; flex: none; overflow: visible; }
.tick path { fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick-mark { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .16s linear; }
.tick-mark + .tick-mark { transition: stroke-dashoffset .3s var(--pen-ease) .16s; }
.js [data-reveal]:not(.is-in) .tick-mark, .js .tick.is-empty .tick-mark { stroke-dashoffset: 1; }

/* Reveal-on-scroll: nothing fades or slides; [data-reveal] gains .is-in once in view and the pen marks inside it draw. Style your own .is-in states per page. */
[data-reveal] { --in: 0; }
[data-reveal].is-in { --in: 1; }

/* ---- Page opening ---------------------------------------------------------- */
/* Page opening: section.sheet.opening with a .note, an h1.opening-title (sits on a rule) and an optional p.lede.opening-lede. */
.opening { padding-top: clamp(2.5rem, 9vh, 6rem); padding-bottom: var(--line); }
.opening-title {
  font-size: clamp(2.5rem, 9.5vw, 10rem); line-height: .88; letter-spacing: -.045em;
  padding-bottom: .08em; margin-inline: var(--gut); padding-inline: 0;
  border-bottom: var(--hair) solid var(--rule);
}
.opening-lede { margin-top: calc(var(--line) * .5); }

/* ---- Figure and caption ------------------------------------------------------ */
/* Photograph: figure.shot > img (fills its box, cropped); ratios .shot--square, .shot--tall, .shot--wide; caption figcaption.cap */
.shot { position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.shot--square img { aspect-ratio: 1; }
.shot--tall img { aspect-ratio: 4 / 5; }
.shot--wide img { aspect-ratio: 21 / 9; }
.cap {
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding-top: .75rem;
  font-size: .75rem; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---- Rules, tallies, links, button -------------------------------------------- */
/* Plain pale-blue paper rule: hr.rule (add .rule--dotted for the receipt's dotted rule) */
.rule { border: 0; border-top: var(--hair) solid var(--rule); margin: 0; }
.rule--dotted { border-top: .125rem dotted var(--ink-soft); }
/* Tally list for specs, hours and address: dl.tally > div > dt + dd, one dotted row each */
.tally > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  padding: .8rem 0; border-bottom: .125rem dotted var(--rule);
}
.tally dt { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2em; }
.tally dd { text-align: right; max-width: 100%; overflow-wrap: anywhere; }
/* Text link in ballpoint blue with an underline beneath, never through: a.link; links inside .copy get it automatically */
.link, .copy a {
  color: var(--pen); text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.link:hover, .copy a:hover { text-decoration-thickness: .18em; }
/* Arrowed blue link for "next line" moves: a.link-go (mono, 44px tall) */
.link-go {
  display: inline-flex; align-items: center; gap: .6em; min-height: 2.75rem;
  color: var(--pen); font-size: .875rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .3em;
}
.link-go::after { content: "\2192"; text-decoration: none; display: inline-block; }
.link-go:hover { text-decoration-thickness: .18em; }
/* The one action button, sticker orange with ink type; hover is a hard cut, no lift: a.btn */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  min-height: 3.5rem; padding: .9rem 1.5rem; max-width: 100%;
  background: var(--sticker); color: var(--ink); border: .125rem solid var(--ink);
  font-family: var(--mono); font-size: .9375rem; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; text-align: center;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }

/* ---- Legal and plain reading pages --------------------------------------------- */
/* Long-form text on the sheet: .prose (h2, h3, p, ul get rhythm and a readable measure) */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); margin-top: calc(var(--line) * .9); padding-bottom: .3rem; border-bottom: var(--hair) solid var(--rule); }
.prose h3 { font-size: 1.375rem; letter-spacing: -.02em; margin-top: 2rem; }
.prose ul { padding-left: 1.4em; list-style: "\2013\00a0\00a0"; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--pen); text-decoration: underline; text-underline-offset: .22em; overflow-wrap: anywhere; }

/* ---- Chrome: header -------------------------------------------------------------- */
/* Header bar, sticky on solid paper, height var(--head): .head, .brand, .brand-mark, .brand-name, .nav, .head-call, .menu-toggle */
.head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem);
  min-height: var(--head); padding: 0 var(--gut);
  background: var(--paper); border-bottom: var(--hair) solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; margin-right: auto; }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; }
.nav { display: none; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .4rem; height: .125rem; border-radius: 1em;
  background: var(--pen); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s var(--pen-ease);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-call { display: none; align-items: center; min-height: 2.75rem; font-size: .8125rem; letter-spacing: .04em; color: var(--pen); white-space: nowrap; }
.head-call:hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-toggle, .menu-close {
  display: inline-flex; align-items: center; justify-content: center; min-width: 4.5rem; min-height: 2.75rem; padding: 0 .9rem;
  border: .125rem solid var(--ink); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
}
.menu-toggle:hover, .menu-close:hover { background: var(--ink); color: var(--paper); }
@media (min-width: 60rem) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 76rem) {
  .head-call { display: inline-flex; }
}

/* ---- Chrome: full-screen menu ------------------------------------------------------ */
/* Full-screen menu sheet, every page a ruled line: .menu, .menu-head, .menu-close, .menu-list, .menu-n, .menu-foot */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: 0 var(--gut) 1.5rem calc(1rem + var(--gut));
  background-color: var(--paper);
  background-image: linear-gradient(var(--sticker), var(--sticker));
  background-repeat: no-repeat; background-position: 1rem 0; background-size: .125rem 100%;
}
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--head); border-bottom: var(--hair) solid var(--rule); }
.menu-list { display: block; }
.menu-list a {
  display: flex; align-items: baseline; gap: .9rem; padding: .22em 0 .12em;
  border-bottom: var(--hair) solid var(--rule);
  font-family: var(--display); font-size: clamp(2.5rem, 12vw, 5rem); line-height: .95; letter-spacing: -.04em;
}
.menu-list a[aria-current="page"] { color: var(--pen); }
.menu-n { flex: none; min-width: 2.4rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink-soft); }
.menu-foot { display: flex; flex-direction: column; gap: .25rem; margin-top: auto; padding-top: 2rem; }
.menu-foot .link { display: inline-flex; align-items: center; min-height: 2.75rem; align-self: flex-start; }

/* ---- Chrome: footer ------------------------------------------------------------------ */
/* Footer on kraft, completely static: .foot, .foot-in, .foot-name, .foot-cols, .foot-col, .foot-links, .foot-btn, .foot-legal */
.foot {
  padding-left: var(--margin); background-color: var(--kraft);
  background-image: linear-gradient(var(--sticker), var(--sticker));
  background-repeat: no-repeat; background-position: var(--margin) 0; background-size: .125rem 100%;
}
.foot-in { padding: calc(var(--line) * 1) var(--gut) 2rem; }
.foot-name {
  font-family: var(--display); font-size: clamp(3rem, 13vw, 13rem); line-height: .86; letter-spacing: -.05em; text-transform: uppercase;
  padding-bottom: .06em; border-bottom: var(--hair) solid var(--ink);
}
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 2rem var(--gut); padding: 2rem 0 2.5rem; }
.foot-col { font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
.foot-col .t-note { margin-bottom: .6rem; }
.foot-col p + p { margin-top: .6rem; }
.foot-links a, .foot-btn {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: .875rem; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em;
}
.foot-links a:hover, .foot-btn:hover { color: var(--pen); text-decoration-color: currentColor; }
.foot-col .link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-legal { padding-top: 1.25rem; border-top: var(--hair) solid var(--ink); font-size: .75rem; letter-spacing: .04em; color: var(--ink-soft); }

/* ---- Consent banner --------------------------------------------------------------------- */
/* Consent note pinned bottom-right like a slip of paper, never covers the reading column: .consent, .consent-text, .consent-acts, .consent-btn */
.consent {
  position: fixed; z-index: 50; right: .75rem; bottom: .75rem; left: .75rem;
  max-width: 26rem; margin-left: auto; padding: 1rem 1.125rem 1.125rem;
  background: var(--paper-white); color: var(--ink); border: .125rem solid var(--ink);
  border-left: .375rem solid var(--sticker);
}
.consent-text { font-size: .8125rem; line-height: 1.55; }
.consent-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-top: .875rem; }
.consent-btn {
  min-height: 2.75rem; padding: .5rem .75rem; border: .125rem solid var(--ink); background: var(--paper-white);
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
}
.consent-btn:hover, .consent-btn:focus-visible { background: var(--ink); color: var(--paper); }

/* ---- Print and reduced motion -------------------------------------------------------------- */
@media print {
  .head, .menu, .consent, .skip { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
