/* ============================================================
   Šv. Jokūbo kelias Lietuvoje — Theme token layer
   Mirrors the FSE theme.json. Reusable across all page mockups.
   Brand: monochrome (B/W/gray) + a single federation-red accent.
   Type: Outfit (headings) + Inter (body). Square corners.
   ============================================================ */

:root {
  /* ---- Color (locked palette) ---- */
  --white:      #FFFFFF;   /* default background           */
  --off-white:  #FAFAFA;   /* alternating sections         */
  --muted:      #F4F4F4;   /* image placeholders, disabled */
  --rule:       #E5E5E5;   /* borders, dividers            */
  --gray-30:    #B0B0B0;   /* icons, captions              */
  --gray-60:    #666666;   /* secondary text               */
  --gray-80:    #333333;   /* tertiary headings (rare)     */
  --black:      #000000;   /* primary text & headings      */
  --red:        #BF2939;   /* ACCENT — federation red      */
  --red-dark:   #85131E;   /* hover / pressed              */

  /* ---- Typography ---- */
  --font-head: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --text-xxxl: clamp(2.75rem, 3.5vw + 1.75rem, 4.5rem);  /* H1, hero      */
  --text-xxl:  clamp(2rem, 2.2vw + 1.5rem, 3rem);        /* H2            */
  --text-xl:   clamp(1.5rem, 1vw + 1.25rem, 2rem);       /* H3            */
  --text-l:    clamp(1.125rem, 0.3vw + 1.05rem, 1.25rem);/* H4, lead      */
  --text-m:    1rem;        /* body                        */
  --text-s:    0.9375rem;   /* small body, captions        */
  --text-xs:   0.8125rem;   /* micro UI labels (uppercase) */

  /* ---- Spacing scale (theme.json — do not invent values) ---- */
  --sp-10: 0.25rem;
  --sp-20: 0.5rem;
  --sp-30: 1rem;
  --sp-40: 1.5rem;
  --sp-50: 2rem;
  --sp-60: 3rem;
  --sp-70: 4.5rem;
  --sp-80: 6rem;

  /* ---- Layout ---- */
  --content: 720px;   /* reading column   */
  --wide:    1240px;  /* wide content     */

  /* ---- Motion (under 320ms ease-out per brief) ---- */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur:  220ms;
}

/* ---- Reset-ish base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Beat host-injected `html, body { background: transparent }` (higher specificity) */
html body { background-color: var(--white); }

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--black);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--text-xxxl); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--text-xxl);  line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--text-xl);   line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: var(--text-l);    line-height: 1.3;  letter-spacing: -0.005em; }

/* h5 / h6 are uppercase utility labels */
h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-60);
  margin: 0;
}

p { margin: 0 0 var(--sp-40); max-width: 68ch; text-wrap: pretty; }

a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease);
}
a:hover, a:focus-visible { color: var(--red); }

strong { font-weight: 600; }

/* ---- Eyebrow / caps label — the brand's signature small mark ---- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-20);
}
.eyebrow--muted { color: var(--gray-60); }

/* ---- Mono-ish numerals: brief has no mono font, so stat figures
   use Outfit with tabular-ish tracking for "weight" ---- */
.figure {
  font-family: var(--font-head);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-20);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--black);
  border-radius: 0;               /* square corners — brand DNA */
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn--primary:active {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--black);
  color: var(--white);
}
.btn--outline:active {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--muted);
  color: var(--gray-30);
  border-color: var(--rule);
  cursor: not-allowed;
  pointer-events: none;
}

/* Focus visibility (WCAG 2.1 AA) */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---- Duotone photo signature (grayscale + warm sepia mix) ---- */
.duotone { filter: grayscale(1) sepia(0.22) contrast(1.04) brightness(0.98); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
