/* Base: reset, type, layout primitives, accessibility helpers. */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ink);
}
img, svg, video { max-width: 100%; height: auto; }
svg { display: block; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
  font-weight: 800;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); font-weight: 800; }
h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 600; }
small, .small { font-size: var(--fs-sm); }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }
:not(pre) > code {
  background: var(--sand);
  color: var(--ink);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
pre {
  margin: 0;
  background: var(--ink);
  color: var(--night-text);
  padding: var(--s-4);
  border-radius: var(--r-md);
  overflow-x: auto;
  line-height: 1.5;
  font-size: var(--fs-sm);
  tab-size: 2;
}
hr { border: 0; border-top: 1px solid var(--sand); margin: var(--s-6) 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--sand); vertical-align: top; }
th { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }

/* Focus: one amber ring with an ink halo so it reads on white, bright bands and night. */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(13, 21, 36, 0.55);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.wrap--narrow { max-width: calc(var(--maxw-narrow) + 32px); }
.band { padding-block: var(--s-8); }
.band--tight { padding-block: var(--s-7); }
.band--paper, .band--sand { background: var(--bg-alt); }
.band--paper + .band--paper, .band--sand + .band--sand { border-top: 1px solid var(--sand); }

/* Bright bands. Amber = "found"; blue = the shopper side. Cards inside keep their own light colors. */
.band--amber { background: var(--amber); color: var(--ink); }
.band--amber :is(h1, h2, h3, h4, strong, .lede, .muted) { color: var(--ink); }
.band--amber .eyebrow { color: var(--ink); }
.band--amber .eyebrow::before { background: var(--ink); box-shadow: none; }
.band--amber a:not(.btn) { color: var(--ink); }
.band--amber :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.6); }
.band--sky {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(20, 184, 166, 0.28), transparent 60%),
    var(--blue);
  color: #fff;
}
.band--sky :is(h1, h2, h3, h4, strong, .lede) { color: #fff; }
.band--sky .muted { color: var(--on-blue-muted); }
.band--sky .eyebrow { color: #fff; }
.band--sky a:not(.btn) { color: #fff; }
.band--sky .card { color: var(--slate); }
.band--sky .card :is(h2, h3, h4, strong) { color: var(--ink); }
.band--sky .card .muted { color: var(--slate-2); }
.band--sky .card a:not(.btn) { color: var(--ink); }
.band--night, .band--dusk {
  background: var(--ink);
  color: var(--night-text);
}
.band--dusk { background: var(--dusk); }
.band--night :is(h1, h2, h3, h4, strong), .band--dusk :is(h1, h2, h3, h4, strong) { color: #fff; }
.band--night a:not(.btn), .band--dusk a:not(.btn) { color: var(--amber-soft); }
.band--night .muted, .band--dusk .muted { color: var(--night-muted); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.grid { display: grid; gap: var(--s-5); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--side { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}

.section-head { max-width: 46rem; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0 0 var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 182, 39, 0.8);
}
.band--night .eyebrow, .band--dusk .eyebrow, .hero .eyebrow { color: var(--amber); }
.lede { font-size: var(--fs-lg); line-height: 1.5; color: var(--slate); max-width: 40rem; }
.band--night .lede, .band--dusk .lede { color: var(--night-text); }
.muted { color: var(--slate-2); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose :is(ul, ol) { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.prose li + li { margin-top: var(--s-2); }
.prose table { margin: var(--s-4) 0 var(--s-5); }

/* Inner-page title band */
.page-hero {
  background: var(--ink);
  color: var(--night-text);
  padding-block: var(--s-7) var(--s-7);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: var(--fs-2xl); max-width: 22ch; }
.page-hero .lede { color: var(--night-text); }
.page-hero a:not(.btn) { color: var(--amber-soft); }
.page-hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("/assets/img/stars.svg");
  background-size: 520px auto;
}
.page-hero > .wrap { position: relative; }
.crumbs { font-size: var(--fs-xs); margin-bottom: var(--s-4); color: var(--night-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4em; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4em; color: var(--night-muted); }
.crumbs a { color: var(--night-muted) !important; text-decoration: none; }
.crumbs a:hover { color: #fff !important; text-decoration: underline; }
.crumbs [aria-current] { color: var(--night-text); }

/* Awning edge: the scalloped trim that ends a night band. */
.awning-edge {
  height: 18px;
  background: url("/assets/img/awning.svg") repeat-x left top / 48px 18px;
  margin-top: -1px;
}
