/*
Theme Name: Filterkarte Child
Template: astra
Version: 0.3.3
Text Domain: filterkarte-child
*/

/* ==========================================================================
   1. Fonts (self-hosted)
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("assets/fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("assets/fonts/figtree-600.woff2") format("woff2"); }

/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {
  --fk-cream: #F6EFE6;
  --fk-surface: #EDE1CF;
  --fk-espresso: #2B1D16;
  --fk-muted: #6E5A4A;
  --fk-caramel: #B8793E;
  --fk-cherry: #9B3B3B;
  --fk-button-text: #FFF8F2;
  --fk-band-text: #F3E7D8;
  --fk-band-accent: #E0A06A;
  --fk-line: rgba(43, 29, 22, 0.16);
  --fk-radius: 6px;
  --fk-radius-card: 14px;
  --fk-radius-lg: 18px;

  /* Glass surfaces. The *-solid values are the fallback without backdrop-filter. */
  --fk-milk: #FFFAF4;
  --fk-glass: rgba(255, 250, 244, 0.62);
  --fk-glass-solid: #FBF6EF;
  --fk-glass-edge: rgba(255, 250, 244, 0.7);
  --fk-glass-header: rgba(246, 239, 230, 0.88); /* >= 0.86 keeps cherry menu text at 4.5:1 over the dark band */
  --fk-glass-dark: rgba(243, 231, 216, 0.08);
  --fk-glass-dark-solid: #3A2A21;
  --fk-glass-dark-edge: rgba(243, 231, 216, 0.16);
  --fk-band-line: rgba(224, 160, 106, 0.22);
  /* Kaffeegürtel map on the dark band. */
  --fk-map-land: rgba(243, 231, 216, 0.06);
  --fk-map-coast: rgba(224, 160, 106, 0.5);
  --fk-map-belt: rgba(224, 160, 106, 0.09);
  --fk-map-tropic: rgba(224, 160, 106, 0.6);
  --fk-mask: #FFFFFF; /* mask luminance for the route reveal, never a visible color */
  /* V60 brew drawing (front page) */
  --fk-water: #6E97AD;
  --fk-grounds: #4A3124;
  --fk-slurry: rgba(122, 78, 44, 0.78);
  --fk-brew: #5B3423;
  --fk-bar-track: rgba(43, 29, 22, 0.6); /* darker than the card so the caramel fill keeps >= 3:1 */
  --fk-shadow: rgba(43, 29, 22, 0.14);
  --fk-shadow-strong: rgba(43, 29, 22, 0.22);

  /* Soft glows for mesh backgrounds and the card spotlight. */
  --fk-glow-caramel: rgba(184, 121, 62, 0.2);
  --fk-glow-cherry: rgba(155, 59, 59, 0.1);
  --fk-spot: rgba(184, 121, 62, 0.22);
  --fk-spot-dark: rgba(224, 160, 106, 0.16);
  /* Film grain: inline SVG noise in espresso tones, no image file. */
  --fk-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .11 0 0 0 0 .09 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --fk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fk-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fk-wrap: 1180px;
  --fk-gutter: clamp(16px, 4vw, 40px);
  /* Reading measure. In Figtree, 1ch (the "0") is wide, so 68ch would give about 85
     characters per line; 38em gives about 70, the intended "68ch" feel. */
  --fk-measure: 38em;

  /* Astra's palette, mapped to the brand colors. */
  --ast-global-color-0: var(--fk-cherry);    /* accent, meta links */
  --ast-global-color-1: var(--fk-espresso);  /* accent hover */
  --ast-global-color-2: var(--fk-espresso);  /* headings */
  --ast-global-color-3: var(--fk-espresso);  /* body text */
  --ast-global-color-4: var(--fk-surface);   /* cards, header, footer */
  --ast-global-color-5: var(--fk-cream);     /* page background */
  --ast-global-color-6: var(--fk-espresso);
  --ast-global-color-7: var(--fk-line);      /* borders */
  --ast-global-color-8: var(--fk-espresso);
}

/* ==========================================================================
   3. Base
   ========================================================================== */

html { overflow-x: clip; }

body {
  background-color: var(--fk-cream);
  color: var(--fk-espresso);
  font-family: "Figtree", system-ui, sans-serif;
  font-weight: 400;
  overflow-x: clip; /* clip instead of hidden keeps position: sticky working */
}

.ast-plain-container, .ast-page-builder-template,
.ast-separate-container, .ast-separate-container #primary {
  background-color: var(--fk-cream);
}

h1, h2, h3, h4, h5, h6, .entry-title {
  color: var(--fk-espresso);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

a { color: var(--fk-cherry); }
a:hover { color: var(--fk-espresso); }

:focus-visible {
  outline: 2px solid var(--fk-cherry);
  outline-offset: 2px;
}

hr { border-color: var(--fk-line); }

.button, .ast-button, input[type="submit"], .wp-block-button__link {
  background-color: var(--fk-cherry);
  border-radius: var(--fk-radius);
  color: var(--fk-button-text);
  font-weight: 600;
}

.button:hover, .ast-button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background-color: var(--fk-espresso);
  color: var(--fk-button-text);
}

/* Glass: solid fallback first, frosted where supported. */
.fk-glass {
  background: var(--fk-glass-solid);
  border: 1px solid var(--fk-line);
}
.fk-glass--dark {
  background: var(--fk-glass-dark-solid);
  border-color: var(--fk-glass-dark-edge);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .fk-glass {
    background: var(--fk-glass);
    border-color: var(--fk-glass-edge);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
  }
  .fk-glass--dark {
    background: var(--fk-glass-dark);
    border-color: var(--fk-glass-dark-edge);
  }
}

