/* ===========================================================================
   The customer catalog. The ressa design system, applied.

   Every value here comes from that system. Two departures, both deliberate:

   1. NO DARK MODE. The seller page has one, as a written exception, because it
      shows no product photography. This is the shop register, where the system
      is strictest, and the rule is that the page is warm ivory and never dark.
      Do not add a prefers-color-scheme block to this file.

   2. NO FONT FILES. The system calls for Fraunces and Jost, self hosted, the
      three families under 100KB in total. This project holds no font files, so
      the metric-matched fallbacks the system itself names are used. Nothing is
      fetched from Google or anywhere else: a shopper's address is not ours to
      hand to a third party, and a page that loads nothing cannot be changed
      under us.

   Radius is 0 and elevation is 0 throughout. No box-shadow ships. Depth comes
   from borders and panel colour.
   =========================================================================== */

:root {
  /* grounds */
  --ivory-100: #FBF6EC;
  --ivory-200: #F3ECDD;
  --ink-900:   #141414;
  --ink-600:   #4A453C;

  /* accents */
  --marigold-400: #F2A93B;   /* ON INK ONLY. One role on this page: the tag. */
  --ochre-700:    #9A5B00;

  --page:      var(--ivory-100);
  --panel:     var(--ivory-200);
  --text:      var(--ink-900);
  --text-soft: var(--ink-600);
  --accent:    var(--ochre-700);
  --focus:     var(--ochre-700);
  --rule:      rgba(20, 20, 20, 0.18);   /* a tint of ink, not a new colour */

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans:  "Jost", "Century Gothic", system-ui, -apple-system, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --gutter: clamp(16px, 4vw, 40px);

  --radius-0: 0;
  --radius-focus: 1px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.pane { max-width: 680px; margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-8); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ type */

.eyebrow {
  display: block;
  font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--space-3);
}

h1 {
  font-family: var(--font-serif);
  font-weight: 450; font-size: 1.5rem; line-height: 1.2;
  margin: 0 0 var(--space-4);
}

p { margin: 0 0 var(--space-4); }
.soft { color: var(--text-soft); font-size: 0.92rem; line-height: 1.55; }

/* The sentence about the phone number. Panel ground, ochre rule, so it reads
   as something said deliberately rather than as fine print. */
.about-number {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: var(--space-4);
  margin: 0 0 var(--space-5);
  font-size: 0.95rem; line-height: 1.55;
}

/* --------------------------------------------------------------- controls */

label.field-label {
  display: block;
  font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.field { margin-bottom: var(--space-4); }

input[type="text"],
input[type="tel"] {
  width: 100%;
  font-family: var(--font-sans); font-size: 1rem; color: var(--text);
  background: var(--page);
  border: 1px solid var(--ink-900);
  border-radius: var(--radius-0);
  padding: 13px var(--space-3);
  min-height: 44px;
}
input::placeholder { color: var(--text-soft); opacity: 1; }

/* The code box. Wide spacing because six digits read as six digits, and a
   numeric keypad on a phone because typing letters here is never right. */
input.code {
  font-size: 1.5rem; letter-spacing: 0.4em; text-align: center;
  font-variant-numeric: tabular-nums;
  padding: var(--space-3);
}

.btn {
  display: inline-block; width: 100%;
  border: 1px solid var(--ink-900);
  background: var(--ink-900); color: var(--ivory-100);
  font-family: var(--font-sans); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase; line-height: 1;
  padding: 15px var(--space-5);
  border-radius: var(--radius-0);
  min-height: 44px; cursor: pointer;
  transition: background 160ms ease, color 160ms ease;   /* SHOP */
}
.btn:hover { background: transparent; color: var(--ink-900); }
.btn:disabled { border-color: var(--rule); background: var(--panel); color: var(--text-soft); cursor: default; }

.btn-quiet {
  width: auto; background: transparent; color: var(--ink-900);
  border: 0; padding: var(--space-3) 0;
  font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 4px; cursor: pointer; min-height: 44px;
}

/* The consent box. Starts unticked, and entry does not depend on it. */
.consent {
  display: flex; gap: var(--space-3); align-items: flex-start;
  margin: var(--space-5) 0;
}
.consent input {
  width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto;
  accent-color: var(--ochre-700);
}
.consent label { font-size: 0.92rem; line-height: 1.55; color: var(--text-soft); }

/* There is no alarm colour in this system. A problem is carried by words,
   position and the ochre marker, never by red. */
.message {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  font-size: 0.92rem; line-height: 1.55;
}

/* ---------------------------------------------------------------- filters */

.filters { margin: 0 0 var(--space-5); }
.filter-row { margin-bottom: var(--space-2); }
.filter-row:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  border: 1px solid var(--rule); background: transparent; color: var(--text);
  font-family: var(--font-sans); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px var(--space-3);
  margin: 0 var(--space-2) var(--space-2) 0;
  border-radius: var(--radius-0); cursor: pointer; min-height: 40px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
/* The border alone measures under 3:1, and a hairline may never be the only
   thing identifying a state. So the chosen one inverts to full ink. */
.pill[aria-pressed="true"] {
  border-color: var(--ink-900); background: var(--ink-900); color: var(--ivory-100);
}

.count {
  font-size: 0.83rem; color: var(--text-soft);
  margin: 0 0 var(--space-4);
}

/* ------------------------------------------------------------------ list */

.item { border-bottom: 1px solid var(--rule); padding: var(--space-4) 0; }
.item:last-child { border-bottom: 0; }

.item-title {
  font-family: var(--font-serif); font-weight: 450;
  font-size: 1.08rem; line-height: 1.25;
  margin: 0 0 var(--space-1);
}
.item-facts { font-size: 0.83rem; color: var(--text-soft); margin: 0 0 var(--space-2); }
.item-desc  { font-size: 0.92rem; color: var(--text-soft); margin: 0 0 var(--space-2); }
.item-price {
  font-weight: 500; font-size: 0.95rem; font-variant-numeric: tabular-nums;
  margin: 0;
}

/* The one marigold on this page: ink on marigold, 9.22:1. Marigold anywhere
   else, on any light ground, is a release blocker. */
.tag {
  display: inline-block;
  background: var(--marigold-400); color: var(--ink-900);
  font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 8px;
  margin-left: var(--space-2);
}

.empty {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.02rem; line-height: 1.4; color: var(--text-soft);
  padding: var(--space-6) 0;
}

footer {
  margin-top: var(--space-8); padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-size: 0.83rem; color: var(--text-soft);
}

/* ----------------------------------------------------------------- focus */

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-focus);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
