/* ==========================================================================
   Two Sixes — design system
   Tokens, reset, typography, buttons, forms and utilities.
   Everything visual on this site is built from the custom properties below.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------- palette */
  --c-paper:        #faf5ea;
  --c-cream:        #f4ead6;
  --c-cream-deep:   #eadfc6;
  --c-sand:         #ddcaa8;
  --c-sand-deep:    #c9b28c;
  --c-wood:         #8a7355;
  --c-leather:      #6b4a2c;
  --c-leather-deep: #4a3220;
  --c-charcoal:     #2a231d;
  --c-ink:          #1d1a17;
  --c-red:          #a63a2e;
  --c-red-deep:     #7d2a21;
  --c-orange:       #c1592b;
  --c-gold:         #e0a544;
  --c-gold-deep:    #b57f2b;
  --c-turquoise:    #3e8a85;
  --c-turquoise-lt: #6fb5ae;
  --c-blue:         #1f3448;
  --c-blue-lt:      #2e4a5c;

  /* -------------------------------------------------------- semantic */
  --bg:             var(--c-paper);
  --bg-alt:         var(--c-cream);
  --bg-deep:        var(--c-cream-deep);
  --surface:        #fffdf7;
  --surface-sunk:   #f1e6d2;
  --text:           var(--c-ink);
  --text-soft:      #574a3c;
  --text-muted:     #6f6153;
  --text-invert:    #f7efe0;
  --text-invert-soft: rgba(247, 239, 224, 0.76);

  --border:         color-mix(in srgb, var(--c-ink) 14%, transparent);
  --border-strong:  color-mix(in srgb, var(--c-ink) 28%, transparent);
  --border-invert:  rgba(247, 239, 224, 0.24);

  --accent:         var(--c-red);
  --accent-hover:   var(--c-red-deep);
  --accent-soft:    color-mix(in srgb, var(--c-red) 12%, transparent);
  --focus-ring:     var(--c-blue);

  /* ---------------------------------------------------- typography */
  /* Local stacks only — no remote font requests anywhere on this site.
     Slab serifs read as Americana signage; the fallbacks stay respectable. */
  --font-display: "Rockwell", "Rockwell Nova", "Bookman Old Style", "Bookman",
                  "Superclarendon", "Copperplate", "Palatino Linotype", Palatino,
                  Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas,
               "SF Mono", Menlo, monospace;

  --fs-2xs:  0.6875rem;
  --fs-xs:   clamp(0.75rem, 0.73rem + 0.10vw, 0.8125rem);
  --fs-sm:   clamp(0.8125rem, 0.79rem + 0.14vw, 0.9rem);
  --fs-base: clamp(0.9375rem, 0.90rem + 0.20vw, 1.0625rem);
  --fs-lg:   clamp(1.0625rem, 1.01rem + 0.28vw, 1.1875rem);
  --fs-xl:   clamp(1.1875rem, 1.08rem + 0.52vw, 1.4375rem);
  --fs-2xl:  clamp(1.4375rem, 1.22rem + 1.05vw, 2.0625rem);
  --fs-3xl:  clamp(1.75rem, 1.34rem + 1.95vw, 2.875rem);
  --fs-4xl:  clamp(2.25rem, 1.55rem + 3.30vw, 4.25rem);
  --fs-5xl:  clamp(2.75rem, 1.45rem + 6.00vw, 6rem);

  --lh-tight: 1.06;
  --lh-snug:  1.22;
  --lh-base:  1.62;

  --ls-wide:   0.06em;
  --ls-wider:  0.13em;
  --ls-widest: 0.22em;

  /* -------------------------------------------------------- spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.375rem;
  --sp-6:  1.75rem;
  --sp-7:  2.25rem;
  --sp-8:  3rem;
  --sp-9:  4rem;
  --sp-10: 5.5rem;
  --sp-11: 7rem;
  --section-y: clamp(3.5rem, 7vw, 7rem);

  --shell-max: 78rem;
  --shell-narrow: 46rem;
  --shell-pad: clamp(1.125rem, 4vw, 2.75rem);

  /* --------------------------------------------------------- radii */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ------------------------------------------------------- shadows */
  --shadow-xs: 0 1px 2px rgba(29, 26, 23, 0.07);
  --shadow-sm: 0 2px 6px -2px rgba(29, 26, 23, 0.14);
  --shadow-md: 0 10px 26px -14px rgba(29, 26, 23, 0.42);
  --shadow-lg: 0 28px 60px -30px rgba(29, 26, 23, 0.55);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);

  /* -------------------------------------------------------- layers */
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 60;
  --z-toast: 90;

  /* -------------------------------------------------------- motion */
  --dur-fast: 130ms;
  --dur: 240ms;
  --dur-slow: 460ms;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ------------------------------------------------------ chrome */
  --header-h: 4rem;
}

