@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@500&family=Readex+Pro:wght@400;500&family=Schibsted+Grotesk:wght@600;700&display=swap');

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

:root {
  --charcoal: #12161A;
  --slate: #1C232B;
  --frost: #EAF0F0;
  --mint: #6FC7B6;
  --rose: #E1727F;
  --steel: #8A97A0;
  --measure: 40rem;
  --pad-section: clamp(5.25rem, 8vw, 7.5rem);
  --font-head: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Readex Pro', system-ui, sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--mint);
}

a:hover { filter: brightness(1.08); }

.surface-frost { background-color: var(--frost); color: var(--charcoal); }
.surface-char { background-color: var(--charcoal); color: var(--frost); }
.surface-slate { background-color: var(--slate); color: var(--frost); }
.surface-mint { background-color: var(--mint); color: var(--charcoal); }
.surface-rose { background-color: var(--rose); color: var(--charcoal); }

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(234, 240, 240, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--mint); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--mint);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.35rem, 4.5vw, 4.25rem); font-weight: 700; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 0.75rem; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.35rem; }
.prose p:last-child { margin-bottom: 0; }

.dateline {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn-primary { background: var(--mint); color: var(--charcoal); }
.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.glide-trail-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  opacity: 0.5;
}

.glide-trail-scroll svg { width: 100%; height: 100%; }

.hero {
  position: relative;
  padding-block: var(--pad-section);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero h1 em { font-style: normal; color: var(--mint); }

.hero-image {
  box-shadow: 0 24px 48px rgba(18, 22, 26, 0.35);
  border-radius: 2px;
}

.hero-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.article-hero-image {
  margin: 2rem 0;
  box-shadow: 0 16px 40px rgba(18, 22, 26, 0.2);
  border-radius: 2px;
}

.article-hero-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.article-body { padding-block: var(--pad-section); }
.article-body .prose { margin-inline: auto; }

.card-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(18, 22, 26, 0.12);
  border-radius: 2px;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 40px rgba(18, 22, 26, 0.18);
}

.card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .dateline { font-size: 11px; margin-bottom: 0.5rem; }
.card-body p { margin: 0 0 1rem; font-size: 0.95rem; flex: 1; }

.card-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--mint);
}

.featured-card { display: grid; gap: 0; }

@media (min-width: 768px) {
  .featured-card { grid-template-columns: 1fr 1.1fr; }
}

.featured-card .card-image img { aspect-ratio: 4/3; height: 100%; }
.featured-card .card-body { padding: 2rem 2.25rem; justify-content: center; }

.about-strip {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: var(--pad-section);
}

@media (min-width: 640px) {
  .about-strip { grid-template-columns: 200px 1fr; }
}

.about-strip img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(18, 22, 26, 0.2);
}

.section { padding-block: var(--pad-section); }
.section-header { margin-bottom: 2.5rem; max-width: 36rem; }

.hairline { border: none; border-top: 1px solid rgba(138, 151, 160, 0.25); margin: 2.5rem 0; }

.surface-char .hairline,
.surface-slate .hairline { border-color: rgba(234, 240, 240, 0.15); }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; font-size: 0.95rem; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--steel);
  background: var(--frost);
  color: var(--charcoal);
}

.form-group textarea { min-height: 8rem; resize: vertical; }

.form-check { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 36rem; }
.form-check input { margin-top: 0.35rem; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.site-footer {
  padding-block: 2.5rem 2rem;
  border-top: 1px solid rgba(234, 240, 240, 0.08);
  font-size: 0.9rem;
}

.site-footer .container { display: grid; gap: 1rem; }

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--steel);
  max-width: 42rem;
  line-height: 1.6;
}

.surface-char.site-footer .footer-disclaimer,
.surface-slate.site-footer .footer-disclaimer { color: rgba(234, 240, 240, 0.7); }

.footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(18, 22, 26, 0.25);
}

#cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cookie-customise {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(138, 151, 160, 0.25);
}

.js .reveal { transition: opacity 0.65s ease, transform 0.65s ease; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0.92;
    transform: translateY(14px);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-image {
  margin: 2rem 0;
  box-shadow: 0 8px 24px rgba(18, 22, 26, 0.1);
  border-radius: 2px;
}

.post-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.post-image figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0.6rem 0.75rem;
  color: var(--steel);
}

.error-page { text-align: center; padding-block: calc(var(--pad-section) * 1.5); }
.error-page h1 { margin-bottom: 1rem; }

.label-main {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--mint);
  color: var(--charcoal);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
}

.more-strip {
  padding-block: 3rem;
  text-align: center;
  border-top: 1px solid rgba(138, 151, 160, 0.2);
}

.more-strip a { font-weight: 500; }

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr min(22rem, 38%);
  }
}

.contact-form-wrap { max-width: 36rem; }

.contact-photo {
  margin: 0;
  box-shadow: 0 16px 40px rgba(18, 22, 26, 0.15);
  border-radius: 2px;
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.contact-photo figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0.75rem 0.85rem;
  color: var(--steel);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .contact-photo { order: -1; max-width: 20rem; }
}
