/* What both brands share: reset, fonts, form, cookie notice, legal pages. Each brand's own look
   lives in its folder (qbv.css, ss.css) and sets the tokens below. No inline styles anywhere:
   the page policy forbids them. */

@font-face {
  font-family: 'Archivo';
  src: url('/shared/fonts/archivo-standard.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/shared/fonts/fraunces-full.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/shared/fonts/fraunces-full-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/shared/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Plex Mono';
  src: url('/shared/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --canvas: #f4f2ee;
  --surface: #fffdf9;
  --ink: #18191b;
  --muted: #5d6166;
  --rule: #dcd6cc;
  --accent: #1f5e55;
  --accent-ink: #ffffff;
  --danger: #a8321c;
  --font-body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
}

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

/* ---------- form ---------- */

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 600;
  font-size: 15px;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.form-error {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: var(--danger);
  font-weight: 600;
  font-size: 15px;
}

.form-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- FAQ ---------- */

.faq-list details {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 19px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

/* ---------- cookie notice ---------- */

.notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14.5px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
}

.notice p {
  margin: 0;
  flex: 1 1 240px;
}

.notice .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
}

.notice .btn--quiet {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.notice[hidden] {
  display: none;
}

/* ---------- legal, thank-you and 404 pages ---------- */

.simple-top {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.simple-top a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.prose {
  max-width: 68ch;
  padding: 48px 0 80px;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.prose h2 {
  font-size: 20px;
  margin: 30px 0 8px;
}

.prose p {
  color: var(--muted);
}

.center-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 0;
  text-align: center;
}

.center-page h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  margin: 16px 0;
}

.center-page p {
  max-width: 36ch;
  margin: 0 auto 12px;
  color: var(--muted);
}

.simple-foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.simple-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
