/* Climbable website: shared styles for index.html and catalogue.html
   One dark theme, locked. Product photography sits on a black plate. */

:root {
  --bg: #121416;
  --bg-2: #181b1e;
  --bg-3: #1f2326;
  --plate: #000000;
  --ink: #ecebe6;
  --ink-2: #b3b5b0;
  --ink-3: #8c8f8b;
  --rule: #2b2f33;
  --rule-2: #3a3f44;
  --accent: #4f8bff;
  --accent-2: #74a3ff;
  --on-accent: #07142e;
  --danger: #f08a6d;
  --ok: #9fd39a;
  --display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px;
  --max: 1280px;
  --nav-h: 72px;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  --scrim: rgba(0,0,0,.6);
  color-scheme: dark;
}

/* Light theme: same structure, inverted stock. Chosen with the nav toggle, remembered in localStorage. */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #f3f2ee;
  --plate: #ffffff;
  --ink: #17191b;
  --ink-2: #4b4e4c;
  --ink-3: #66695f;
  --rule: #e2e0da;
  --rule-2: #cfcdc6;
  --accent: #1f5fd6;
  --accent-2: #2f6fe6;
  --on-accent: #ffffff;
  --danger: #c0442b;
  --ok: #3f8a3a;
  --shadow: 0 18px 40px rgba(20,18,10,.16);
  --shadow-lg: 0 30px 80px rgba(20,18,10,.22);
  --scrim: rgba(20,18,10,.4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot: humans never see it */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "kern" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 4rem, var(--max)); } }

/* Type scale */
.t-display { font-size: clamp(38px, 5.2vw, 64px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.0; }
.t-h2 { font-size: clamp(28px, 3.4vw, 42px); }
.t-h3 { font-size: 22px; }
.t-lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.t-body { color: var(--ink-2); max-width: 65ch; }
.t-small { font-size: 14px; color: var(--ink-3); }
.t-num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Buttons: one radius system (6px) everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.15rem; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--bg-2); }
.btn-ghost { background: transparent; color: var(--ink-2); padding-inline: .6rem; min-height: 38px; }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { min-height: 38px; padding-inline: .9rem; font-size: 14px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1; display: inline-flex; align-items: center; }
.wordmark span { color: var(--accent); }
.logo { display: inline-flex; align-items: center; height: 100%; gap: .55rem; }
.logo img { height: 40px; width: auto; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.logo-word b { font-weight: 700; color: var(--accent); }
.logo .dark-only, .logo-full.dark-only { display: block; }
.logo .light-only, .logo-full.light-only { display: none; }
:root[data-theme="light"] .logo .dark-only, :root[data-theme="light"] .logo-full.dark-only { display: none; }
:root[data-theme="light"] .logo .light-only, :root[data-theme="light"] .logo-full.light-only { display: block; }
.nav-right { display: inline-flex; align-items: center; gap: .6rem; }
.logo-full { height: 110px; width: auto; }
.nav-links { display: none; align-items: center; gap: 1.6rem; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-links, .nav-cta { display: inline-flex; } }
.nav-mobile { display: inline-flex; }
@media (min-width: 900px) { .nav-mobile { display: none; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }
.section-head p { margin-top: .9rem; }

/* Image plate */
.plate {
  background: var(--plate); border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--rule);
}
.plate img { width: 100%; height: 100%; object-fit: cover; } /* crop to fit, never stretch (Danny, 12 Sep 2026) */
.plate.contain img { object-fit: contain; padding: 8%; }
.plate.light { background: #ffffff; border-color: var(--rule); }
:root[data-theme="light"] .plate:not(.light) { background: var(--bg-3); }
.plate.contain-tight img { object-fit: contain; padding: 4%; }

/* Reveal on scroll (motion is gated by prefers-reduced-motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .plate img { transition: none !important; }
}

/* Footer */
.footer { border-top: 1px solid var(--rule); padding-block: 40px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: grid; gap: 1.2rem; }
.footer p + p { margin-top: .5rem; }
.gate-note { margin-top: .6rem; }
@media (min-width: 768px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.footer a:hover { color: var(--ink); }
.footer-contact { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; color: var(--ink-2); }

/* Forms */
.field { display: grid; gap: .35rem; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .error { font-size: 13px; color: var(--danger); display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], textarea, select {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--rule-2);
  border-radius: var(--radius); padding: .65rem .75rem; font: inherit; min-height: 44px;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { resize: vertical; min-height: 88px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
