/* ==========================================================================
   A2 · SIPTHERM — "Precision Desk" theme
   --------------------------------------------------------------------------
   This file is A2-SPECIFIC and is not shared with the other five sister
   sites. It is loaded AFTER style.css / articles.css / pages.css on every A2
   page, and only does two things:

     1. re-declares the design tokens in :root (copper-on-paper palette,
        small square radii, hairline-first elevation, tighter motion), and
     2. overrides a small set of components (.btn, .badge, cards,
        .hero-frame, spec tables) so the skeleton reads as a precision
        instrument instead of a soft lifestyle brand.

   Rules of this file:
     - design tokens live in :root only; no component rule repeats a literal
       colour (everything reads a custom property)
     - style.css stays untouched — the shared skeleton is identical, the
       visual language is not
   ========================================================================== */

:root {
  /* ---- palette: copper on warm paper --------------------------------- */
  --color-bg: #FBFAF7;
  --color-bg-alt: #F4F1EA;
  --color-surface: #FFFFFF;
  --color-surface-soft: #FCFAF6;
  --color-ink: #1F1B18;
  --color-ink-soft: #4A423B;
  --color-muted: #8A8078;
  --color-accent: #9C6B4F;
  --color-accent-deep: #6E4732;
  --color-accent-soft: #EBD9CB;
  --color-accent-wash: #FAF4EE;
  --color-warm: #C08A63;
  --color-hairline: rgba(31, 27, 24, 0.12);
  --color-hairline-strong: rgba(31, 27, 24, 0.22);
  --color-highlight: rgba(255, 255, 255, 0.72);
  --color-grid: rgba(31, 27, 24, 0.055);

  /* on-dark / on-accent ink — keeps literals out of the rules below */
  --color-on-accent: #FFFFFF;
  --color-on-ink: #F7F3EE;
  --color-on-accent-veil: rgba(255, 255, 255, 0.16);
  --color-on-accent-veil-hover: rgba(255, 255, 255, 0.26);

  /* ---- radii: small and squared (contrast with the soft sister sites) - */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 0.375rem; /* chips/eyebrows follow the square language */

  /* ---- elevation: 1px hairline first, micro shadow second ------------ */
  --shadow-ambient: 0 8px 20px -14px rgba(31, 27, 24, 0.25);
  --shadow-lift: 0 12px 26px -18px rgba(31, 27, 24, 0.3);
  --shadow-inset: inset 0 0 0 1px var(--color-hairline);
  --shadow-nav: 0 8px 20px -18px rgba(31, 27, 24, 0.4);

  /* ---- motion: instrument-quick, no bounce --------------------------- */
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 160ms;
  --dur-mid: 280ms;
  --dur-slow: 420ms;
}

/* ==========================================================================
   Figures — tabular everywhere so spec columns and stats line up
   ========================================================================== */
body {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  -webkit-font-feature-settings: "tnum" 1;
}

table,
.spec-table,
.spec-table th,
.spec-table td,
.stat-value,
.hero-float-value,
.about-meta-value,
.product-code,
.product-spec,
.pdp-specs,
time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   Buttons — square, hairline-edged, no luminous drop shadow.
   The skeleton markup calls bare `.btn-primary` / `.btn-ghost` (no `.btn`
   base class), so the shape is declared on all three selectors; otherwise
   they fall back to raw inline boxes.
   ========================================================================== */
.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: none;
  will-change: auto;
  transition: transform var(--dur-fast) var(--ease-spring),
    background var(--dur-fast) var(--ease-spring),
    border-color var(--dur-fast) var(--ease-spring),
    color var(--dur-fast) var(--ease-spring);
}
.btn:active,
.btn-primary:active,
.btn-ghost:active { transform: translateY(1px); }

.btn-sm,
.btn-primary.btn-sm,
.btn-ghost.btn-sm {
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  font-size: 0.8125rem;
}

.btn-primary {
  border-color: var(--color-accent-deep);
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: none;
}
.btn-primary:hover {
  border-color: var(--color-accent-deep);
  background: var(--color-accent-deep);
  box-shadow: var(--shadow-ambient);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--color-hairline-strong);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-deep);
  box-shadow: none;
  transform: translateY(-1px);
}

