/* ============================================================
   AKAR ASA — shared styles for article pages
   (subset of the main page design system)
   ============================================================ */
@font-face {
  font-family: 'Blackmoon Quest';
  font-weight: 400; font-style: normal;
  src: url('fonts/blackmoon-quest.woff2') format('woff2');
  font-display: swap;
}
:root {
  --color-white: #ffffff;
  --color-cream: #fbf4eb;
  --color-forest: #2f4a31;
  --color-leaf: #377d3c;
  --color-mint: #8fff96;
  --color-error: #ff8a7a;
  --font-grotesk: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-title: 'Blackmoon Quest', 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --max-w: 1440px;
}
::selection { background: var(--color-mint); color: var(--color-forest); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.no-fouc body { opacity: 0; }
html.ready body { opacity: 1; transition: opacity .4s ease; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-grotesk);
  font-size: 16px; line-height: 24px;
  color: var(--color-forest);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- header (light variant: dark text on cream) ---------- */
.site-header { position: fixed; top: 0; left: 0; z-index: 50; width: 100vw; height: 0; pointer-events: none; }
.header-glass {
  position: absolute; top: 0; left: 0; right: 0; height: 64px;
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  background: color-mix(in srgb, var(--color-cream) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-leaf) 30%, transparent);
}
@media (min-width: 768px) { .header-glass { height: 76px; } }
.site-header.is-scrolled .header-glass { opacity: 1; }
.site-header .logo {
  pointer-events: auto;
  position: absolute; top: 10px; left: 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-weight: 400; font-size: 22px;
  color: var(--color-forest);
}
@media (min-width: 768px) { .site-header .logo { top: 12px; left: 24px; font-size: 26px; } }
.logo-mark {
  width: 44px; height: 44px;
  background-color: currentColor;
  -webkit-mask: url('logo.png') no-repeat center / contain;
  mask: url('logo.png') no-repeat center / contain;
}
@media (min-width: 768px) { .logo-mark { width: 52px; height: 52px; } }
.nav-pills {
  pointer-events: auto;
  position: absolute; top: 13px; right: 16px;
  display: flex; gap: 8px;
}
@media (min-width: 768px) { .nav-pills { top: 19px; right: 24px; } }
/* small screens: Kontak shows only its arrow so the pills never
   overlap the Akar Asa logo text */
@media (max-width: 480px) {
  .nav-pill.js-kontak .rollover { display: none; }
  .nav-pill.js-kontak { padding: 8px 10px; }
}
.nav-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-size: 14px; line-height: 20px; font-weight: 500;
  color: var(--color-forest);
  /* AH glass recipe, exact: bg-driveway/10 (#302d2d @ 10%), constant across
     light/dark headers — only the text color flips.
     No fixed height: natural ~38px (20px line + 8px padding ×2 + border).
     Hairline: brand-hued match of AH's #d1e1f0 — same lightness/chroma,
     leaf-green instead of ice-blue (≈ #d4dcc8) */
  border: 1px solid color-mix(in srgb, var(--color-leaf) 20%, var(--color-cream));
  border-radius: 999px;
  background: rgba(48, 45, 45, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1);
}
.nav-pill .arrow { width: 12px; height: 10px; }

/* ---------- loading screen (web2 percentage preloader) ---------- */
body.is-loading { overflow: hidden; }
.loading-wrapper {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--color-forest);
  display: grid; place-items: center;
  transition: transform .7s cubic-bezier(.7, 0, .3, 1);
}
.loading-wrapper.done { transform: translateY(100%); }
.loading-numbers {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(32px, 6.5vw, 90px);
  line-height: 1;
  color: var(--color-cream);
}
.loading-numbers .pct { color: var(--color-mint); }

/* ---------- custom cursor (web2 trailing circle) ---------- */
.cursor-circle {
  position: fixed; top: 0; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-mint);
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width .3s, height .3s, background-color .3s, opacity .3s;
}
.cursor-circle.visible { opacity: 1; }
.cursor-circle.hovered {
  width: 45px; height: 45px;
  background: var(--color-mint);
  mix-blend-mode: exclusion;
}
@media (pointer: coarse) { .cursor-circle { display: none; } }
html.has-custom-cursor body { cursor: none; }
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor label { cursor: pointer; }
html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor select { cursor: auto; }

