@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600&family=Newsreader:opsz,wght@12..72,600;12..72,700&display=swap');

:root {
  --deep-umber: #241C16;
  --clay-brown: #3A2C22;
  --oat-cream: #F5F0E6;
  --oat-light: #FAF7F1;
  --terracotta: #B4623C;
  --terracotta-light: #D4845E;
  --soft-olive: #6E7355;
  --warm-stone: #9A8C7B;
  --white: #FFFFFF;

  /* Contrast-safe text tokens (WCAG AA+) */
  --text-on-light: #241C16;
  --text-on-dark: #F5F0E6;
  --text-muted-light: #4A3F35;
  --text-muted-dark: #D8CEC0;
  --accent-on-light: #7A3E22;
  --accent-on-dark: #F0B896;
  --btn-primary-bg: #8F4528;
  --btn-primary-hover: #75371F;

  --measure: min(68ch, 100%);
  --max-width: 1200px;
  --section-pad: clamp(4.5rem, 7vw, 6.5rem);
  --section-pad-sm: clamp(3rem, 5vw, 4.5rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(36, 28, 22, 0.06);
  --shadow-soft: 0 8px 32px rgba(36, 28, 22, 0.1);
  --shadow-md: 0 16px 48px rgba(36, 28, 22, 0.12);
  --shadow-lift: 0 24px 64px rgba(36, 28, 22, 0.16);
  --shadow-glow: 0 0 0 3px rgba(180, 98, 60, 0.18);

  --hairline: 1px solid rgba(180, 98, 60, 0.22);
  --hairline-light: 1px solid rgba(239, 231, 216, 0.12);
  --glass: rgba(245, 240, 230, 0.82);
  --glass-dark: rgba(36, 28, 22, 0.88);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(17px, 1.05vw, 19px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: currentColor;
  text-underline-offset: 0.22em;
  transition: color var(--transition-fast);
}

.surface-oat a:not(.btn):hover,
.surface-terracotta a:not(.btn):hover {
  color: var(--accent-on-light);
}

.surface-clay a:not(.btn):hover,
.surface-umber a:not(.btn):hover {
  color: var(--accent-on-dark);
}

/* ── Surfaces ── */
.surface-oat { background: var(--oat-cream); color: var(--text-on-light); }
.surface-clay { background: var(--clay-brown); color: var(--text-on-dark); }
.surface-umber { background: var(--deep-umber); color: var(--text-on-dark); }
.surface-terracotta { background: var(--terracotta); color: var(--text-on-light); }

.surface-oat.section {
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(180, 98, 60, 0.04) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled,
.site-header:hover {
  box-shadow: var(--shadow-xs);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  transition: opacity var(--transition-fast);
}
.logo-mark:hover { color: var(--accent-on-light); }
.logo-mark svg {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition);
}
.logo-mark:hover svg { transform: scale(1.04); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.site-nav a:hover {
  background: rgba(180, 98, 60, 0.1);
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  background: rgba(143, 69, 40, 0.12);
  color: var(--accent-on-light);
}

/* ── Typography ── */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin: 0 0 1.1rem;
}

.surface-clay .eyebrow,
.surface-umber .eyebrow { color: var(--text-muted-dark); }

h1, h2, h3 {
  font-family: 'Newsreader', serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin: 0 0 0.65rem; line-height: 1.25; }

.text-accent { color: var(--accent-on-light); }
.surface-clay .text-accent,
.surface-umber .text-accent { color: var(--accent-on-dark); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 3vw, 1.75rem);
  padding-right: clamp(1.25rem, 3vw, 1.75rem);
}

.section { padding: var(--section-pad) 0; position: relative; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.3rem; }
.prose p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.75rem;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition-fast);
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--white);
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.surface-oat .btn-secondary:hover {
  background: rgba(36, 28, 22, 0.06);
}

/* ── Hero ── */
.hero-home {
  min-height: 78vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.hero-home__media {
  position: absolute;
  inset: 0;
}

.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
}