/* ==========================================================================
   4. Header (sticky, frosted after scrolling) and footer
   ========================================================================== */

#masthead {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  background-color: var(--fk-cream);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
  background-color: transparent;
  border-bottom-color: transparent;
}
.fk-scrolled #masthead {
  background-color: var(--fk-glass-solid);
  box-shadow: 0 1px 0 var(--fk-line), 0 8px 24px -16px var(--fk-shadow-strong);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .fk-scrolled #masthead {
    background-color: var(--fk-glass-header);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }
}

/* Wordmark (markup from functions.php). */
#masthead .site-title { margin: 0; line-height: 1; }
#masthead .fk-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  color: var(--fk-espresso);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
}
#masthead .fk-wordmark__b { margin-left: 0.02em; color: var(--fk-cherry); font-style: italic; }
.fk-wordmark__pin {
  flex: none;
  width: 0.56em;
  height: auto;
  transform: translateY(-0.04em);
  transition: transform 0.5s var(--fk-spring);
}
.fk-wordmark__pin path { fill: var(--fk-cherry); }
.fk-wordmark__pin circle { fill: var(--fk-button-text); }
.fk-wordmark:hover .fk-wordmark__pin { transform: translateY(-0.18em); }

/* Header stays in place during page transitions. */
#masthead { view-transition-name: fk-header; }
#masthead .main-header-menu .menu-link {
  color: var(--fk-espresso);
  font-weight: 500;
}
#masthead .main-header-menu .menu-link:hover,
#masthead .main-header-menu .current-menu-item > .menu-link {
  color: var(--fk-cherry);
}

.site-footer,
.site-footer .site-below-footer-wrap[data-section="section-below-footer-builder"],
.site-footer .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
  background-color: var(--fk-espresso);
  color: var(--fk-band-text);
  border-top: 0;
}
.site-footer { border-top: 3px solid var(--fk-caramel); }
.site-footer p, .site-footer .ast-footer-copyright { color: var(--fk-band-text); }
.site-footer a { color: var(--fk-band-accent); }
.site-footer a:hover { color: var(--fk-band-text); }
.site-footer :focus-visible { outline-color: var(--fk-band-accent); }

/* ==========================================================================
   5. Shared components
   ========================================================================== */

.fk-wrap {
  max-width: var(--fk-wrap);
  margin-inline: auto;
  padding-inline: var(--fk-gutter);
}

.fk-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--fk-cherry);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fk-eyebrow--band { color: var(--fk-band-accent); }

.fk-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--fk-radius);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  /* --fk-bx/--fk-by: magnetic pull, set by the script on fine pointers. */
  transform: translate3d(var(--fk-bx, 0px), calc(var(--fk-by, 0px) + var(--fk-lift, 0px)), 0);
  transition: transform 0.55s var(--fk-spring);
}
.fk-btn:hover { --fk-lift: -2px; }
.fk-btn--primary { background: var(--fk-cherry); color: var(--fk-button-text); }
.fk-btn--primary:hover { color: var(--fk-button-text); }
.fk-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 10px 24px -10px var(--fk-cherry);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fk-btn--primary:hover::after { opacity: 1; }
.fk-btn--ghost {
  border: 1px solid var(--fk-espresso);
  color: var(--fk-espresso);
  background: transparent;
}
.fk-btn--ghost:hover { color: var(--fk-cherry); border-color: var(--fk-cherry); }

.fk-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.fk-section__head { margin-bottom: 2rem; }
.fk-section__head h2,
.fk-band h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw + 0.8rem, 3rem);
  line-height: 1.08;
}
.fk-section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

/* Contour lines */
.fk-contours { display: block; width: 100%; height: 100%; fill: none; }
.fk-contours path { stroke-width: 1; vector-effect: non-scaling-stroke; }
.fk-contours path.is-index { stroke-width: 1.7; }
.fk-contours--caramel { stroke: var(--fk-caramel); opacity: 0.5; }
.fk-contours--line { stroke: var(--fk-espresso); opacity: 0.18; }
.fk-contours--band { stroke: var(--fk-band-line); }
.fk-contours--teaser { stroke: var(--fk-caramel); opacity: 0.55; }

/* ==========================================================================
   6. Homepage
   ========================================================================== */

/* Let the homepage sections run full width inside Astra's wrapper. */
.fk-front #content > .ast-container {
  display: block;
  max-width: none;
  padding: 0;
}
.fk-front #content { padding: 0; }

/* Hero: soft mesh of brand glows plus a faint grain. */
.fk-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  --fk-bg:
    radial-gradient(38% 55% at 92% 18%, var(--fk-glow-caramel), transparent 70%),
    radial-gradient(34% 48% at 66% 92%, var(--fk-glow-cherry), transparent 70%),
    radial-gradient(42% 60% at 4% 6%, var(--fk-milk), transparent 72%),
    radial-gradient(ellipse 60% 70% at 85% 35%, var(--fk-surface), transparent 70%),
    var(--fk-cream);
  background: var(--fk-bg);
  overflow: clip;
  isolation: isolate;
}
.fk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--fk-grain);
  opacity: 0.16;
  pointer-events: none;
}
.fk-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.fk-hero__title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.75rem, 5.6vw + 0.5rem, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.fk-hero__title em { color: var(--fk-cherry); font-style: italic; }
/* Line-by-line reveal: each line is a clipped window, its text slides up into it.
   The padding/negative margin pair leaves room for ascenders and descenders. */