/* ---------- rollover microinteraction ---------- */
.rollover { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; }
.rollover .sizer { visibility: hidden; }
.rollover .face, .rollover .under { position: absolute; left: 0; transition: transform .3s var(--ease-out-expo); }
.rollover .face { top: 0; }
.rollover .under { top: 100%; }
a:hover .rollover .face, a:hover .rollover .under,
button:hover .rollover .face, button:hover .rollover .under { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .rollover .face, .rollover .under { transition: none; } }

/* ---------- page scaffold ---------- */
.page-top { height: 110px; }
@media (min-width: 768px) { .page-top { height: 140px; } }
.page-title {
  font-size: 36px; line-height: 1; font-weight: 500;
}
@media (min-width: 768px) { .page-title { font-size: 64px; } }

/* ---------- article list (AH /news rows) ---------- */
.news-list { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; padding-bottom: 96px; }
.news-item { display: flex; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--color-forest); }
.news-thumb {
  flex: none; width: 171px; height: 194px;
  border-radius: 2px; object-fit: cover;
  background: color-mix(in srgb, var(--color-forest) 20%, transparent);
}
@media (min-width: 768px) { .news-thumb { width: 212px; height: 241px; } }
/* small screens: stack the row - a 171px thumb beside ~150px of text is
   too cramped; full-width media above the text reads far better */
@media (max-width: 559px) {
  .news-item { flex-direction: column; }
  .news-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
}
.news-body { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: space-between; align-self: stretch; }
.news-top { display: flex; flex-direction: column; gap: 16px; }
.news-kicker { font-size: 14px; line-height: 1.3; font-weight: 500; color: color-mix(in srgb, var(--color-forest) 60%, transparent); }
.news-title { font-weight: 500; font-size: 18px; line-height: 1.1; }
@media (min-width: 640px)  { .news-title { font-size: 32px; line-height: 1.05; } }
@media (min-width: 1280px) { .news-title { font-size: clamp(32px, 3vw, 48px); } }
.news-meta { display: flex; align-items: center; justify-content: space-between; font-size: 14px; line-height: 1.3; font-weight: 500; margin-top: 16px; }
@media (min-width: 768px) { .news-meta { font-size: 18px; line-height: 1.2; } }
.news-date { color: color-mix(in srgb, var(--color-forest) 60%, transparent); }
.news-read { display: flex; align-items: center; gap: 12px; }
.news-read svg { width: 12px; height: 13px; flex: none; }

/* ---------- article detail ---------- */
.article { max-width: 860px; padding-bottom: 96px; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--color-leaf);
  margin-bottom: 32px;
}
.back-link svg { width: 12px; height: 10px; transform: scaleX(-1); }
.article h1 {
  font-weight: 500;
  font-size: clamp(28px, 5.4vw, 56px);
  line-height: 1.05;
}
.article .meta {
  margin-top: 20px; font-size: 14px; font-weight: 500;
  color: color-mix(in srgb, var(--color-forest) 60%, transparent);
}
.article .hero {
  width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; border-radius: 2px;
  margin-top: 40px;
  background: color-mix(in srgb, var(--color-forest) 20%, transparent);
}
.article .body { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.article .body p {
  font-family: var(--font-grotesk);
  font-weight: 500;
  font-size: 17px; line-height: 1.5;
  max-width: 720px;
}
@media (min-width: 768px) { .article .body p { font-size: 18px; line-height: 1.55; } }

/* ---------- footer ---------- */
footer { background: var(--color-forest); color: var(--color-cream); padding-block: 48px 24px; }
.footer-mark { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 20px); margin-bottom: clamp(24px, 4vw, 32px); }
/* emblem at 2x the title size - same logo:text ratio as the header nav;
   generous clamp floors keep the mark big on phones */