.hero-home:hover .hero-home__media img {
  transform: scale(1.03);
}

.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(36, 28, 22, 0.88) 0%,
    rgba(36, 28, 22, 0.45) 45%,
    rgba(36, 28, 22, 0.12) 100%
  );
}

.hero-home__content {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-home__content .eyebrow { color: var(--text-muted-dark); }

.hero-home__content h1 {
  color: var(--text-on-dark);
  max-width: 18ch;
}

.hero-home__content .lead {
  color: var(--text-muted-dark);
  max-width: 44ch;
  margin-bottom: 2.25rem;
}

.hero-home__content .btn-secondary {
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.hero-home__content p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-baseline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  transform-origin: left;
  transform: scaleX(var(--baseline-scale, 0));
  border-radius: 0 2px 2px 0;
}

/* ── Article hero photo ── */
.article-hero-photo {
  margin: 2rem 0;
  padding: 6px;
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.article-hero-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), transparent);
  opacity: 0.6;
}

.article-hero-photo img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
}

.dateline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted-light);
  margin-bottom: 1.5rem;
}

.surface-clay .dateline,
.surface-umber .dateline { color: var(--text-muted-dark); }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  color: var(--text-on-light);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  opacity: 1;
  border-color: rgba(180, 98, 60, 0.35);
}

.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.card:hover .card__img img { transform: scale(1.05); }

.card__body {
  padding: clamp(1.25rem, 2vw, 1.65rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: var(--text-muted-light);
}

.card__teaser {
  margin: 0.65rem 0 1.25rem;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted-light);
}

.card__link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  transition: letter-spacing var(--transition-fast);
}

.card:hover .card__link { letter-spacing: 0.14em; }

/* Light cards always keep dark text on white */
.card.surface-oat {
  background: var(--white);
  color: var(--text-on-light);
}

.card.surface-oat .card__eyebrow,
.card.surface-oat .card__teaser {
  color: var(--text-muted-light);
}

.card.surface-oat .card__link {
  color: var(--accent-on-light);
}

/* Dark cards on light sections */
.card.surface-clay {
  background: var(--clay-brown);
  color: var(--text-on-dark);
  border-color: rgba(239, 231, 216, 0.18);
}

.card.surface-clay .card__eyebrow,
.card.surface-clay .card__teaser {
  color: var(--text-muted-dark);
}

.card.surface-clay .card__link {
  color: var(--accent-on-dark);
}

/* Transparent cards only inside dark sections */
.surface-umber .card:not(.surface-oat):not(.surface-clay) {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-on-dark);
  border-color: var(--hairline-light);
}

.surface-umber .card:not(.surface-oat):not(.surface-clay) .card__eyebrow,
.surface-umber .card:not(.surface-oat):not(.surface-clay) .card__teaser {
  color: var(--text-muted-dark);
}

.surface-umber .card:not(.surface-oat):not(.surface-clay) .card__link {
  color: var(--accent-on-dark);
}