.fk-line {
  display: block;
  overflow: clip;
  padding: 0.12em 0.1em 0.2em 0;
  margin: -0.12em -0.1em -0.2em 0;
}
.fk-line > span {
  display: inline-block;
  animation: fk-line-up 1.15s var(--fk-ease) both;
}
.fk-line + .fk-line > span { animation-delay: 0.14s; }
.fk-hero__lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--fk-muted);
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  line-height: 1.6;
}
.fk-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.fk-hero__text > :not(h1) {
  animation: fk-rise 0.9s var(--fk-ease) both;
}
.fk-hero__text > :nth-child(3) { animation-delay: 0.32s; }
.fk-hero__text > :nth-child(4) { animation-delay: 0.42s; }

/* Hero art: contour map, pin, cup, origin card */
.fk-hero__art { position: relative; }
.fk-map {
  position: relative;
  aspect-ratio: 600 / 520;
  border-radius: var(--fk-radius-lg);
  background: linear-gradient(160deg, var(--fk-milk), var(--fk-surface));
  border: 1px solid var(--fk-line);
  box-shadow: 0 30px 60px -40px var(--fk-shadow-strong);
  overflow: hidden;
  isolation: isolate;
}
.fk-map__layer, .fk-drift { position: absolute; inset: -6%; }
.fk-map__layer, .fk-map__pin, .fk-cup, .fk-origin { will-change: transform; }
.fk-drift--a { animation: fk-drift-a 38s ease-in-out infinite alternate; }
.fk-drift--b { animation: fk-drift-b 46s ease-in-out infinite alternate; }

.fk-map__pin {
  position: absolute;
  left: 39%;
  top: 41%;
  width: 26px;
}
.fk-map__pin svg { display: block; width: 100%; height: auto; }
.fk-pin__body { fill: var(--fk-cherry); }
.fk-pin__dot { fill: var(--fk-button-text); }

.fk-cup {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 46%;
  margin-left: -23%;
}
.fk-cup__svg { display: block; width: 100%; height: auto; overflow: visible; }
.fk-cup__saucer { fill: var(--fk-espresso); opacity: 0.1; }
.fk-cup__body { fill: var(--fk-milk); stroke: var(--fk-espresso); stroke-width: 2.5; }
.fk-cup__handle { fill: none; stroke: var(--fk-espresso); stroke-width: 7; stroke-linecap: round; }
.fk-cup__coffee { fill: var(--fk-espresso); }
.fk-cup__crema { fill: var(--fk-caramel); opacity: 0.85; }

.fk-steam {
  position: absolute;
  bottom: 82%;
  width: 8%;
  opacity: 0;
  animation: fk-steam 4.8s ease-in-out infinite;
}
.fk-steam svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--fk-muted); stroke-width: 2.2; stroke-linecap: round; }
.fk-steam--1 { left: 34%; animation-delay: 0s; }
.fk-steam--2 { left: 45%; animation-delay: 1.6s; }
.fk-steam--3 { left: 56%; animation-delay: 3.2s; }

