:root {
  --ink: #14143a;
  --paper: #fbf8f3;
  --pink: #ff6fab;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --muted: #5c5e76;
  --line: #e7e1d6;
  --blush: #f9dfe3;
  --blush-soft: #fdf1f3;
  --cobalt: #1c22d8;
  --tomato: #d9262e;
  --butter: #ffe88f;
  --lilac: #dccff7;
  --sky: #c9e6f7;
  --peach: #ffd2b8;
  --sans: "Figtree", "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.site-head { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); width: 100%; padding-inline: 16px; }
.wordmark { display: block; line-height: 0; }
.wordmark img { width: auto; height: 30px; }
h1, h2 { font-family: var(--display); }
h1 { font-weight: 800 !important; letter-spacing: -0.03em !important; }
.price, .count, time { font-family: var(--mono); }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 10vw, 112px) 0 clamp(56px, 9vw, 104px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 10vw, 5.25rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.rotator {
  display: block;
  width: fit-content;
  margin: 0.1em auto 0;
  padding: 0 0.18em 0.06em;
  background: var(--blush);
  white-space: nowrap;
  transition: opacity 240ms ease;
}
.rotator.out { opacity: 0; }
.lede { margin: 24px 0 28px; max-width: 36ch; font-size: 1.2rem; line-height: 1.4; }
.primary {
  padding: 12px 30px;
  background: var(--blush);
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.primary:hover { background: var(--blush-soft); }

.section { padding-bottom: 56px; }
.section h2 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; }

.gift-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blush-soft); }
.gift h3 { margin: 10px 0 0; font-size: 0.95rem; line-height: 1.3; font-weight: 400; }
.price { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.placeholder { display: grid; place-items: center; height: 100%; font-size: 3.2rem; }
.sample { position: absolute; left: 0; top: 0; padding: 2px 8px; background: var(--blush); font-size: 0.75rem; }

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.categories li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; }
.category:hover { background: var(--blush-soft); }
.tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--blush-soft); font-size: 1.4rem; }
.category:hover .tile { background: var(--blush); }
.tile.large { width: 64px; height: 64px; font-size: 2rem; }
.category-text { display: flex; flex-direction: column; min-width: 0; }
.category-text strong { font-weight: 400; line-height: 1.25; }
.category-text small { color: var(--muted); font-size: 0.875rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; gap: 8px; padding: 9px 16px; border: 1px solid var(--ink); }
.chip:hover { background: var(--blush); }

.back { display: inline-block; margin-top: 24px; text-decoration: underline; text-underline-offset: 3px; }
.page-title { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.page-title h1 { margin: 0; max-width: 24ch; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; }
.disclosure { max-width: 62ch; margin: 16px 0 0; color: var(--muted); font-size: 0.9rem; }

.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 12px; margin: 32px 0 64px; }
.note { margin: 8px 0 0; font-size: 0.95rem; }
.muted { color: var(--muted); }

.site-foot { padding: 8px 0 40px; }