/* ── Featured card ── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.featured-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.featured-card__media { overflow: hidden; }

.featured-card__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 8s ease;
}

.featured-card:hover .featured-card__media img { transform: scale(1.04); }

.featured-card__body {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── About ── */
.about-strip {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.about-strip__photo {
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--terracotta);
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.about-strip:hover .about-strip__photo { transform: scale(1.03); }

.about-strip__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-portrait {
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.about-portrait:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.about-portrait img { border-radius: calc(var(--radius-lg) - 1px); }

/* ── Post figures ── */
.post-figure {
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.post-figure img { border-radius: var(--radius-lg); }

.post-figure figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  margin-top: 0.85rem;
  color: var(--text-muted-light);
  padding: 0 0.25rem;
}

.surface-clay .post-figure figcaption,
.surface-umber .post-figure figcaption { color: var(--text-muted-dark); }

/* ── Forms ── */
.contact-form {
  max-width: 36rem;
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.form-group { margin-bottom: 1.35rem; }

.form-group label:not(.form-check) {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--text-on-light);
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(154, 140, 123, 0.35);
  border-radius: var(--radius-md);
  background: var(--oat-light);
  color: var(--deep-umber);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-group input:not([type="checkbox"]):hover,
.form-group textarea:hover {
  border-color: rgba(180, 98, 60, 0.4);
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: var(--shadow-glow);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Checkbox: left box, text right */
.form-check,
.form-group label.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-on-light);
  cursor: pointer;
}

.contact-form a { color: var(--accent-on-light); }

.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.form-check span { flex: 1; }

#form-notice {
  padding: 1rem 1.25rem !important;
  margin: 1.5rem 0 !important;
  border-radius: var(--radius-md) !important;
  border: 1.5px solid rgba(239, 231, 216, 0.25) !important;
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--clay-brown) !important;
  color: var(--text-on-dark) !important;
}

#form-notice a { color: var(--accent-on-dark); }

.contact-form .btn-primary { margin-top: 0.5rem; }

/* ── Footer ── */
.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.25rem);
  border-top: 3px solid rgba(180, 98, 60, 0.35);
  background: linear-gradient(180deg, #2A2119 0%, var(--deep-umber) 100%);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: var(--hairline-light);
}

.footer-brand {
  max-width: 28rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-logo:hover { color: var(--accent-on-dark); }

.footer-logo svg {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  display: inline-block;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-on-dark);
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--accent-on-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: var(--hairline-light);
}

.footer-contact p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted-dark);
}

.footer-grid a,
.footer-contact a {
  text-decoration: underline;
  text-decoration-color: var(--text-muted-dark);
  color: var(--text-on-dark);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.footer-grid a:hover,
.footer-contact a:hover {
  text-decoration-color: var(--accent-on-dark);
  color: var(--accent-on-dark);
}

.footer-disclaimer {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted-dark);
}

.footer-disclaimer p { margin: 0; }

.footer-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted-dark);
  text-align: center;
  margin: 0;
}

/* ── Journal strip ── */
.journal-strip {
  text-align: center;
  padding: var(--section-pad-sm) 0;
  border-top: var(--hairline);
}

.journal-strip h2 { margin-bottom: 1.25rem; }

/* ── Error page ── */
.error-page {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 { margin-bottom: 1rem; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 1.75rem;
  border-top: var(--hairline-light);
  background: var(--deep-umber);
  color: var(--text-on-dark);
  box-shadow: 0 -12px 48px rgba(36, 28, 22, 0.2);
}

.cookie-banner a:not(.btn) { color: var(--accent-on-dark); }

.cookie-banner .btn-secondary {
  color: var(--text-on-dark);
  border-color: var(--text-muted-dark);
}

.cookie-banner .form-check {
  color: var(--text-on-dark);
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner > p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 52ch;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-custom[hidden] { display: none; }

.cookie-custom {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: var(--hairline-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Reveal animations ── */
.js .reveal {
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-baseline { transform: scaleX(1) !important; }
  .card:hover .card__img img,
  .featured-card:hover .featured-card__media img,
  .hero-home:hover .hero-home__media img { transform: none; }
  .btn:hover,
  .card:hover,
  .featured-card:hover,
  .about-portrait:hover,
  .about-strip:hover .about-strip__photo { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__media img { min-height: 240px; }
  .about-page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
  }

  .site-nav ul { gap: 0.25rem; }

  .site-nav a {
    font-size: 0.65rem;
    padding: 0.4rem 0.7rem;
  }

  .about-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-strip__photo {
    max-width: 130px;
    margin: 0 auto;
  }

  .hero-home { min-height: 65vh; }

  .hero-home__content h1 { max-width: none; }

  .hero-home__content p:last-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-home__content .btn { width: 100%; text-align: center; }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; min-width: 0; }

  .contact-form { padding: 1.5rem; }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