.footer-mark .logo-mark {
  color: var(--color-cream); background-color: var(--color-cream);
  width: clamp(88px, 15.12vw, 212px); height: clamp(88px, 15.12vw, 212px); flex: none;
}
.footer-mark .mark-text {
  color: var(--color-cream);
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 7.56vw, 106px); line-height: 1; min-width: 0;
}
.reveal-mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal-rise-inner { display: block; transform: translateY(160%); transition: transform .9s var(--ease-out-expo); }
.reveal-rise-inner.is-revealed { transform: translateY(0); }
.reveal-rise-delayed { transition-delay: .15s; }
.footer-cols {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  justify-content: space-between; align-items: flex-start;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--color-cream) 30%, transparent);
}
@media (min-width: 1024px) { .footer-cols { gap: 32px 64px; } }
@media (max-width: 480px) { .footer-cols { flex-direction: column; } .newsletter { width: 100%; min-width: 0; } }
.footer-cols h3 {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--color-mint); margin-bottom: 12px;
}
.footer-col { font-size: 14px; line-height: 22px; }
.footer-nav {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; line-height: 22px;
}
.footer-nav a, .footer-col a { color: var(--color-cream); transition: color .25s ease; }
.footer-nav a:hover, .footer-col a:hover { color: var(--color-mint); }
.socials { display: flex; gap: 16px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-cream) 60%, transparent);
  color: var(--color-cream);
  display: grid; place-items: center; font-size: 15px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.socials a:hover { background: var(--color-mint); border-color: var(--color-mint); color: var(--color-forest); }
.newsletter { width: min(400px, 100%); }
.newsletter label { display: block; font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--color-cream); margin-bottom: 24px; }
.newsletter-error { display: none; font-size: 14px; line-height: 20px; color: var(--color-error); margin: -12px 0 12px; }
.newsletter.has-error .newsletter-error { display: block; }
.newsletter-pill {
  display: flex; width: 100%; align-items: center; gap: 8px;
  border-radius: 999px; background: var(--color-cream);
  padding: 4px 4px 4px 24px;
}
.newsletter-pill:focus-within { outline: 2px solid var(--color-mint); }
.newsletter-input {
  min-width: 0; flex: 1; appearance: none; border: none; background: transparent;
  font: inherit; font-size: 14px; line-height: normal; font-weight: 500;
  color: var(--color-forest);
}
.newsletter-input:focus, .newsletter-input:focus-visible { outline: none !important; }
.newsletter-input::placeholder { color: color-mix(in srgb, var(--color-forest) 40%, transparent); }
.newsletter-submit {
  display: flex; height: 45px; width: 125px; flex: none;
  align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer;
  background: var(--color-leaf); color: var(--color-cream);
  font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
}
.newsletter-submit:disabled { cursor: default; }
.newsletter-submit .label-wrap { transition: opacity .15s cubic-bezier(.4, 0, .2, 1); }
.newsletter-submit[data-state="submitting"] .label-wrap { opacity: .5; }
.newsletter-submit svg { width: 12px; height: 20px; }
.hp-field { display: none; }
.copyright { margin-top: 32px; font-size: 12px; color: color-mix(in srgb, var(--color-cream) 60%, transparent); }

/* ---------- light footer variant: applied automatically when the
   content above is dark, for contrast (AH mission-page pattern) ---------- */
footer.footer-light { background: var(--color-cream); color: var(--color-forest); border-top: 0; }
footer.footer-light .footer-mark .logo-mark { color: var(--color-leaf); background-color: var(--color-leaf); }
footer.footer-light .footer-mark .mark-text { color: var(--color-leaf); }
footer.footer-light .footer-cols { border-top-color: color-mix(in srgb, var(--color-leaf) 35%, transparent); }
footer.footer-light .footer-cols h3 { color: var(--color-leaf); }
footer.footer-light .footer-nav a,
footer.footer-light .footer-col a { color: var(--color-forest); }
footer.footer-light .footer-nav a:hover,
footer.footer-light .footer-col a:hover { color: var(--color-leaf); }
footer.footer-light .socials a {
  border-color: color-mix(in srgb, var(--color-leaf) 60%, transparent);
  color: var(--color-leaf);
}
footer.footer-light .socials a:hover {
  background: var(--color-leaf); border-color: var(--color-leaf); color: var(--color-cream);
}
/* newsletter pill flips dark on the light footer (AH does the same) */
footer.footer-light .newsletter label { color: var(--color-forest); }
footer.footer-light .newsletter-pill { background: var(--color-forest); }
footer.footer-light .newsletter-pill:focus-within { outline-color: var(--color-leaf); }
footer.footer-light .newsletter-input { color: var(--color-cream); }
footer.footer-light .newsletter-input::placeholder { color: color-mix(in srgb, var(--color-cream) 45%, transparent); }
footer.footer-light .copyright { color: color-mix(in srgb, var(--color-forest) 60%, transparent); }