@media (min-width: 60em) {
  :root { --header-h: 4.875rem; }
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  min-height: 100svh;
  /* `clip` keeps stray decorative art from creating a horizontal scrollbar
     without turning the body into a scroll container (which would break
     the sticky header and the sticky journey scene). */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; }

ul, ol { list-style: none; padding: 0; }

/* Components below set their own `display`, so `hidden` needs to win. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

h1, h2, h3, h4 { font-weight: 600; line-height: var(--lh-snug); text-wrap: balance; }
p { text-wrap: pretty; }

:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ==========================================================================
   Focus
   ========================================================================== */

:focus { outline: none; }

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

/* Dark surfaces get a light ring so it never disappears. */
.on-dark :focus-visible,
.site-footer :focus-visible,
.journey :focus-visible,
.hero :focus-visible {
  outline-color: var(--c-gold);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-ink);
  color: var(--text-invert);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-leather);
}

.eyebrow--gold { color: var(--c-gold); }

.lede {
  font-size: var(--fs-lg);
  color: var(--text-soft);
  max-width: 54ch;
}

.muted { color: var(--text-muted); }

.link {
  color: var(--c-leather);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--c-leather) 40%, transparent);
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-fast) var(--ease);
}
.link:hover { color: var(--c-red); text-decoration-color: currentColor; }
.link--danger { color: var(--c-red-deep); }
.link--danger:hover { color: var(--c-red); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--sunk { background: var(--surface-sunk); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.section__intro { max-width: 52ch; margin-top: var(--sp-2); color: var(--text-soft); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }

.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }

/* Small inset note used on dark panels. */
.note-on-dark {
  display: flex;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  background: rgba(247, 239, 224, 0.09);
  border-left: 3px solid var(--c-gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-xs);
  color: var(--text-invert-soft);
}
.note-on-dark .icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--c-gold); }

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

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--primary {
  --btn-bg: var(--c-red);
  --btn-fg: #fff6e9;
  --btn-border: var(--c-red-deep);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { --btn-bg: var(--c-red-deep); }

.btn--solid {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--text-invert);
  --btn-border: var(--c-ink);
}
.btn--solid:hover { --btn-bg: var(--c-leather-deep); --btn-border: var(--c-leather-deep); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
}
.btn--ghost:hover { --btn-bg: color-mix(in srgb, var(--c-ink) 6%, transparent); --btn-border: var(--c-ink); }

