:root {
  --abyss: #071820;
  --deep: #0C2A36;
  --pool: #164556;
  --glacier: #6EB4C4;
  --steam: #E7F3F6;
  --mist: #D0E4EA;
  --paper: #F3F8FA;
  --ink: #0F2430;
  --mute: #5A7582;
  --line: rgba(12, 42, 54, 0.12);
  --warm: #C4896A;
  --display: "Literata", Georgia, "Times New Roman", serif;
  --ui: "Sora", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --step-0: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.9rem + 2.6vw, 3.9rem);
  --space-s: clamp(0.75rem, 0.7rem + 0.3vw, 1rem);
  --space-m: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --space-l: clamp(2rem, 1.7rem + 1.2vw, 3rem);
  --space-xl: clamp(3rem, 2.4rem + 2vw, 5rem);
  --wrap: min(100% - 2rem, 1120px);
}

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

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 {
  font-family: var(--ui);
  font-size: var(--step-0);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 90% -5%, rgba(110, 180, 196, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(196, 137, 106, 0.08), transparent 45%),
    linear-gradient(180deg, #D8E8EE 0%, var(--paper) 38%, #EEF5F7 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 1000;
  background: var(--deep);
  color: var(--steam);
  padding: 0.55rem 1rem;
}
.skip:focus { left: 0.5rem; }

/* —— Steam atmosphere —— */
.vapor {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 28%),
    radial-gradient(circle at 75% 40%, rgba(110, 180, 196, 0.12), transparent 32%);
  animation: vapor-drift 20s ease-in-out infinite alternate;
}
@keyframes vapor-drift {
  from { opacity: 0.55; transform: translateY(0); }
  to { opacity: 0.9; transform: translateY(-18px); }
}

.site { position: relative; z-index: 1; }

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 248, 250, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 248, 250, 0.92);
}
.nav-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: grid;
  gap: 0.1rem;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--deep);
}
.brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pool);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: var(--glacier);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--deep);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(243, 248, 250, 0.97);
  padding: 1rem var(--space-m) 1.25rem;
}
.nav-drawer.is-open { display: grid; gap: 0.85rem; }
.nav-drawer a {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--deep);
}
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--steam);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  animation: hero-breathe 16s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  to { transform: scale(1.05); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 24, 32, 0.25) 0%, rgba(7, 24, 32, 0.55) 45%, rgba(7, 24, 32, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(110, 180, 196, 0.25), transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
  padding: var(--space-xl) 0 var(--space-l);
  max-width: 38rem;
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 40px rgba(110, 180, 196, 0.35);
}
.hero-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--glacier);
}
.hero h1 {
  font-family: var(--ui);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(231, 243, 246, 0.88);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  background: var(--glacier);
  color: var(--abyss);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.hero-cta:hover {
  transform: translateY(-2px);
  background: #8ec9d6;
}
.hero-cta svg { width: 1rem; height: 1rem; }

/* Condensation line signature */
.dew-line {
  height: 1px;
  width: var(--wrap);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--glacier), transparent);
  position: relative;
}
.dew-line::before,
.dew-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glacier);
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(110, 180, 196, 0.6);
}
.dew-line::before { left: 12%; }
.dew-line::after { right: 18%; }

/* —— Sections —— */
.section {
  width: var(--wrap);
  margin-inline: auto;
  padding: var(--space-xl) 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: var(--space-l);
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glacier);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.1;
  color: var(--deep);
  max-width: 16ch;
}
.section-head p {
  color: var(--mute);
  max-width: 32ch;
  font-size: var(--step-0);
}

/* Featured asymmetric */
.featured {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
@media (min-width: 900px) {
  .featured {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-xl);
  }
  .featured-copy { padding-top: var(--space-l); }
}
.featured-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/4;
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.featured:hover .featured-media img { transform: scale(1.04); }
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 24, 32, 0.35), transparent 45%);
  pointer-events: none;
}
.folio {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steam);
  background: rgba(7, 24, 32, 0.45);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(110, 180, 196, 0.35);
}
.featured h3 {
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep);
  margin: 0.5rem 0 0.85rem;
}
.featured h3 a:hover { color: var(--pool); }
.featured-excerpt {
  color: var(--mute);
  margin-bottom: 1.25rem;
  max-width: 42ch;
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pool);
  border-bottom: 1px solid var(--glacier);
  padding-bottom: 0.15rem;
  transition: gap 0.25s var(--ease);
}
.read-link:hover { gap: 0.7rem; }

/* Article grid — not identical cards */
.essay-grid {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 720px) {
  .essay-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-m) var(--space-m);
  }
  .essay-grid .essay:nth-child(1) { grid-column: span 7; }
  .essay-grid .essay:nth-child(2) { grid-column: span 5; }
  .essay-grid .essay:nth-child(3) { grid-column: span 5; }
  .essay-grid .essay:nth-child(4) { grid-column: span 7; }
  .essay-grid .essay:nth-child(5) { grid-column: span 6; }
  .essay-grid .essay:nth-child(6) { grid-column: span 6; }
}
.essay {
  display: grid;
  gap: 0.85rem;
}
.essay-thumb {
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
.essay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.92);
}
.essay:hover .essay-thumb img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.essay-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: var(--step--1);
  color: var(--mute);
  letter-spacing: 0.04em;
}
.essay-meta .temp {
  color: var(--pool);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.essay h3 {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.2;
  color: var(--deep);
}
.essay h3 a:hover { color: var(--pool); }
.essay p {
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 48ch;
}

/* Strip band */
.band {
  margin: var(--space-l) 0 0;
  padding: var(--space-xl) 0;
  background:
    linear-gradient(135deg, var(--deep) 0%, var(--pool) 55%, #1a5568 100%);
  color: var(--steam);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(110, 180, 196, 0.25), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08), transparent 35%);
  pointer-events: none;
}
.band-inner {
  position: relative;
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  gap: var(--space-m);
}
@media (min-width: 800px) {
  .band-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
  }
}
.band h2 {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.1;
  max-width: 14ch;
}
.band p {
  color: rgba(231, 243, 246, 0.82);
  max-width: 42ch;
  margin-bottom: 1.25rem;
}
.band a.read-link {
  color: var(--glacier);
  border-bottom-color: rgba(110, 180, 196, 0.5);
}