/* the trailing icon becomes a square key, not a circle */
.btn-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--color-on-accent-veil);
}
.btn-sm .btn-icon,
.btn-primary.btn-sm .btn-icon,
.btn-ghost.btn-sm .btn-icon {
  width: 1.85rem;
  height: 1.85rem;
}
.btn-ghost .btn-icon {
  background: var(--color-accent-wash);
  color: var(--color-accent-deep);
}
.btn:hover .btn-icon,
.btn-primary:hover .btn-icon,
.btn-ghost:hover .btn-icon {
  transform: translate(1px, -1px);
  background: var(--color-on-accent-veil-hover);
}
.btn-ghost:hover .btn-icon {
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
}

/* ==========================================================================
   Badges / chips — square, 1px outline, flat
   ========================================================================== */
.badge,
.brand-badge,
.eyebrow,
.product-tag,
.insight-tag,
.product-spec,
.proc-chip,
.faq-count {
  border-radius: var(--radius-sm);
}

.badge,
.product-spec,
.proc-chip,
.faq-count {
  border: 1px solid var(--color-hairline);
  background: var(--color-surface);
  color: var(--color-accent-deep);
  box-shadow: none;
}

.brand-badge {
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-on-ink);
  letter-spacing: 0.14em;
}

.eyebrow {
  border: 1px solid var(--color-accent-soft);
  background: var(--color-accent-wash);
  color: var(--color-accent-deep);
  letter-spacing: 0.22em;
}
.eyebrow::before {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 0;
}

.product-tag,
.insight-tag {
  color: var(--color-accent-deep);
  letter-spacing: 0.16em;
}

/* ==========================================================================
   Cards — outline first: 1px border, single micro shadow, 2px lift on hover
   ========================================================================== */
.card,
.bento-card,
.product-card,
.cap-card,
.cert-card,
.insight-card,
.related-card,
.dim-card {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-ambient);
}

.bento-card:hover,
.product-card:hover,
.insight-card:hover,
.related-card:hover,
.cap-card:hover,
.dim-card:hover {
  border-color: var(--color-hairline-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.bento-card--accent {
  border-color: var(--color-accent-deep);
  background: var(--color-accent);
}

/* double-bezel framing becomes a thin instrument matte */
.bezel {
  padding: 0.35rem;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  background: var(--color-bg-alt);
  box-shadow: none;
}
.bezel-core {
  border: 1px solid var(--color-hairline);
  border-radius: calc(var(--radius-xl) - 0.35rem);
  box-shadow: var(--shadow-ambient);
}
.bezel--flat { background: var(--color-accent-wash); }

/* ==========================================================================
   Hero frame — a framed desk instrument: hairline matte + squared image
   ========================================================================== */
.hero-frame {
  padding: 0.4rem;
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-ambient);
}
.hero-frame img {
  border-radius: calc(var(--radius-lg) - 0.4rem);
}
.hero-float {
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* PDP gallery mirrors the same framing */
.pdp-gallery {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  box-shadow: none;
}
.pdp-gallery img {
  border-radius: calc(var(--radius-lg) - var(--space-2));
  box-shadow: none;
}

/* ==========================================================================
   Spec tables — a real ruled table, values right-aligned in tabular figures
   ========================================================================== */
.spec-table {
  border: 1px solid var(--color-hairline);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: none;
  overflow: hidden;
}
.spec-table th {
  background: var(--color-bg-alt);
  color: var(--color-muted);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.spec-table td {
  color: var(--color-ink);
  font-weight: 600;
}
.spec-table tr + tr th,
.spec-table tr + tr td {
  border-top: 1px solid var(--color-hairline);
}
.spec-table th + th,
.spec-table th + td,
.spec-table td + th,
.spec-table td + td {
  border-left: 1px solid var(--color-hairline);
}

/* ==========================================================================
   Signature details — engineer's grid on alt sections, squared timeline nodes
   ========================================================================== */
.section--alt {
  background-color: var(--color-bg-alt);
  background-image:
    repeating-linear-gradient(90deg, var(--color-grid) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, var(--color-grid) 0 1px, transparent 1px 72px);
  background-size: 72px 72px;
}

.timeline-dot { border-radius: var(--radius-sm); }

.brand-mark { border-radius: var(--radius-sm); }

.nav-inner.is-scrolled {
  border-bottom-color: var(--color-hairline);
  box-shadow: var(--shadow-nav);
}

/* dark surfaces: replace the skeleton's mint accent with copper-soft */
.stat-value span,
.battery-list svg,
.footer-col a:hover { color: var(--color-accent-soft); }

.battery-card {
  border: 1px solid var(--color-accent-deep);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
