/* ================================================================
 * Base — design-system reset and global element styles.
 * The first block is Design System/tokens/base.css verbatim;
 * production-only additions follow it, clearly marked.
 * ================================================================ */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{margin:0;background:var(--bg-page);color:var(--fg-1);font:var(--text-body)}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;letter-spacing:var(--ls-display);margin:0;text-wrap:balance}
h4{font-weight:500;letter-spacing:var(--ls-tight)}
p{margin:0;text-wrap:pretty}
a{color:var(--navy-900);text-decoration:none;border-bottom:2px solid var(--gold-500);transition:color var(--dur-fast) var(--ease-out),border-color var(--dur-fast)}
a:hover{color:var(--gold-700);border-color:var(--apricot-700)}
::selection{background:var(--apricot-500);color:var(--navy-900)}
.avx-eyebrow{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 14px 0 10px;border-radius:999px;background:var(--surface-tint);color:var(--apricot-900);font:600 12px/1 var(--font-sans);letter-spacing:.02em}
.avx-eyebrow::before{content:'';width:14px;height:8px;border-radius:999px;background:linear-gradient(90deg,var(--gold-500) 50%,var(--cream-0) 50%);border:1px solid var(--gold-600)}
.avx-x{color:var(--gold-500);font-family:var(--font-display);font-weight:300}


/* ================================================================
 * PRODUCTION ADDITIONS — Avorix website
 * Everything above this line is the design system's base.css,
 * verbatim. Below are the document-level defaults the shipped
 * sheet leaves to the host page. Elements a component owns are
 * deliberately not restyled here: see components.css.
 * ================================================================ */

/* ---------- document ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100vh}

/* Albanian compounds ("ndërkombëtare", "profesionistët") are long enough to
   push a narrow column past the viewport, so text may break inside a word
   rather than overflow. Only wrapping is added; the type itself is unchanged. */
h1,h2,h3,h4,p,li,dt,dd,figcaption,blockquote,label{overflow-wrap:break-word}

/* ---------- media ---------- */
img,picture,video,canvas,iframe{display:block;max-width:100%}
img,video{height:auto}

/* ---------- forms ---------- */
button,input,select,textarea,optgroup{font:inherit;letter-spacing:inherit;color:inherit;margin:0}
button,select{text-transform:none}
button{background:none;border:0;padding:0}
textarea{resize:vertical}
::placeholder{color:var(--fg-3);opacity:1}

/* ---------- focus ----------
 * Buttons and links take the brand ring (cream gap + gold). Fields take the
 * design system's 2px navy edge instead; the negative offset lays the outline
 * over the control's own 2px border so the two never stack into 4px. */
:focus-visible{outline:2px solid transparent;outline-offset:3px;box-shadow:var(--focus-ring)}
input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--navy-900);outline-offset:-2px;box-shadow:none}
@media (forced-colors:active){
  :focus-visible{outline-color:Highlight}
}

/* ---------- utilities ---------- */
[hidden]{display:none !important}
.avx-visually-hidden{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- motion ----------
 * One global switch. Durations collapse to 1ms rather than to `none` so that
 * transitionend / animationend still fire and JS that waits on them cannot
 * hang when a visitor asks for less motion. */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-delay:-1ms !important;
    animation-duration:1ms !important;
    animation-iteration-count:1 !important;
    transition-delay:0s !important;
    transition-duration:1ms !important;
    scroll-behavior:auto !important}
}

/* ---------- print ---------- */
@page{margin:16mm}
@media print{
  body{background:var(--cream-0);color:var(--navy-900)}
  a{color:var(--navy-900);border-bottom:0}
  h1,h2,h3,h4{break-after:avoid}
  p,li{orphans:3;widows:3}
  .avx-sprite,.avx-skip{display:none !important}
}