/* —— Page chrome —— */
.page-hero {
  width: var(--wrap);
  margin: var(--space-l) auto var(--space-m);
  max-width: 40rem;
}
.page-hero .kicker { color: var(--pool); }
.page-hero h1 {
  font-family: var(--display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.05;
  color: var(--deep);
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.85rem;
}
.page-hero p {
  color: var(--mute);
  font-size: var(--step-1);
  max-width: 42ch;
}

/* Article page */
.article-hero {
  position: relative;
  min-height: min(62svh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--steam);
  margin-bottom: var(--space-l);
}
.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero .hero-veil {
  background: linear-gradient(180deg, rgba(7, 24, 32, 0.15), rgba(7, 24, 32, 0.82));
}
.article-hero-copy {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
  padding: var(--space-xl) 0 var(--space-l);
  max-width: 42rem;
}
.article-hero-copy .kicker { color: var(--glacier); }
.article-hero-copy h1 {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.08;
  margin: 0.4rem 0 0.75rem;
}
.article-hero-copy .byline {
  color: rgba(231, 243, 246, 0.7);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.prose {
  width: min(100% - 2rem, 680px);
  margin: 0 auto var(--space-xl);
}
.prose > p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 3.4rem;
  float: left;
  line-height: 0.85;
  padding: 0.15rem 0.55rem 0 0;
  color: var(--pool);
  font-weight: 600;
}
.prose p {
  margin-bottom: 1.15rem;
  color: #243944;
  font-size: 1.05rem;
}
.prose h2 {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--deep);
  margin: 2rem 0 0.85rem;
  line-height: 1.15;
}
.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--glacier);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--deep);
}
.prose figure {
  margin: 1.75rem 0;
  overflow: hidden;
}
.prose figure img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.prose figcaption {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--mute);
  letter-spacing: 0.02em;
}
.prose .end-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--mute);
}

.more-essays {
  width: var(--wrap);
  margin: 0 auto var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line);
}
.more-essays h2 {
  font-family: var(--display);
  font-size: var(--step-2);
  margin-bottom: var(--space-m);
  color: var(--deep);
}

/* Legal */
.legal {
  width: min(100% - 2rem, 720px);
  margin: 0 auto var(--space-xl);
}
.legal h1 {
  font-family: var(--display);
  font-size: var(--step-3);
  color: var(--deep);
  margin-bottom: 0.5rem;
}
.legal .meta {
  color: var(--mute);
  font-size: var(--step--1);
  margin-bottom: var(--space-l);
}
.legal h2 {
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--deep);
  margin: 1.75rem 0 0.65rem;
}
.legal p, .legal li {
  color: #243944;
  margin-bottom: 0.85rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal a {
  color: var(--pool);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* About */
.about-grid {
  width: var(--wrap);
  margin: 0 auto var(--space-xl);
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}
.about-photo {
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-body p {
  margin-bottom: 1.1rem;
  color: #243944;
  font-size: 1.05rem;
}
.about-body h2 {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--deep);
  margin: 1.5rem 0 0.75rem;
}

/* Footer */
.footer {
  background: var(--abyss);
  color: rgba(231, 243, 246, 0.78);
  padding: var(--space-xl) 0 var(--space-m);
  margin-top: var(--space-l);
}
.footer-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--steam);
  margin-bottom: 0.65rem;
}
.footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 0.75rem;
}
.footer p { font-size: 0.92rem; max-width: 36ch; }
.footer ul { display: grid; gap: 0.45rem; }
.footer a {
  color: rgba(231, 243, 246, 0.78);
  font-size: 0.92rem;
}
.footer a:hover { color: var(--glacier); }
.footer-bottom {
  width: var(--wrap);
  margin: var(--space-l) auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(110, 180, 196, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(231, 243, 246, 0.5);
}

/* Cookie */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 420px;
  margin-left: auto;
  padding: 1.15rem 1.2rem;
  background: rgba(7, 24, 32, 0.94);
  color: var(--steam);
  border: 1px solid rgba(110, 180, 196, 0.35);
  backdrop-filter: blur(12px);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.cookie.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie p {
  font-size: 0.88rem;
  color: rgba(231, 243, 246, 0.82);
  margin-bottom: 0.95rem;
  line-height: 1.5;
}
.cookie a { color: var(--glacier); text-decoration: underline; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.cookie-actions button {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.cookie-accept {
  background: var(--glacier);
  color: var(--abyss);
}
.cookie-reject {
  border: 1px solid rgba(110, 180, 196, 0.45);
  color: var(--steam);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hero-brand { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .featured-media { aspect-ratio: 4/3; }
}
