/* AirForce Suspension UK — tokens + base. Source of truth: design/DIRECTION.md.
   Loaded by the parent as handle `cool-bear-theme` (sitewide, also the editor). */

:root {
  --obsidian: #0B0B0C;
  --graphite: #17181B;
  --gunmetal: #2A2C31;
  --aluminium: #E9EAEC;
  --aluminium-2: #DEDFE2;
  --steel: #9A9DA3;
  --steel-dark: #5E6168;
  --ink: #0B0B0C;
  --paper: #F4F4F5;
  --champagne: #E3C26F;
  --brass: #8C6F2E;
  --lcd: #BFE8F5;
  --hairline-light: #C9CBD0;
  --control-border: #C4C6CB;

  --gold-text: linear-gradient(170deg, #EFD58A 0%, var(--champagne) 38%, var(--brass) 100%);
  --brushed-gold-v: repeating-linear-gradient(0deg, #D9B865 0px, #E8CB7C 1px, #C9A857 2px, #E3C26F 3px, #D2B15F 4px, #EACF85 5px);

  --font-display: "Archivo", "Archivo-fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Plex-fallback", Arial, "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Mono-fallback", "Courier New", monospace;

  --t-72: 72px; --t-56: 56px; --t-40: 40px; --t-28: 28px; --t-20: 20px;
  --t-17: 17px; --t-15: 15px; --t-13: 13px;

  --grid: 1280px;
  --gutter: 24px;
  --rhythm: 88px;
  --radius-control: 4px;
  --header-h: 72px;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur-reveal: 600ms;
}
@media (max-width: 720px) {
  :root { --t-72: 44px; --t-56: 36px; --t-40: 28px; --t-28: 22px; --t-20: 18px; --t-17: 16px; --t-15: 15px; --rhythm: 64px; --header-h: 60px; }
}

/* Size-adjusted fallbacks: no layout shift while the woff2 files arrive. */
@font-face { font-family: "Archivo-fallback"; src: local("Helvetica Neue Bold"), local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 97%; ascent-override: 92%; }
@font-face { font-family: "Plex-fallback"; src: local("Arial"); size-adjust: 100%; }
@font-face { font-family: "Mono-fallback"; src: local("Courier New"); size-adjust: 104%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--obsidian); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-17);
  line-height: 1.55;
  color: var(--paper);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.ground-light { background: var(--aluminium); color: var(--ink); }
.ground-dark { background: var(--obsidian); color: var(--paper); }
.ground-light { background: var(--aluminium); color: var(--ink); }

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, ul, ol, dl, figure, h1, h2, h3, h4, h5, h6 { margin-top: 0; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
::selection { background: var(--champagne); color: var(--obsidian); }

/* WordPress block-layout neutralisation — the theme lays itself out. */
.wp-site-blocks { display: block; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group.af-header-part, .wp-block-group.af-footer-part { margin: 0; }
.af-header-part, .af-footer-part { display: block; }
.wp-block-template-part { margin: 0; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--champagne); color: var(--obsidian); border-radius: var(--radius-control); font-weight: 600; }
.skip-link:focus { top: 16px; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Grid + rhythm */
.wrap { width: min(var(--grid), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--rhythm); }
.af-main { display: block; min-height: 40vh; }
.af-main:focus { outline: none; }

/* Type scale */
.display-1, .display-2, .display-3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.display-1 { font-size: var(--t-72); line-height: 1.0; }
.display-2 { font-size: var(--t-56); line-height: 1.05; }
.display-3 { font-size: var(--t-40); line-height: 1.15; }
.h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--t-28); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.h5 { font-family: var(--font-body); font-weight: 600; font-size: var(--t-20); line-height: 1.4; margin: 0; }
.lead { font-size: var(--t-20); line-height: 1.4; }
.small { font-size: var(--t-15); }
.tiny { font-size: var(--t-13); line-height: 1.4; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.eyebrow { font-family: var(--font-mono); font-size: var(--t-13); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin: 0 0 16px; }
.ground-light .eyebrow { color: var(--steel-dark); }
.muted { color: var(--steel); }
.ground-light .muted { color: var(--steel-dark); }
.gold-text { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ground-light .gold-text { background-image: linear-gradient(170deg, #A9863A 0%, var(--brass) 70%, #6E5622 100%); }

/* Controls */
.btn, .button, .wp-block-button__link, .single_add_to_cart_button, .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-weight: 600; font-size: var(--t-15); line-height: 1.2;
  letter-spacing: 0.005em; text-decoration: none;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-gold, .button, .single_add_to_cart_button, .wc-block-components-button, .wp-block-button__link { background: var(--champagne); color: var(--obsidian); border-color: var(--brass); box-shadow: inset 0 -1px 0 var(--brass); }
.btn-gold:hover, .button:hover, .single_add_to_cart_button:hover, .wc-block-components-button:hover, .wp-block-button__link:hover { background: #EACD82; color: var(--obsidian); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--gunmetal); }
.btn-ghost:hover { border-color: var(--steel); color: var(--paper); }
.ground-light .btn-ghost { color: var(--ink); border-color: var(--control-border); }
.ground-light .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 0; border: 0; background: none; color: var(--champagne); font-weight: 600; border-radius: 0; font-size: var(--t-15); }
.btn-link::after { content: "→"; transition: transform var(--dur-fast); }
.btn-link:hover { color: var(--champagne); }
.btn-link:hover::after { transform: translateX(4px); }
.ground-light .btn-link { color: var(--brass); }
.ground-light .btn-link:hover { color: var(--brass); }
.btn:disabled, .button:disabled, .single_add_to_cart_button:disabled { background: #CFD0D4; color: var(--steel-dark); border-color: var(--control-border); cursor: not-allowed; box-shadow: none; }

.hairline { border: 0; border-top: 1px solid var(--gunmetal); margin: 0; }
.ground-light .hairline { border-color: var(--hairline-light); }

/* Reveal — 24px rise, 600ms, once */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-reveal) var(--ease-out-quint), transform var(--dur-reveal) var(--ease-out-quint); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; max-width: 460px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Forms (sitewide defaults; WC/checkout refine) */
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: #fff; color: var(--ink); font-size: var(--t-15);
}
textarea { padding: 12px 14px; min-height: 120px; }
.ground-dark select, .ground-dark input[type="text"], .ground-dark input[type="email"], .ground-dark input[type="search"], .ground-dark textarea { background: var(--graphite); border-color: var(--gunmetal); color: var(--paper); }
select:disabled { color: var(--steel); background: #F3F3F4; }