.fk-origin {
  position: absolute;
  right: 5%;
  top: 7%;
  width: min(58%, 15rem);
}
.fk-origin__float {
  padding: 0.9rem 1.1rem;
  border-radius: var(--fk-radius-card);
  box-shadow: 0 18px 40px -24px var(--fk-shadow-strong);
  animation: fk-float 7s ease-in-out infinite alternate;
}
.fk-origin p { margin: 0; }
.fk-origin__label {
  color: var(--fk-cherry);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fk-origin__title {
  margin-top: 0.2rem !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--fk-espresso);
}
.fk-origin__meta {
  margin-top: 0.3rem !important;
  color: var(--fk-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Brewing guide cards */
.fk-guides {
  position: relative;
  --fk-bg: var(--fk-surface);
  background: var(--fk-bg);
}
/* Bento grid: 1 column, 2 columns from 640px, feature + wide tile from 960px. */
.fk-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .fk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fk-card--feature, .fk-card--wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .fk-bento { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .fk-card--feature { grid-column: auto; grid-row: span 2; min-height: 22rem; }
  .fk-card--feature .fk-card__kicker { margin-top: 2.5rem; }
  .fk-card--wide { grid-column: 2 / -1; }
}
.fk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--fk-radius-lg);
  isolation: isolate;
  transition: translate 0.45s var(--fk-ease);
}
/* Decoration layer: clips the spotlight and contour art to the card. */
.fk-card__fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.fk-card__fx::before { /* spotlight, moved with transform only */
  content: "";
  position: absolute;
  left: -11rem;
  top: -11rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--fk-spot), transparent);
  opacity: 0;
  transform: translate3d(var(--fk-mx, 50%), var(--fk-my, 50%), 0);
  transition: opacity 0.5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fk-card:hover .fk-card__fx::before { opacity: 1; }
}
.fk-card__kicker {
  margin: 0 0 0.35rem;
  color: var(--fk-cherry);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fk-card--feature { padding: clamp(1.75rem, 3vw, 2.5rem); }
.fk-card--feature .fk-card__icon { margin-bottom: auto; }
.fk-card--feature .fk-card__link { margin-top: 0; }
.fk-card--feature .fk-card__fx .fk-contours { position: absolute; inset: 0; opacity: 0.32; }
.fk-card--feature .fk-card__title { font-size: clamp(2.2rem, 2.4vw + 1rem, 3.1rem); }
.fk-card--feature .fk-card__text { max-width: 22rem; font-size: 1.05rem; }

/* Wide dark tile (Grundlage). */
.fk-card--wide {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  background: var(--fk-espresso);
  color: var(--fk-band-text);
}
.fk-card--wide .fk-card__fx { --fk-spot: var(--fk-spot-dark); }
.fk-card__body { display: flex; flex-direction: column; flex: 1 1 15rem; }
.fk-card--wide .fk-card__kicker, .fk-card--wide .fk-card__link { color: var(--fk-band-accent); }
.fk-card--wide .fk-card__link:hover { color: var(--fk-band-text); }
.fk-card--wide .fk-card__title { color: var(--fk-band-text); }
.fk-card--wide .fk-card__text { color: var(--fk-band-text); }
.fk-card--wide :focus-visible { outline-color: var(--fk-band-accent); }
.fk-ratio {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  margin: 0;
  color: var(--fk-band-text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 2.4vw + 0.9rem, 2.8rem);
  font-style: italic;
  line-height: 1;
}
.fk-ratio b { color: var(--fk-band-accent); font-weight: 600; }
.fk-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 24px 48px -24px var(--fk-shadow-strong);
  opacity: 0;
  transition: opacity 0.4s var(--fk-ease);
}
/* "translate", not "transform": the scroll-reveal animation owns transform on these cards. */
.fk-card:hover, .fk-card:focus-within { translate: 0 -6px; }
.fk-card:hover::after, .fk-card:focus-within::after { opacity: 1; }
.fk-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--fk-caramel);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.fk-card__title { margin: 0 0 0.5rem; font-size: 1.75rem; line-height: 1.1; }
.fk-card__text { margin: 0 0 1.25rem; color: var(--fk-muted); line-height: 1.6; }
.fk-card__link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}
.fk-card__link::before { /* whole card clickable */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Ursprungskarte band */
.fk-band {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  --fk-bg: var(--fk-espresso);
  background: var(--fk-bg);
  color: var(--fk-band-text);
  overflow: clip;
  isolation: isolate;
}
.fk-band__bg { position: absolute; inset: 0; z-index: -1; }
.fk-drift--c { animation: fk-drift-b 52s ease-in-out infinite alternate; will-change: transform; }
.fk-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.fk-band h2 { color: var(--fk-band-text); margin-bottom: 1rem; }
.fk-band__text p:not(.fk-eyebrow) { max-width: 30rem; margin: 0; color: var(--fk-band-text); line-height: 1.7; font-size: 1.05rem; }

.fk-profile {
  padding: 1.75rem;
  border-radius: var(--fk-radius-lg);
}
.fk-profile p { margin: 0; }
.fk-profile__label {
  color: var(--fk-band-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fk-profile__title {
  margin: 0.3rem 0 1.4rem !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--fk-band-text);
}
.fk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.fk-bar {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.fk-bar__label { font-size: 0.95rem; font-weight: 500; color: var(--fk-band-text); }
.fk-bar__track {
  height: 8px;
  border-radius: 99px;
  background: var(--fk-bar-track);
  box-shadow: inset 0 0 0 1px var(--fk-glass-dark-edge);
  overflow: hidden;
}
.fk-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fk-caramel), var(--fk-band-accent));
  transform-origin: 0 50%;
  transform: scaleX(var(--fk-v, 0.5));
}
.fk-profile__note { margin-top: 1.4rem !important; color: var(--fk-band-text); opacity: 0.8; font-size: 0.85rem; }

/* "Kaffeegürtel" map (svg is aria-hidden; .fk-geo__list carries the names as text).
   Final state is the default; the script adds .fk-geo--armed and .is-playing (section 8). */
