/* Brass & Blade — design system.
   Charcoal rooms, muted brass, off-white type. Tall condensed caps (Teko) for
   headings, Fraunces italic for the quiet serif accents, Jost for reading.
   Every colour is a token on :root; components use var(--color-*) only. */

:root {
  --color-primary: #c9a45c;          /* brass */
  --color-primary-dark: #b39b62;     /* muted brass */
  --color-primary-light: #e0c487;
  --color-on-primary: #171614;
  --color-secondary: #f2ede3;        /* headings, off-white */
  --color-default: #cbc5ba;          /* body text */
  --color-muted: #8e887d;
  --color-bg: #1f1f1f;
  --color-surface: #2a2a2a;
  --color-surface-2: #323130;
  --color-ink: #151515;
  --color-line: #403c35;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-ok: #4caf7a;
  --color-bad: #e07a6a;

  --font-heading: 'Teko', 'Arial Narrow', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-default: 'Jost', system-ui, sans-serif;
  --font-primary: var(--font-default);

  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-default); font-size: 1rem; line-height: 1.65; font-weight: 400;
  color: var(--color-default); background: var(--color-bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--color-primary); color: var(--color-on-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 500; text-transform: uppercase;
  color: var(--color-secondary); line-height: .95; letter-spacing: .01em;
}
h1 { font-size: clamp(3.2rem, 8vw, 6.6rem); }
h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1; }
.hl { color: var(--color-primary); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.pad { padding: clamp(72px, 10vw, 128px) 0; }

/* eyebrow: small brass caps with a short rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-default); font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.eyebrow.center::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: 1.08rem; color: var(--color-default); max-width: 58ch; }
.head { margin-bottom: clamp(36px, 5vw, 60px); }
.head.center { text-align: center; display: grid; justify-items: center; }
.head.center .lead { margin-inline: auto; }
.head h2 { margin-bottom: .9rem; }

/* buttons: square, caps, brass */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.8rem; border: 1.5px solid var(--color-primary); border-radius: 0;
  background: var(--color-primary); color: var(--color-on-primary); cursor: pointer;
  font-family: var(--font-default); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--color-primary); }
.btn.ghost:hover { background: var(--color-primary); color: var(--color-on-primary); }
.btn.light { background: transparent; color: var(--color-secondary); border-color: color-mix(in srgb, var(--color-secondary) 45%, transparent); }
.btn.light:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn.small { min-height: 42px; padding: 0 1.2rem; font-size: .72rem; }
.btn.plain { background: transparent; color: var(--color-primary); }
.btn .knob { display: inline-flex; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--color-primary); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border: 1px solid var(--color-line); border-radius: 0;
  background: var(--color-ink); color: var(--color-secondary); font: 400 1rem var(--font-default);
  transition: border-color .2s ease, background .2s ease;
}
select { appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%), linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--color-surface); color: var(--color-secondary); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); }
input[type="date"] { color-scheme: dark; }
.form-bad { color: var(--color-bad); font-size: .92rem; }
.form-ok { display: flex; gap: .7rem; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--color-primary); color: var(--color-secondary); }
.form-ok svg { flex: none; width: 22px; height: 22px; color: var(--color-primary); }
.field-err { color: var(--color-bad); font-size: .82rem; margin-top: .3rem; }

/* tick list */
.tick-list { display: grid; gap: .55rem; }
.tick-list li { position: relative; padding-left: 1.6rem; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--color-primary); }

/* live open-now pill */
.now-pill { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--color-secondary); }
.now-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #d0655a; box-shadow: 0 0 0 4px rgba(208, 101, 90, .18); }
.now-pill.open .dot { background: #4fc483; box-shadow: 0 0 0 4px rgba(79, 196, 131, .18); animation: bb-pulse 2s infinite; }
@keyframes bb-pulse { 50% { box-shadow: 0 0 0 7px rgba(79, 196, 131, 0); } }

/* visually hidden, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* thin ornamental rule with a diamond */
.ornament { display: flex; align-items: center; gap: 12px; color: var(--color-primary); }
.ornament::before, .ornament::after { content: ''; width: 44px; height: 1px; background: currentColor; }
.ornament i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ---------------------------------------------------------------- Motion
   html.bb-motion is set by plugins/motion.client.ts; a section gets
   .bb-inview the first time it shows. Only inner [data-anim] elements move. */
.bb-motion [data-anim] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.1s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms); }
.bb-motion [data-anim="up"] { transform: translateY(28px); }
.bb-motion [data-anim="down"] { transform: translateY(-28px); }
.bb-motion [data-anim="left"] { transform: translateX(-36px); }
.bb-motion [data-anim="right"] { transform: translateX(36px); }
.bb-motion [data-anim="zoom"] { transform: scale(1.08); }
.bb-motion [data-anim="pop"] { transform: scale(.9); }
.bb-motion [data-anim="blur"] { filter: blur(10px); }
.bb-motion [data-anim="rise"] { transform: translateY(60%); clip-path: inset(0 0 100% 0); }
.bb-motion [data-anim="clip"] { clip-path: inset(0 100% 0 0); }
.bb-motion [data-anim="draw"] { transform: scaleX(0); transform-origin: left; }
.bb-motion .bb-inview [data-anim] { opacity: 1; transform: none; filter: none; }
.bb-motion .bb-inview [data-anim="rise"], .bb-motion .bb-inview [data-anim="clip"] { clip-path: inset(-10% -10% -10% -10%); }

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn { padding: 0 1.3rem; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