.btn--gold {
  --btn-bg: var(--c-gold);
  --btn-fg: var(--c-ink);
  --btn-border: var(--c-gold-deep);
}
.btn--gold:hover { --btn-bg: #eeb75c; }

.btn--on-dark {
  --btn-fg: var(--text-invert);
  --btn-border: var(--border-invert);
}
.btn--on-dark:hover { --btn-bg: rgba(247, 239, 224, 0.12); --btn-border: rgba(247, 239, 224, 0.5); }

.btn--sm { min-height: 2.375rem; padding: 0.45rem 0.9rem; font-size: var(--fs-xs); }
.btn--lg { min-height: 3.375rem; padding: 0.95rem 1.9rem; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.is-done {
  --btn-bg: var(--c-turquoise);
  --btn-fg: #fff8ea;
  --btn-border: var(--c-turquoise);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-sm);
  color: inherit;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.icon-btn .icon { width: 1.4rem; height: 1.4rem; }

/* ==========================================================================
   Tags, chips and badges
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.6em;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--pending {
  border-color: color-mix(in srgb, var(--c-gold-deep) 55%, transparent);
  background: color-mix(in srgb, var(--c-gold) 18%, transparent);
  color: #6d4c14;
}
.tag--draft {
  border-color: color-mix(in srgb, var(--c-red) 45%, transparent);
  background: color-mix(in srgb, var(--c-red) 10%, transparent);
  color: var(--c-red-deep);
}
.tag--info {
  border-color: color-mix(in srgb, var(--c-turquoise) 55%, transparent);
  background: color-mix(in srgb, var(--c-turquoise) 12%, transparent);
  color: #1f5f5b;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.375rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--c-leather); background: var(--bg-alt); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--text-invert);
}

/* ==========================================================================
   Notices
   ========================================================================== */

.notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c-gold-deep);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.notice .icon { margin-top: 0.15em; color: var(--c-gold-deep); }
.notice__title { display: block; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
.notice--draft { border-left-color: var(--c-red); }
.notice--draft .icon { color: var(--c-red); }
.notice--info { border-left-color: var(--c-turquoise); }
.notice--info .icon { color: #1f5f5b; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: block; margin-bottom: var(--sp-5); }

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field__optional {
  margin-left: 0.35rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.field__hint {
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.field__hint.is-warning { color: var(--c-red-deep); font-weight: 600; }

.input, .select, .textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 80%, transparent); }

.input:hover, .select:hover, .textarea:hover { border-color: var(--c-leather); }

.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-blue) 22%, transparent);
  outline: none;
}

.textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  padding-right: 2.5rem;
  /* Original inline chevron, encoded locally — no network request. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23574a3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  cursor: pointer;
}

.select--sm { min-height: 2.375rem; padding: 0.35rem 2.1rem 0.35rem 0.65rem; font-size: var(--fs-xs); background-size: 0.95rem; }

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--c-red); background: color-mix(in srgb, var(--c-red) 4%, var(--surface)); }

.field__error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-red-deep);
}
.field__error:empty { display: none; }
.field__error .icon { width: 1rem; height: 1rem; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--c-red);
}

.form-errors {
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  background: color-mix(in srgb, var(--c-red) 7%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--c-red) 40%, transparent);
  border-radius: var(--r-sm);
}
.form-errors__title { font-size: var(--fs-base); font-weight: 700; color: var(--c-red-deep); }
.form-errors ul { margin-top: 0.5rem; display: grid; gap: 0.3rem; }
.form-errors li { font-size: var(--fs-sm); }
.form-errors a { color: var(--c-red-deep); font-weight: 600; }

.fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-7); }
.fieldset__legend {
  display: block;
  width: 100%;
  padding: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.form-grid { display: grid; gap: 0 var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 40em) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field--full { grid-column: 1 / -1; }
}

/* ==========================================================================
   Quantity stepper
   ========================================================================== */

.qty {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  color: var(--text-soft);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.qty__btn:hover { background: var(--bg-alt); color: var(--text); }
.qty__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty__btn .icon { width: 1.05rem; height: 1.05rem; }

.qty__input {
  width: 3.25rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-inline: 1.5px solid var(--border);
  background: transparent;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qty--sm .qty__btn { width: 2.25rem; height: 2.25rem; }
.qty--sm .qty__input { width: 2.5rem; height: 2.25rem; font-size: var(--fs-sm); }

/* ==========================================================================
   Progressive enhancement
   JS-only controls stay hidden until the scripts confirm they work, so the
   page never shows a button that does nothing.
   ========================================================================== */

.no-js [data-js-only] { display: none !important; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .btn:active { transform: none; }
}