.fk-geo { margin-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: 0; }
.fk-geo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.fk-geo__head p { margin: 0; }
.fk-geo__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--fk-band-text);
}
.fk-geo__text { max-width: 36rem; margin-top: 0.3rem !important; font-size: 0.95rem; line-height: 1.6; color: var(--fk-band-text); }
.fk-btn--band {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--fk-band-text);
  background: transparent;
  color: var(--fk-band-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.fk-btn--band:hover { border-color: var(--fk-band-accent); color: var(--fk-band-accent); background: transparent; }
.fk-btn--band[hidden] { display: none; }
.fk-geo :focus-visible { outline-color: var(--fk-band-accent); }
.fk-geo__frame {
  border-block: 1px solid var(--fk-band-line);
  padding-block: 0.5rem;
}
.fk-geo__map { display: block; width: 100%; height: auto; overflow: hidden; --fk-pin-s: 0.75; }
.fk-geo__belt rect { fill: var(--fk-map-belt); }
.fk-geo__tropic { fill: none; stroke: var(--fk-map-tropic); stroke-width: 1; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.fk-geo__grid { fill: none; stroke: var(--fk-band-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fk-geo__land path { fill: var(--fk-map-land); stroke: var(--fk-map-coast); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fk-geo__route { fill: none; stroke: var(--fk-band-accent); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fk-geo__reveal { fill: none; stroke: var(--fk-mask); stroke-width: 12; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fk-geo__note { fill: var(--fk-band-accent); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.fk-geo__label { fill: var(--fk-band-text); font-size: 15px; font-weight: 500; transition: fill 0.25s ease; }
.fk-geo__pin { fill: var(--fk-band-accent); }
.fk-geo__dot { fill: var(--fk-espresso); }
.fk-geo__ring { fill: none; stroke: var(--fk-band-accent); stroke-width: 1.5; opacity: 0; vector-effect: non-scaling-stroke; }
.fk-geo__drop, .fk-geo__shape, .fk-geo__ring { transform-box: fill-box; }
.fk-geo__drop, .fk-geo__shape { transform-origin: 50% 100%; }
.fk-geo__ring { transform-origin: 50% 50%; }
.fk-geo__shape { transform: scale(var(--fk-pin-s)); transition: transform 0.3s var(--fk-ease); }
@media (hover: hover) and (pointer: fine) {
  .fk-geo__site:hover .fk-geo__label { fill: var(--fk-band-accent); }
  .fk-geo__site:hover .fk-geo__shape { transform: scale(calc(var(--fk-pin-s) * 1.15)); }
}
/* Country names as text: visually hidden on wide screens (the svg shows them). Below 1000px the
   svg labels would shrink under about 12px, so they are hidden and this list is shown instead. */
.fk-geo__list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 999px) {
  .fk-geo__map { --fk-pin-s: 1.1; }
  .fk-geo__label, .fk-geo__note { display: none; }
  .fk-geo__list {
    position: static;
    width: auto;
    height: auto;
    margin: 1rem 0 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    list-style: none;
    color: var(--fk-band-text);
    font-size: 0.95rem;
  }
  .fk-geo__list li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
  .fk-geo__list li::before {
    content: "";
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--fk-band-accent);
  }
}
@media (max-width: 640px) {
  .fk-geo__map { --fk-pin-s: 1.7; }
}

/* Gießkreise (assets/js/pour.js, fine pointers only): one fixed canvas behind the content.
   Opaque section backgrounds would hide it, so while it is active (html.fk-pour-on) they move
   to a z-index -2 layer: rings then sit above the backgrounds and below all text and controls.
   Without the script nothing here applies. */
.fk-pour {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.12; /* hard cap for all rings, overlaps included: muted text on surface stays >= 4.5:1 */
  pointer-events: none;
}
.fk-pour-on .fk-hero, .fk-pour-on .fk-guides, .fk-pour-on .fk-band { background: none; isolation: auto; }
.fk-pour-on .fk-hero::after, .fk-pour-on .fk-guides::before, .fk-pour-on .fk-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--fk-bg);
  pointer-events: none;
}

/* Journal teasers */
.fk-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}
.fk-teaser { position: relative; }
.fk-teaser__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--fk-line);
  border-radius: var(--fk-radius-lg);
  background: var(--fk-milk);
  color: var(--fk-espresso);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--fk-ease);
}
.fk-teaser__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 24px 48px -28px var(--fk-shadow-strong);
  opacity: 0;
  transition: opacity 0.4s var(--fk-ease);
  pointer-events: none;
}
.fk-teaser__link:hover { color: var(--fk-espresso); transform: translateY(-5px); }
.fk-teaser__link:hover::after { opacity: 1; }
.fk-teaser__media {
  aspect-ratio: 2 / 1;
  background: linear-gradient(160deg, var(--fk-cream), var(--fk-surface));
  overflow: hidden;
}
.fk-teaser__media svg, .fk-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--fk-ease);
}
.fk-teaser__link:hover .fk-teaser__media svg,
.fk-teaser__link:hover .fk-teaser__media img { transform: scale(1.05); }
.fk-teaser__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.fk-teaser__date { margin: 0 0 0.4rem; color: var(--fk-muted); font-size: 0.85rem; }
.fk-teaser__title { margin: 0 0 0.6rem; font-size: 1.5rem; line-height: 1.15; }
.fk-teaser__excerpt { margin: 0 0 1rem; color: var(--fk-muted); font-size: 0.95rem; line-height: 1.6; }
.fk-teaser__more { margin-top: auto; color: var(--fk-cherry); font-weight: 600; }
.fk-empty { color: var(--fk-muted); }

@media (max-width: 900px) {
  .fk-hero__grid, .fk-band__grid { grid-template-columns: minmax(0, 1fr); }
  /* Stacked hero: keep the glows behind the art, not behind the text (contrast). */
  .fk-hero {
    --fk-bg:
      radial-gradient(60% 30% at 90% 78%, var(--fk-glow-caramel), transparent 70%),
      radial-gradient(50% 24% at 15% 96%, var(--fk-glow-cherry), transparent 70%),
      radial-gradient(80% 30% at 85% 75%, var(--fk-surface), transparent 70%),
      var(--fk-cream);
  }
  .fk-hero__art { max-width: 34rem; }
}
@media (max-width: 480px) {
  .fk-hero__actions .fk-btn { flex: 1 1 100%; }
  .fk-origin { width: 62%; right: 4%; top: 5%; }
  .fk-origin__float { padding: 0.7rem 0.85rem; }
  .fk-origin__title { font-size: 1.1rem; }
  .fk-origin__meta { display: none; }
  .fk-bar { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; }
  .fk-profile { padding: 1.4rem; }
}

/* ==========================================================================
   7. Single post (long-form reading)
   ========================================================================== */

/* Astra draws the article as a surface-colored "paper" card; round it to match. */
.ast-separate-container.single-post .ast-article-single {
  border-radius: var(--fk-radius-lg);
}
.single-post .entry-content h2 { scroll-margin-top: 6rem; }

