/* ─────────────────────────────────────────────────────────────────────────
   MAX Klub — base layer: reset, self-hosted Inter, base type, focus,
   layout primitives and the reduced-motion contract.
   ───────────────────────────────────────────────────────────────────────── */

/* Inter, self-hosted (README §8 — never Google Fonts, GDPR).
   Inter v20 ships as a VARIABLE font: one file per subset covers the whole
   400–500 range the design uses, so this is two requests, not four.
   latin-ext is required — Slovenian needs č, š, ž. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* — reset — */
*, *::before, *::after { box-sizing: border-box; }

/* overflow-x lives on html, never on body: setting it on body makes body a
   scroll container, which breaks position:sticky in some engines and throws
   off 100vh. README §7.5 — the page must never scroll horizontally. */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;          /* README §6: body 15px/1.55 */
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* — headings: hierarchy is size and space, never weight — */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -.015em;
}

p { margin: 0 0 var(--space-3); }

a { color: var(--color-accent-400); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }

img, svg, video { display: block; max-width: 100%; }
figure { margin: 0; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

/* — focus. README §7.4: never the browser default ring. — */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--color-text); }

/* — layout primitives — */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section      { padding-top: var(--section-gap); }
.section--head{ padding-top: var(--page-head); }   /* interior page heads */

/* — the two recurring MAX patterns (README §8) — */

/* 1. The 1px-gap divider. A container whose `gap: 1px` over a tinted ground
      IS the divider; children repaint the page ground. Replaces <hr>. */
.divided {
  display: grid;
  gap: 1px;
  background: var(--line-10);
}
.divided > * { background: var(--color-bg); }
.divided--stack { grid-auto-flow: row; }
.divided--on-section > * { background: var(--color-section); }

/* 2. The fading rule — under every month and album heading. */
.rule-fade {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right,
    var(--color-accent), var(--line-10) 30%, transparent);
}

/* A short solid accent mark. Nocturne fades rules at their ends; short
   accent marks (28–44px) stay solid. */
.mark { display: block; height: 1px; background: var(--color-accent); }
.mark--28 { width: 28px; } .mark--36 { width: 36px; } .mark--44 { width: 44px; }

/* — recurring type roles — */
/* Kickers and micro labels take accent-400, not accent.
   README §6 specifies --color-accent here, but §12 forbids the accent for
   small text and prescribes accent-300/400 instead. Measured on this palette:
   accent  #d10359 → 3.24:1 on bg, 2.80:1 on surface  (fails AA)
   accent-400 #e75c8d → 5.29:1 on bg, 4.57:1 on surface (passes)
   §12 is the Definition of Done and carries the numeric rationale, so it wins
   over §6's colour note. accent-400 is the lightest step that passes, so the
   pink stays as close to the intended hue as AA allows. */
.kicker {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--tracking-kicker);
  color: var(--color-accent-400);
}
.kicker--on-section { color: var(--color-accent-300); }

.micro {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
  color: var(--color-accent-400);
}

.page-title {
  margin-top: 18px;
  font-size: var(--text-h1);
  line-height: 1;
  letter-spacing: var(--tracking-h1);
}

.section-label {          /* "Zasedba", "Avgust 2026", "Dobro je vedeti" */
  font-size: 15px;
  font-weight: var(--font-heading-weight);
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-50);
}

/* — reduced motion: no video, no drift, no card lift (README §12) — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