.announce { display: block; padding: 8px 16px; background: var(--cobalt); color: #fff; text-align: center; font-size: 0.9rem; }
.announce:hover { text-decoration: underline; text-underline-offset: 3px; }

.primary { background: var(--butter); }
.primary:hover { background: var(--blush); }
.rotator { background: var(--rotator-bg, var(--blush)); color: var(--rotator-ink, var(--ink)); transition: opacity 240ms ease, background-color 240ms ease; }
.sample { background: var(--cobalt); color: #fff; }

.gift:nth-child(5n + 1) .gift-image { background: var(--blush); }
.gift:nth-child(5n + 2) .gift-image { background: var(--sky); }
.gift:nth-child(5n + 3) .gift-image { background: var(--butter); }
.gift:nth-child(5n + 4) .gift-image { background: var(--lilac); }
.gift:nth-child(5n) .gift-image { background: var(--peach); }

#browse .section:nth-of-type(1) { --accent: var(--blush); }
#browse .section:nth-of-type(2) { --accent: var(--sky); }
#browse .section:nth-of-type(3) { --accent: var(--butter); }
#browse .section:nth-of-type(4) { --accent: var(--lilac); }
#browse .section:nth-of-type(5) { --accent: var(--peach); }
.tile, .category:hover .tile { background: var(--accent, var(--blush)); }
.category:hover { background: var(--accent); }
.category:hover .tile { background: #fff; }
.chip { background: var(--accent); border-color: transparent; }
.chips li:nth-child(1) .chip { background: var(--tomato); color: #fff; }
.chips li:nth-child(2) .chip { background: var(--cobalt); color: #fff; }
.chips li:nth-child(3) .chip { background: var(--lilac); }
.chips li .chip:hover { outline: 2px solid var(--ink); }

.page-lede { margin: 14px 0 0; font-size: 1.15rem; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 28px 0 56px; }
@media (min-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .calc-result { position: sticky; top: 16px; }
}
.calc-form { display: grid; gap: 24px; }
.calc-form fieldset { margin: 0; padding: 0; border: 0; }
.calc-form legend, .field > label { display: block; padding: 0; margin-bottom: 10px; font-size: 1.05rem; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts span { display: block; padding: 8px 14px; border: 1px solid var(--ink); }
.opts input:hover + span { background: var(--blush-soft); }
.opts input:checked + span { background: var(--butter); box-shadow: 2px 2px 0 var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.calc-form select, .calc-form input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0; background: #fff; font: inherit; }
.slider { display: flex; align-items: center; gap: 14px; }
.slider input { flex: 1; min-width: 0; accent-color: var(--cobalt); }
.slider output { min-width: 72px; text-align: right; }
.checks { display: grid; gap: 12px; }
.checks > label { display: flex; align-items: flex-start; gap: 10px; }
.checks > label input { margin-top: 5px; accent-color: var(--cobalt); }
.panel { display: grid; gap: 12px; padding: 14px; background: var(--blush-soft); }
.panel[hidden] { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error:empty { display: none; }
.field-error { margin: 0; color: var(--tomato); }

.calc-result { padding: 24px; background: var(--cobalt); color: #fff; }
.calc-result p { margin: 0; }
.calc-result .amount { font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1.1; letter-spacing: -0.04em; }
.calc-result .status { margin-top: 8px; }
.steps { margin: 18px 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.35); }
.steps li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / 0.35); font-size: 0.95rem; }
.steps strong { flex: none; font-weight: 500; }
.result-note { margin-bottom: 12px !important; font-size: 0.95rem; }
.result-cta { display: inline-block; margin-top: 4px; padding: 10px 20px; background: var(--butter); color: var(--ink); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.result-cta:hover { background: var(--blush); }
.wedding-gifts h2 { margin: 0; font-size: 1.9rem; font-weight: 400; letter-spacing: -0.02em; }
.gift[hidden] { display: none; }
.gift-image img { object-fit: contain; padding: 9%; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.16)); }

@media (prefers-reduced-motion: reduce) {
  .rotator { transition: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-head { gap: 16px; justify-content: space-between; }
.head-search input, .search-form input {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.head-search { flex: 0 1 260px; min-width: 0; }
.head-search input { padding: 7px 12px; font-size: 0.95rem; }
.head-search input:focus-visible, .search-form input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.search-form { margin-top: 32px; }
.search-label { display: block; margin-bottom: 12px; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
.search-form input { padding: 14px 16px; font-size: 1.15rem; box-shadow: 3px 3px 0 var(--ink); }
.search-status { margin: 18px 0 0; color: var(--muted); }
.search-status a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.search-pages { margin-top: 16px; }
.search-pages[hidden], .search-pages li[hidden] { display: none; }
.search-pages li .chip, .search-pages li:nth-child(n) .chip { background: var(--butter); color: var(--ink); }
#search-results { margin-top: 24px; }

/* Phones see two gifts across, like any shop, instead of one photo per screen. */
@media (max-width: 559px) {
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .gift h3 { font-size: 0.875rem; }
  .price { font-size: 0.85rem; }
}

/* Gift quiz: one question per screen, big answers, the site's ink-and-butter button style. */
.quiz { padding-bottom: 32px; }
.quiz-intro { display: flex; flex-direction: column; align-items: flex-start; max-width: 40rem; padding: clamp(40px, 8vw, 88px) 0; }
.quiz-intro h1, .quiz-question, .quiz-results-head h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; }
.quiz-intro .lede { margin: 18px 0 28px; }
.quiz-step { max-width: 44rem; padding: 28px 0 40px; }
.quiz-progress { height: 6px; background: var(--blush-soft); }
.quiz-progress span { display: block; height: 100%; background: var(--cobalt); transition: width 240ms ease; }
.quiz-count { margin: 12px 0 18px; color: var(--muted); font-size: 0.9rem; }
.quiz-question:focus { outline: none; }
.quiz-help { margin: 10px 0 0; color: var(--muted); }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 24px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.quiz-option span { flex: none; font-size: 1.3rem; }
.quiz-option:hover { background: var(--blush-soft); }
.quiz-option[aria-pressed="true"] { background: var(--butter); box-shadow: 3px 3px 0 var(--ink); }
.quiz-option:focus-visible, .quiz-link:focus-visible, .primary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
button.primary { font: inherit; color: var(--ink); cursor: pointer; border-radius: 0; }
.quiz-link { padding: 8px 0; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz-results-head { padding-top: 32px; }
.quiz-results-head h1:focus { outline: none; }
.quiz-summary { margin: 12px 0 0; max-width: 62ch; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.quiz-why { margin: 6px 0 0; color: var(--muted); font-size: 0.8rem; }
.quiz-more-wrap { display: flex; justify-content: center; margin: 0 0 48px; }
.quiz-more-wrap [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .quiz-progress span { transition: none; } }
/* On pick-several questions the Next button stays in reach at the bottom of the screen. */
.quiz-options.multi + .quiz-nav { position: sticky; bottom: 0; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
button.primary:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }

/* Header menu: inline links on wide screens, a menu button on phones. */
.head-nav { display: none; gap: 20px; margin-left: 28px; margin-right: auto; font-size: 0.95rem; }
.head-nav a[aria-current="page"], .head-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.head-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.head-menu { position: relative; order: 3; }
.head-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.head-menu summary::-webkit-details-marker { display: none; }
.head-menu summary span, .head-menu summary span::before, .head-menu summary span::after { display: block; width: 20px; height: 2px; background: var(--ink); content: ""; position: relative; }
.head-menu summary span::before { position: absolute; top: -6px; }
.head-menu summary span::after { position: absolute; top: 6px; }
.head-menu[open] summary span { background: transparent; }
.head-menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.head-menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.head-menu summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.head-menu nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; display: grid; min-width: 230px; background: #fff; border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.head-menu nav a { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.head-menu nav a:last-child { border-bottom: 0; }
.head-menu nav a:hover { background: var(--blush-soft); }
.site-head { position: relative; }
@media (min-width: 900px) {
  .head-nav { display: flex; }
  .head-menu { display: none; }
}
@media (max-width: 899px) {
  .site-head { gap: 10px; }
  .head-search { flex: 1 1 auto; }
}

/* Sale calendar */
.sales-head { padding-top: 32px; }
.sales-head h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; }
.sales-layout { display: grid; gap: 28px; margin: 28px 0 48px; }
@media (min-width: 900px) {
  .sales-layout { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); align-items: start; }
  .cal { position: sticky; top: 16px; }
}
.cal { border: 1px solid var(--ink); padding: 14px; box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-bar h2 { margin: 0; font-size: 1.15rem; font-weight: 500; }
.cal-step { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.cal-step:disabled { opacity: 0.25; cursor: default; }
.cal-step:focus-visible, .cal-day:focus-visible, .sale-code:focus-visible, .sale-link:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week span { text-align: center; font-size: 0.8rem; color: var(--muted); padding-bottom: 4px; }
.cal-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  aspect-ratio: 1; min-height: 44px; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--butter) calc(var(--heat, 0) * 100%), #fff);
}
.cal-day:disabled { color: #b9b3b5; cursor: default; background: #fff; }
.cal-num { font-size: 0.95rem; line-height: 1; }
.cal-n { font-size: 0.68rem; line-height: 1; color: var(--muted); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--ink); }
.cal-day[aria-pressed="true"] { background: var(--cobalt); color: #fff; }
.cal-day[aria-pressed="true"] .cal-n { color: #fff; }
.day h2 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; }
.day-count { margin: 6px 0 0; color: var(--muted); }
.sales { display: grid; gap: 10px; margin-top: 16px; }
.sale[hidden] { display: none; }
.sale { display: flex; flex-wrap: wrap; align-items: stretch; border: 1px solid var(--line); background: #fff; }
.sale-link { flex: 1 1 260px; display: grid; gap: 3px; padding: 14px 16px; min-width: 0; }
.sale-link:hover { background: var(--blush-soft); }
.sale-brand { font-size: 1.1rem; font-weight: 500; }
.sale-title { color: var(--muted); overflow-wrap: anywhere; }
.sale-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 0.9rem; }
.sale-off { padding: 1px 8px; background: var(--butter); }
.sale-dates { color: var(--muted); }
.sale.ends-today .sale-dates::after { content: " · ends today"; color: var(--tomato); }
.sale.starts-today .sale-dates::after { content: " · starts today"; color: var(--cobalt); }
.sale-code { flex: 0 0 auto; align-self: center; margin: 0 14px 14px 16px; padding: 8px 12px; border: 1px dashed var(--ink); background: #fff; font: inherit; font-size: 0.9rem; cursor: pointer; color: var(--ink); }
.sale-code span { color: var(--muted); margin-right: 4px; }
.sale-code.copied { background: var(--butter); border-style: solid; }
@media (min-width: 560px) { .sale-code { margin: 14px 16px 14px 0; } }
.day-empty { margin-top: 16px; padding: 16px; background: var(--blush-soft); }
/* On narrow screens the month stays short, so the day's sales are right below it. */
@media (max-width: 899px) {
  .cal-day { aspect-ratio: auto; height: 48px; }
}

/* Sale timeline: one row per sale, bars across the days it runs. */
.sales-section { margin: 32px 0 0; font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; }
.sales-head + .sales-section { margin-top: 28px; }
.sales-layout { margin-top: 16px; }
.tl-wrap { margin: 8px 0 48px; }
.tl-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.tl-lede { margin: 6px 0 0; color: var(--muted); }
.tl-filter { display: flex; border: 1px solid var(--ink); }
.tl-filter button { min-height: 40px; padding: 0 14px; border: 0; border-left: 1px solid var(--ink); background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.tl-filter button:first-child { border-left: 0; }
.tl-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tl-filter button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.tl-legend { display: flex; align-items: center; gap: 6px 10px; margin: 14px 0 10px; font-size: 0.9rem; color: var(--muted); }
.tl-legend .key { display: inline-block; width: 22px; height: 10px; margin-left: 8px; }
.tl-legend .key:first-child { margin-left: 0; }
.key.now { background: var(--cobalt); }
.key.soon { background: var(--butter); box-shadow: inset 0 0 0 1px var(--ink); }

.tl {
  --day: 30px; --name: 190px; --row: 34px;
  position: relative; overflow: auto; max-height: 78vh;
  border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #fff;
  overscroll-behavior: contain;
}
@media (max-width: 599px) { .tl { --day: 26px; --name: 118px; --row: 32px; max-height: 72vh; } }
.tl-head, .tl-row { display: grid; grid-template-columns: var(--name) calc(var(--days) * var(--day)); }
.tl-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--ink); }
.tl-label { position: sticky; left: 0; z-index: 4; display: flex; align-items: flex-end; padding: 0 10px 6px; background: #fff; border-right: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.tl-scale { position: relative; display: grid; grid-template-columns: repeat(var(--days), var(--day)); padding-top: 20px; }
.tl-day { position: relative; padding: 2px 0 6px; text-align: center; font-size: 0.75rem; color: var(--muted); }
.tl-day.wknd { background: var(--blush-soft); }
.tl-day.is-today { color: #fff; background: var(--tomato); font-weight: 500; }
.tl-month { position: absolute; left: 4px; top: -18px; font-weight: 500; color: var(--ink); white-space: nowrap; font-size: 0.8rem; }

.tl-rows { margin: 0; padding: 0; list-style: none; }
.tl-row[hidden] { display: none; }
.tl-row { height: var(--row); border-bottom: 1px solid var(--line); }
.tl-row:hover { background: var(--blush-soft); }
.tl-name {
  position: sticky; left: 0; z-index: 2; display: flex; align-items: center; padding: 0 10px;
  background: inherit; background-color: #fff; border-right: 1px solid var(--line);
  font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-row:hover .tl-name { background-color: var(--blush-soft); text-decoration: underline; text-underline-offset: 3px; }
/* Weekend columns and the today line run down the whole track. */
.tl-track {
  position: relative;
  background:
    linear-gradient(var(--tomato), var(--tomato)) calc(var(--today) * var(--day) + var(--day) / 2 - 1px) 0 / 2px 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(var(--day) - 1px), var(--line) calc(var(--day) - 1px) var(--day));
}
.tl-bar {
  position: absolute; top: 5px; bottom: 5px;
  left: calc(var(--left) * var(--day) + 2px); width: calc(var(--width) * var(--day) - 4px);
  display: flex; align-items: center; min-width: 8px; padding: 0 8px; overflow: hidden;
  font-size: 0.78rem; white-space: nowrap;
}
.tl-bar span { overflow: hidden; text-overflow: ellipsis; }
.tl-bar.now { background: var(--cobalt); color: #fff; }
.tl-bar.soon { background: var(--butter); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tl-bar.open-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.tl-bar:hover { filter: brightness(1.08); outline: 2px solid var(--ink); outline-offset: 1px; }
.tl-bar:focus-visible, .tl-name:focus-visible { outline: 2px solid var(--tomato); outline-offset: 1px; }

/* The big month calendar: full width, each day lists the sales that start then. */
.sales-layout.big { grid-template-columns: minmax(0, 1fr); }
.sales-layout.big .cal { position: static; padding: 18px; }
.sales-layout.big .cal-bar h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 400; letter-spacing: -0.02em; }
.sales-layout.big .cal-week span { font-size: 0.85rem; text-align: left; padding: 0 8px 6px; }
.sales-layout.big .cal-week, .sales-layout.big .cal-grid { gap: 6px; }
.sales-layout.big .cal-day {
  aspect-ratio: auto; height: auto; min-height: 132px; padding: 8px; align-items: stretch; justify-content: flex-start; text-align: left; gap: 4px;
  background: color-mix(in srgb, var(--butter) calc(var(--heat, 0) * 55%), #fff);
  border: 1px solid var(--line);
}
.sales-layout.big .cal-day:not(:disabled):hover { border-color: var(--ink); }
.sales-layout.big .cal-num { font-size: 1.05rem; font-weight: 500; }
.sales-layout.big .cal-n { font-size: 0.75rem; }
.cal-list { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip { display: block; padding: 2px 6px; font-size: 0.75rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip b { font-weight: 500; }
.cal-chip.start { background: var(--cobalt); color: #fff; }
.cal-chip.end { background: #fff; color: var(--tomato); box-shadow: inset 0 0 0 1px var(--tomato); }
.cal-more { font-size: 0.72rem; color: var(--muted); padding-left: 2px; }
.cal-dot { display: none; }
.sales-layout.big .cal-day.is-today { box-shadow: inset 0 0 0 2px var(--tomato); }
.sales-layout.big .cal-day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sales-layout.big .cal-day[aria-pressed="true"] .cal-n, .sales-layout.big .cal-day[aria-pressed="true"] .cal-more { color: #e9e4e5; }
.sales-layout.big .cal-day[aria-pressed="true"] .cal-chip.end { background: transparent; color: #ffb3b6; box-shadow: inset 0 0 0 1px #ffb3b6; }
/* Phones: the squares are too small for names, so a dot marks days when sales start. */
@media (max-width: 699px) {
  .sales-layout.big .cal { padding: 10px; }
  .sales-layout.big .cal-week, .sales-layout.big .cal-grid { gap: 3px; }
  .sales-layout.big .cal-week span { text-align: center; padding: 0 0 4px; }
  .sales-layout.big .cal-day { min-height: 62px; padding: 5px 2px; align-items: center; text-align: center; }
  .sales-layout.big .cal-list { display: none; }
  .sales-layout.big .cal-n { font-size: 0.68rem; }
  .cal-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
  .sales-layout.big .cal-day[aria-pressed="true"] .cal-dot { background: #fff; }
}

/* Brand filter on the sale calendar */
.brand-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.bf-menu { position: relative; }
.bf-button { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: #fff; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.bf-button::-webkit-details-marker { display: none; }
.bf-button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.bf-menu[open] .bf-button { background: var(--butter); }
.bf-button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.bf-count { color: var(--muted); }
.bf-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, calc(100vw - 32px)); padding: 10px; background: #fff; border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.bf-panel input[type="search"] { width: 100%; padding: 9px 10px; border: 1px solid var(--ink); border-radius: 0; font: inherit; -webkit-appearance: none; appearance: none; }
.bf-panel input[type="search"]:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.bf-list { max-height: 320px; overflow: auto; margin-top: 8px; }
.bf-list li[hidden] { display: none; }
.bf-list label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px; cursor: pointer; }
.bf-list label:hover { background: var(--blush-soft); }
.bf-list input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; background: var(--cobalt); color: #fff; font: inherit; font-size: 0.9rem; cursor: pointer; }
.bf-chip::after { content: "\00d7"; font-size: 1.1rem; line-height: 1; }
.bf-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.catalog-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 24px 0 12px; }
.catalog-controls label { display: grid; gap: 5px; flex: 1 1 180px; font-size: .9rem; min-width: 0; }
.catalog-controls select, .catalog-controls button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; width: 100%; }
.catalog-controls button { width: auto; cursor: pointer; }
.catalog-controls :focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.catalog-count { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .9rem; }
.gift.catalog-excluded { display: none !important; }
@media (max-width: 540px) { .catalog-controls label { flex-basis: calc(50% - 6px); } }
.catalog-controls input, .sale-sort select { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; min-width: 0; }
.sale-sort { display: flex; align-items: center; gap: 12px; margin-top: 20px; }

/* Filters live in a drawer that slides in from the left. */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 16px; }
.filter-bar .catalog-count { flex-basis: auto; }
.filter-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 600 0.95rem var(--sans); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.filter-open:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.filter-open:focus-visible, .filter-drawer :focus-visible, .catalog-empty button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.filter-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cobalt); color: #fff; font: 500 0.75rem var(--mono); }
.filter-badge[hidden] { display: none; }
.filter-drawer { position: fixed; inset: 0 auto 0 0; width: min(380px, 88vw); height: 100%; max-height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-right: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
.filter-drawer[open] { animation: drawer-in 240ms cubic-bezier(.2,.8,.2,1); }
.filter-drawer::backdrop { background: rgba(20,20,58,.45); }
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer-form { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.drawer-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.drawer-close:hover { background: var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.pill-set { margin: 0; padding: 16px 0 4px; border: 0; }
.pill-set legend, .drawer-field { padding: 0; font: 700 0.875rem/1.3 var(--sans); }
.pill-set legend { margin-bottom: 10px; }
.pill { display: inline-block; margin: 0 6px 8px 0; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: 600 0.9rem var(--sans); cursor: pointer; transition: all 120ms cubic-bezier(.2,.8,.2,1); }
.pill span:hover { background: #eef0ff; }
.pill input:checked + span { border-color: var(--ink); background: #eef0ff; box-shadow: 3px 3px 0 var(--cobalt); transform: translate(-1px, -1px); }
.pill input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.drawer-field { display: grid; gap: 8px; margin-top: 16px; }
.drawer-field select { appearance: none; height: 48px; padding: 0 40px 0 14px; border: 1.5px solid var(--line-strong, #d3cbbd); border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235c5e76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: 500 0.95rem var(--sans); }
.drawer-field select:focus-visible { outline: none; box-shadow: 0 0 0 3px #c7cbff; border-color: var(--cobalt); }
.drawer-foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer-foot button { min-height: 48px; border-radius: 999px; font: 600 0.95rem var(--sans); cursor: pointer; }
.drawer-clear { padding: 0 18px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.drawer-done { flex: 1; border: 0; background: var(--cobalt); color: #fff; }
.drawer-done:hover { background: #151ab0; }
.catalog-empty { display: grid; justify-items: center; gap: 12px; margin: 16px 0 48px; padding: 40px 20px; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; text-align: center; }
.catalog-empty[hidden] { display: none; }
.catalog-empty p { margin: 0; max-width: 40ch; }
.catalog-empty button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--cobalt); color: #fff; font: 600 0.95rem var(--sans); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .filter-drawer[open] { animation: none; } }

/* Home intro: a cobalt "selected frame" rolls through words, lands on the logo, then shrinks into the header logo. Once per session; logic in intro.js. */
.intro { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.intro[hidden] { display: none; }
.intro-frame { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; display: grid; place-items: center; background: var(--cobalt); outline: 2px solid var(--cobalt); outline-offset: 6px; }
.ih { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--cobalt); border-radius: 2px; }
.ih.tl { top: 12px; left: 12px; } .ih.tr { top: 12px; right: 12px; } .ih.bl { bottom: 12px; left: 12px; } .ih.br { bottom: 12px; right: 12px; }
.intro-word { grid-area: 1 / 1; display: flex; color: #fff; font: 800 clamp(2.6rem, 13vw, 9rem)/1 var(--display); letter-spacing: -0.04em; }
.intro-letter { display: inline-block; height: 1em; overflow: hidden; }
.intro-letter span { display: block; }
.intro-last { color: var(--pink); }
.intro-letter svg { display: block; width: .82em; height: 1em; }
.intro-logo { grid-area: 1 / 1; width: min(64vw, 380px); height: auto; opacity: 0; }

/* Small calendar beside the list: day squares show the date and count only. */
.sales-layout:not(.big) .cal-list { display: none; }
.sale-view { display: inline-flex; border: 1px solid var(--ink); margin: 12px 0 0; }
.sale-view button { min-height: 40px; padding: 0 14px; border: 0; border-left: 1px solid var(--ink); background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.sale-view button:first-child { border-left: 0; }
.sale-view button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sale-view button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