/* Mini table of contents (built by the script from the h2s), wide screens only.
   It sits in the left page margin; the inner list sticks while the column scrolls. */
.single-post #content > .ast-container { position: relative; }
.fk-toc { display: none; }
@media (min-width: 1240px) {
  .fk-toc {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 13rem;
    margin-right: 0.5rem;
  }
}
.fk-toc__inner {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 6.5rem);
  padding-top: 3rem;
}
.fk-toc__label {
  margin: 0 0 0.75rem;
  color: var(--fk-cherry);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fk-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--fk-line); }
.fk-toc li { margin: 0; }
.fk-toc a {
  position: relative;
  display: block;
  padding: 0.4rem 0 0.4rem 0.95rem;
  color: var(--fk-muted);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}
.fk-toc a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 2px;
  background: var(--fk-cherry);
  transform: scaleY(0);
  transition: transform 0.4s var(--fk-ease);
}
.fk-toc a:hover, .fk-toc a.is-active { color: var(--fk-espresso); }
.fk-toc a.is-active::before { transform: none; }

/* FAQ: the script groups each h3 question with its answer under "Häufige Fragen". */
.single-post .entry-content .fk-faq { display: grid; gap: 0.85rem; counter-reset: fk-faq; }
.fk-faq__item {
  position: relative;
  padding: 1.15rem 1.35rem 1.2rem 3.7rem;
  border: 1px solid var(--fk-line);
  border-radius: var(--fk-radius-card);
  background: var(--fk-milk);
  counter-increment: fk-faq;
}
.fk-faq__item::before {
  content: counter(fk-faq, decimal-leading-zero);
  content: counter(fk-faq, decimal-leading-zero) / "";
  position: absolute;
  left: 1.35rem;
  top: 1.5rem;
  color: var(--fk-cherry);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.single-post .entry-content .fk-faq__item h3 {
  margin: 0 0 0.35em;
  font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.45rem);
}
.single-post .entry-content .fk-faq__item > * { margin-block: 0 0.6em; }
.single-post .entry-content .fk-faq__item > :last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .fk-faq__item { padding: 1rem 1.1rem 1.1rem; }
  .fk-faq__item::before { position: static; display: block; margin-bottom: 0.3rem; }
}
.single-post .entry-header,
.single-post .entry-content {
  max-width: var(--fk-measure);
  margin-inline: auto;
}
.single-post header.entry-header .entry-title { /* beats Astra's header.entry-header .entry-title */
  font-size: clamp(2.3rem, 3vw + 1.2rem, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.single-post .entry-meta,
.single-post .entry-meta a { color: var(--fk-muted); }

.single-post .entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  hyphens: auto;
  overflow-wrap: break-word;
}
.single-post .entry-content > * { margin-block: 0 1.25em; }
.single-post .entry-content h2 {
  margin: 2.4em 0 0.6em;
  font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.3rem);
  line-height: 1.12;
}
.single-post .entry-content h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 0.7em;
  background: var(--fk-caramel);
}
.single-post .entry-content h3 {
  margin: 1.8em 0 0.5em;
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.65rem);
  line-height: 1.2;
}
.single-post .entry-content h2 + *,
.single-post .entry-content h3 + * { margin-top: 0; }

.single-post .entry-content ul,
.single-post .entry-content ol { padding-left: 1.4em; margin-left: 0; }
.single-post .entry-content li { margin-bottom: 0.5em; padding-left: 0.25em; }
.single-post .entry-content ul li::marker { color: var(--fk-caramel); }
.single-post .entry-content ol li::marker { color: var(--fk-cherry); font-weight: 600; }

.single-post .entry-content a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* "Kurzantwort" box: the first paragraph when it opens with bold text. */
.single-post .entry-content > p:first-child:has(> strong:first-child) {
  position: relative;
  padding: 1.35rem 1.5rem 1.45rem;
  border: 1px solid var(--fk-line);
  border-radius: var(--fk-radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, var(--fk-glow-caramel), transparent 70%),
    radial-gradient(50% 90% at 0% 100%, var(--fk-glow-cherry), transparent 70%),
    var(--fk-milk);
  font-size: 1.08rem;
  line-height: 1.7;
  box-shadow: 0 22px 44px -34px var(--fk-shadow-strong);
}
.single-post .entry-content > p:first-child > strong:first-child {
  display: table; /* own line, shrink-wrapped to the label */
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--fk-radius);
  background: var(--fk-cherry);
  color: var(--fk-button-text);
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Tables: scroll inside their own wrapper on narrow screens. */
.fk-table-wrap {
  max-width: 100%;
  margin-block: 0 1.5em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--fk-line);
  border-radius: var(--fk-radius-card);
  background: var(--fk-milk);
}
.fk-table-wrap:focus-visible { outline-offset: 3px; }
.entry-content .fk-table-wrap table,
.entry-content table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  hyphens: manual;
}
.entry-content table th,
.entry-content table td {
  padding: 0.7rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--fk-line);
  text-align: left;
  vertical-align: top;
}
.entry-content table th {
  background: var(--fk-surface);
  color: var(--fk-espresso);
  font-weight: 600;
  white-space: nowrap;
}
.entry-content table tbody tr:nth-child(even) td { background: var(--fk-cream); }
.entry-content table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .ast-separate-container.single-post #primary { padding-top: 1.25rem; }
  /* Tables with three or more columns get room and scroll; two-column tables fit. */
  .entry-content .fk-table-wrap table { min-width: 38rem; table-layout: fixed; }
  .entry-content .fk-table-wrap table:not(:has(th:nth-child(3))) { min-width: 0; table-layout: auto; }
  .entry-content table th { white-space: normal; }
}

