/*
Theme Name: ASAS Base
Theme URI: https://asas.design
Author: ASAS
Description: Minimal, unopinionated base theme for the ASAS wireframe library. Ships no component
  CSS, no layout opinions and no typography defaults beyond a documented token set, so Elementor
  templates render exactly as authored and studio tools can be styled in isolation.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: asas-base
*/

/* ---------------------------------------------------------------------------
   ASAS Base — the ENTIRE theme stylesheet.
   Rule: this file may only contain (1) a reset, (2) design tokens, (3) chrome
   for header/footer/content wrapper. It must never style anything inside
   .elementor, and never define a global `a`, `h1..h6` or `button` rule that
   could leak into template content or studio UI. See docs/CSS-CONTRACT.md.
   --------------------------------------------------------------------------- */

/* 1. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --asas-paper: #f7f6f2;
  --asas-card: #ffffff;
  --asas-ink: #141412;
  --asas-muted: #5f5d56;
  --asas-line: #dedbd2;
  --asas-accent: #141412;
  --asas-font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --asas-font-text: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --asas-shell: 1290px;
  --asas-gutter: clamp(16px, 4vw, 40px);
  --asas-header-h: 64px;
}

/* 3. Document chrome ------------------------------------------------------ */
body.asas {
  background: var(--asas-paper);
  color: var(--asas-ink);
  font-family: var(--asas-font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.asas-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--asas-ink); color: var(--asas-paper); padding: 10px 16px;
}
.asas-skip:focus { left: 8px; top: 8px; }

.asas-header {
  height: var(--asas-header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--asas-gutter);
  background: var(--asas-card);
  border-bottom: 1px solid var(--asas-line);
}
.asas-brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: inherit; }
.asas-brand b { font: 800 20px/1 var(--asas-font-display); letter-spacing: -.02em; }
.asas-brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--asas-muted); }
.asas-nav { margin-inline-start: auto; }
.asas-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.asas-nav a {
  display: inline-block; padding: 7px 11px; text-decoration: none;
  font: 500 14px/1.2 var(--asas-font-text); color: var(--asas-ink); border: 1px solid transparent;
}
.asas-nav a:hover { border-color: var(--asas-line); }
.asas-nav .current-menu-item > a { border-color: var(--asas-ink); }

.asas-main { display: block; }
.asas-shell { max-width: var(--asas-shell); margin-inline: auto; padding: 40px var(--asas-gutter); }

.asas-footer {
  border-top: 1px solid var(--asas-line);
  padding: 24px var(--asas-gutter);
  color: var(--asas-muted);
  font-size: 13px;
}

/* 4. Focus ---------------------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--asas-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
