/**
 * Dabi — reset, base typography, utilities, quality floor.
 * Breakpoints (mobile-first, min-width): tablet 768 / desktop 1024 / lg 1440 / xl 1920.
 * Base = mobile (design from 360px).
 */

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* clip keeps sticky/fixed chrome working; hidden breaks position:sticky */
  overflow-x: clip;
}

body {
  min-width: 360px;
  overflow-x: clip;
  font: var(--fs-body) / var(--lh-body) var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: opacity var(--dur) var(--ease);
}

a:hover {
  opacity: 0.6;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------------------------------
   Typography — one brand grotesque (no mono)
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: var(--lh-head);
  color: var(--ink);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

.display {
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.small {
  font-size: var(--fs-small);
}

/* Labels — same sans, uppercase, medium, moderate tracking */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
}

.price,
.spec {
  font-family: var(--font-sans);
}

.price {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--price);
}

/* Sale = price treatment only (never filled buttons / badges) */
.price__was {
  color: var(--ink-2);
  text-decoration: line-through;
  margin-inline-end: var(--s-2);
  font-weight: 500;
}

.price__now {
  color: var(--price);
  font-weight: 600;
}

.spec {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Buttons → assets/css/components.css */

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.u-sans {
  font-family: var(--font-sans);
}

.u-ink-2 {
  color: var(--ink-2);
}

/* Decor / disabled only — not for readable labels */
.u-ink-3 {
  color: var(--ink-3);
}

.u-sale,
.u-price {
  color: var(--price);
}

.u-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;
}

/* --------------------------------------------------------------------------
   Quality floor
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