/* Reading progress bar */
.fk-progress {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  pointer-events: none;
}
.fk-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fk-caramel), var(--fk-cherry));
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .fk-progress__bar {
    animation: fk-progress linear both;
    animation-timeline: scroll(root block);
  }
}

/* ==========================================================================
   8. Motion
   ========================================================================== */

/* Scroll-driven reveals where supported ... */
@supports (animation-timeline: view()) {
  .fk-reveal {
    animation: fk-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
  /* The timeline sits on the list: the track's overflow would otherwise act as the scroller. */
  .fk-bars { view-timeline: --fk-bars block; }
  .fk-bars .fk-bar__fill {
    animation: fk-fill linear both;
    animation-timeline: --fk-bars;
    animation-range: entry 60% cover 55%;
  }
  .fk-hero__art {
    animation: fk-hero-exit linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
}

/* ... and an IntersectionObserver fallback (the script adds .fk-io). */
.fk-io .fk-reveal {
  transition: opacity 0.9s var(--fk-ease), transform 0.9s var(--fk-ease);
}
.fk-io .fk-reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
.fk-io .fk-bar__fill {
  transition: transform 1.3s var(--fk-ease);
  transition-delay: calc(var(--fk-i, 0) * 0.12s);
}
.fk-io .fk-bars:not(.is-in) .fk-bar__fill { transform: scaleX(0); }

@keyframes fk-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes fk-line-up {
  from { opacity: 0; transform: translate3d(0, 105%, 0); }
  to { opacity: 1; transform: none; }
}
/* Kaffeegürtel map: plays once (under 5 s) when the script adds .is-playing, then rests on
   the default (final) state. Belt 0-0.7 s, route 0.4-3.3 s, each pin drops when the route
   reaches it (--fk-t), ring and label follow; the last ring ends at about 4.5 s. */
@media (prefers-reduced-motion: no-preference) {
  .fk-geo--armed:not(.is-playing) .fk-geo__belt,
  .fk-geo--armed:not(.is-playing) .fk-geo__drop,
  .fk-geo--armed:not(.is-playing) .fk-geo__label { opacity: 0; }
  .fk-geo--armed:not(.is-playing) .fk-geo__reveal { stroke-dashoffset: 1; }
  .fk-geo.is-playing .fk-geo__belt { animation: fk-fade 0.7s ease-out both; }
  .fk-geo.is-playing .fk-geo__reveal { animation: fk-route 2.9s cubic-bezier(0.45, 0, 0.55, 1) 0.4s both; }
  .fk-geo.is-playing .fk-geo__site { --fk-at: calc(0.4s + var(--fk-t, 0) * 2.9s); }
  .fk-geo.is-playing .fk-geo__drop { animation: fk-pin-drop 0.55s var(--fk-spring) var(--fk-at) both; }
  .fk-geo.is-playing .fk-geo__ring { animation: fk-pulse 0.9s ease-out calc(var(--fk-at) + 0.3s) both; }
  .fk-geo.is-playing .fk-geo__label { animation: fk-fade 0.5s ease-out calc(var(--fk-at) + 0.25s) both; }
}
@keyframes fk-fade { from { opacity: 0; } }
@keyframes fk-route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fk-pin-drop {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fk-pulse {
  from { opacity: 0.9; transform: scale(0.4); }
  to { opacity: 0; transform: scale(2.6); }
}
@keyframes fk-fill { from { transform: scaleX(0); } }
@keyframes fk-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fk-hero-exit { to { opacity: 0.4; transform: translateY(-40px) scale(0.97); } }
@keyframes fk-drift-a {
  from { transform: translate3d(-1.5%, 0, 0) rotate(-1.5deg) scale(1); }
  to { transform: translate3d(1.5%, -1.5%, 0) rotate(2deg) scale(1.04); }
}
@keyframes fk-drift-b {
  from { transform: translate3d(1%, 1%, 0) rotate(1deg); }
  to { transform: translate3d(-2%, -1%, 0) rotate(-2.5deg) scale(1.05); }
}
@keyframes fk-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -10px, 0); }
}
@keyframes fk-steam {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scaleY(0.8); }
  35% { opacity: 0.55; }
  100% { opacity: 0; transform: translate3d(0, -36px, 0) scaleY(1.15); }
}

/* Cross-document view transitions (progressive enhancement, same-origin only).
   Header stays put, the teaser title morphs into the article title, the rest cross-fades. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: var(--fk-ease); }
  ::view-transition-old(root) { animation-duration: 0.25s; }
  ::view-transition-new(root) { animation-duration: 0.4s; }
}

/* Everything above switches off for visitors who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .fk-reveal, .fk-io .fk-reveal:not(.is-in) { opacity: 1; transform: none; }
  .fk-io .fk-bars:not(.is-in) .fk-bar__fill { transform: scaleX(var(--fk-v, 0.5)); }
  .fk-steam { opacity: 0.4; }
  .fk-card:hover, .fk-card:focus-within, .fk-teaser__link:hover, .fk-btn, .fk-btn:hover,
  .fk-teaser__link:hover .fk-teaser__media svg, .fk-teaser__link:hover .fk-teaser__media img { transform: none; }
  .fk-card:hover, .fk-card:focus-within { translate: none; }
  .fk-wordmark:hover .fk-wordmark__pin { transform: translateY(-0.04em); }
  .fk-card__fx::before { display: none; }
  .fk-geo__replay { display: none !important; }
  .fk-geo__site:hover .fk-geo__shape { transform: scale(var(--fk-pin-s)); }
  .fk-progress { display: none; }
  .fk-map__layer, .fk-map__pin, .fk-cup, .fk-origin { transform: none !important; }
}

/* ==========================================================================
   V60 brew, scroll-driven (0.3.3). GSAP ScrollTrigger in assets/js/brew.js.
   At rest (no JS, reduced motion) the drawing shows the finished brew.
   ========================================================================== */
.fk-brew__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.fk-brew__copy { min-width: 0; display: grid; gap: 22px; align-content: start; }
.fk-brew__lead { color: var(--fk-muted); max-width: var(--fk-measure); margin: 0; }
.fk-brew__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.fk-brew__step {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  column-gap: 14px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid var(--fk-line);
  transition: border-color .3s var(--fk-ease), opacity .3s var(--fk-ease);
}
.fk-brew__time { grid-row: span 2; font-variant-numeric: tabular-nums; color: var(--fk-caramel); font-weight: 600; }
.fk-brew__label { font-weight: 600; color: var(--fk-espresso); }
.fk-brew__text { color: var(--fk-muted); font-size: .95em; }
.fk-brew__stage { min-width: 0; display: grid; justify-items: center; gap: 10px; }
.fk-brew__art { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.fk-brew__readout {
  display: flex; gap: 28px; font-variant-numeric: tabular-nums;
  padding: 8px 16px; border-radius: var(--fk-radius); background: var(--fk-surface);
}
.fk-brew__readout span { display: grid; justify-items: center; }
.fk-brew__readout small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fk-muted); }
.fk-brew__readout b { font-size: 1.15rem; color: var(--fk-espresso); min-width: 4ch; text-align: center; }

.fk-brew__kettle-body { fill: var(--fk-espresso); }
.fk-brew__spout { fill: none; stroke: var(--fk-espresso); stroke-width: 7; stroke-linecap: round; }
.fk-brew__stream { fill: none; stroke: var(--fk-water); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fk-brew__paper { fill: var(--fk-milk); stroke: var(--fk-line); stroke-width: 1; }
.fk-brew__slurry { fill: var(--fk-slurry); }
.fk-brew__bed { fill: var(--fk-grounds); } /* GSAP sets the transform origin; a CSS origin here would double it */
.fk-brew__bubbles circle { fill: var(--fk-band-text); opacity: 0; }
.fk-brew__cone { fill: var(--fk-cherry); }
.fk-brew__handle { fill: none; stroke: var(--fk-cherry); stroke-width: 9; stroke-linecap: round; }
.fk-brew__collar { fill: var(--fk-cherry); }
.fk-brew__drips circle { fill: var(--fk-brew); opacity: 0; }
.fk-brew__coffee { fill: var(--fk-brew); }
.fk-brew__carafe { fill: none; stroke: var(--fk-muted); stroke-width: 2.5; }
.fk-brew__scale { fill: var(--fk-espresso); }

/* Active step while the brew plays (set by brew.js) */
.fk-brew.is-live .fk-brew__step { opacity: .55; }
.fk-brew.is-live .fk-brew__step.is-active { opacity: 1; border-left-color: var(--fk-cherry); }

@media (max-width: 899px) {
  .fk-brew__grid { grid-template-columns: minmax(0, 1fr); }
  .fk-brew__stage { order: -1; }
  .fk-brew__art { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .fk-brew__step { transition: none; }
}

/* Brew 0.3.3b: no pin. On desktop the drawing stays in view (sticky) while the steps scroll past;
   warm glow and steam fade in as the coffee brews (brew.js drives their opacity). */
.fk-brew__stage { position: relative; }
.fk-brew__glow {
  position: absolute; inset: 6% 4% 20%; z-index: 0; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--fk-glow-caramel), transparent 72%);
  filter: blur(6px);
}
.fk-brew__art, .fk-brew__readout { position: relative; z-index: 1; }
.fk-brew__steam path { fill: none; stroke: var(--fk-muted); stroke-width: 2.2; stroke-linecap: round; opacity: .35; }
.fk-brew__step { transition: border-color .6s var(--fk-ease), opacity .6s var(--fk-ease), transform .6s var(--fk-ease); }
.fk-brew.is-live .fk-brew__step.is-active { transform: translateX(4px); }
@media (min-width: 900px) {
  .fk-brew.is-live .fk-brew__grid { align-items: start; }
  .fk-brew.is-live .fk-brew__stage { position: sticky; top: max(96px, calc(50vh - 290px)); }
  .fk-brew.is-live .fk-brew__step { min-height: 28vh; align-content: start; }
  .fk-brew.is-live .fk-brew__step:last-child { min-height: 18vh; }
}
@media (prefers-reduced-motion: no-preference) {
  .fk-brew__steam path { transform-box: fill-box; transform-origin: 50% 100%; animation: fk-steam 5s ease-in-out infinite; }
  .fk-brew__steam path:nth-child(2) { animation-delay: -1.7s; }
  .fk-brew__steam path:nth-child(3) { animation-delay: -3.3s; }
}
@keyframes fk-steam {
  0%   { transform: translateY(6px) scaleY(.9); opacity: 0; }
  35%  { opacity: .45; }
  100% { transform: translateY(-10px) scaleY(1.05); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fk-brew__step { transition: none; }
}
