/* =====================================================================
   Santiago Andrade León — Digital Sanctuary
   Contemplative minimalism · earth palette · ceremonial motion
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --cream:      #F7F3EC;
  --cream-deep: #EFE9DE;
  --clay:       #B37A56;
  --terracotta: #A15D42;
  --forest:     #465043;
  --charcoal:   #1D1D1D;

  --ink:        #2A2722;
  --ink-soft:   #6B6358;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --measure: 38rem;
  --maxw: 1300px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --page-x: clamp(1.5rem, 6vw, 7rem);

  --bg: var(--cream);
  --bg-deep: var(--cream-deep);
  --header-bg: rgba(247, 243, 236, 0.86);
  --line: rgba(70, 80, 67, 0.22);
  --line-soft: rgba(70, 80, 67, 0.14);
  color-scheme: light;
}

/* ---------- dark theme (warm, not pure black) ---------- */
html[data-theme="dark"] {
  --cream:      #161310;
  --cream-deep: #211C16;
  --clay:       #C79A77;
  --terracotta: #CE805F;
  --forest:     #93A187;
  --ink:        #EDE6D8;
  --ink-soft:   #A99E8C;
  --bg:         #161310;
  --bg-deep:    #211C16;
  --header-bg:  rgba(22, 19, 16, 0.86);
  --line:       rgba(147, 161, 135, 0.26);
  --line-soft:  rgba(147, 161, 135, 0.16);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: background 0.7s var(--ease), color 0.7s var(--ease);
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background-image: 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0;
}
.display {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 300;
}
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

p { margin: 0 0 1.4em; max-width: var(--measure); }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--terracotta);
  margin: 0 0 1.8rem;
}

/* ---------- layout ---------- */
.shell { position: relative; z-index: 2; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--page-x); }
section { padding-block: clamp(5rem, 14vh, 11rem); }
.divider {
  width: 100%; max-width: var(--maxw); margin-inline: auto; height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--page-x);
  mix-blend-mode: multiply;
  transition: background 0.6s var(--ease);
}
.site-header.solid {
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  mix-blend-mode: normal;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.5vw, 1.5rem); }
.nav a {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.4s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--terracotta); transition: width 0.5s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.lang {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  border: 1px solid rgba(70,80,67,0.3);
  background: transparent;
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.lang:hover { color: var(--ink); border-color: var(--terracotta); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding-block: 8rem;
}
.hero-inner { position: relative; z-index: 2; max-width: 50rem; }
.hero .display { margin-bottom: 2rem; }
.hero .lead { margin-inline: auto; }
.hero .eyebrow { margin-inline: auto; }
.hero p { margin-inline: auto; }

/* organic signature form */
.organic {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: auto;
  width: min(80vw, 760px);
  height: min(80vw, 760px);
  pointer-events: none;
  opacity: 0.9;
}
.organic.float { animation: breathe 14s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.85; }
  50%      { transform: scale(1.045) translateY(-14px); opacity: 1; }
}

/* about page portrait */
.about-portrait-wrap { position: relative; display: grid; place-items: center; }
.about-portrait-wrap .organic { position: absolute; width: 118%; height: 118%; inset: auto; }
.about-portrait {
  position: relative; z-index: 1; width: 100%; max-width: 440px; height: auto;
  filter: drop-shadow(0 30px 60px rgba(29,29,29,0.26));
}

/* home hero with portrait */
.hero-home { text-align: left; }
.hero-home .hero-inner { max-width: none; margin: 0; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
.hero-home .hero-copy { max-width: 34rem; }
.hero-home .hero-copy .lead, .hero-home .hero-copy p { margin-left: 0; margin-right: 0; }
.hero-portrait-wrap { position: relative; display: grid; place-items: center; }
.hero-portrait-wrap .organic { position: absolute; width: 116%; height: 116%; inset: auto; }
.hero-portrait {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px; height: auto;
  filter: drop-shadow(0 30px 60px rgba(29,29,29,0.28));
}
@media (max-width: 860px) {
  .hero-home .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-home { text-align: center; }
  .hero-home .hero-copy { max-width: 100%; }
  .hero-home .hero-copy .lead, .hero-home .hero-copy p { margin-inline: auto; }
  .hero-portrait-wrap { order: -1; }
  .hero-portrait { max-width: 340px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--terracotta);
  transition: letter-spacing 0.5s var(--ease), color 0.4s var(--ease);
}
.btn:hover { letter-spacing: 0.3em; color: var(--terracotta); }

/* solid ceremonial button (forms / primary actions) */
.btn-send {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 1.05rem 2.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), letter-spacing 0.5s var(--ease);
}
.btn-send:hover { background: transparent; color: var(--terracotta); letter-spacing: 0.28em; }
html[data-theme="dark"] .btn-send { color: var(--bg); }
html[data-theme="dark"] .btn-send:hover { color: var(--terracotta); background: transparent; }

/* ---------- content blocks ---------- */
.col-narrow { max-width: var(--measure); }
.centered { margin-inline: auto; text-align: center; }
.centered p { margin-inline: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 4rem;
}
.theme h3 { color: var(--forest); margin-bottom: 0.6rem; }
.theme p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- gallery (exhibition style) ---------- */
.exhibit {
  display: grid;
  gap: clamp(5rem, 12vh, 9rem);
  margin-top: 4rem;
}
.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.work:nth-child(even) .work-text { order: -1; }
.work-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
  overflow: hidden;
  box-shadow: 0 30px 70px -50px rgba(29,29,29,0.5);
}
.work-frame svg { width: 100%; height: 100%; }
.work-text .eyebrow { margin-bottom: 1.2rem; }
.work-text h3 { margin-bottom: 1rem; }
.work-text p { color: var(--ink-soft); }
.work-meta { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-top: 1.5rem; }

/* photography grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 4rem;
}
.photo {
  aspect-ratio: 3 / 4;
  background: var(--cream-deep);
  overflow: hidden;
  position: relative;
}
.photo:nth-child(3n) { aspect-ratio: 1 / 1; }
.photo svg { width: 100%; height: 100%; }
.photo figcaption {
  position: absolute; left: 1rem; bottom: 0.9rem;
  font-family: var(--serif); font-size: 1.05rem; color: var(--cream);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* teachings */
.teaching { max-width: var(--measure); margin-inline: auto; }
.teaching + .teaching { margin-top: clamp(4rem, 9vh, 7rem); }
blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 300; line-height: 1.35; font-style: italic; color: var(--forest);
}
blockquote cite {
  display: block; font-family: var(--sans); font-style: normal; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-top: 1.6rem;
}

/* contact */
.contact-form { max-width: 34rem; margin-top: 3rem; }
.field { margin-bottom: 2rem; }
.field label { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.7rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.6rem 0; font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--ink);
  transition: border-color 0.4s var(--ease);
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--terracotta); }
.field textarea { resize: vertical; min-height: 7rem; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(4rem, 10vh, 7rem) var(--page-x) 3rem;
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; align-items: start;
}
.site-footer .brand { line-height: 1.25; }
.site-footer .brand small { color: var(--ink-soft); display: block; margin-top: 0.5rem; }
.foot-nav { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.foot-nav a { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.foot-nav a:hover { color: var(--terracotta); }
.foot-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.4rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.foot-social a { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: all 0.4s var(--ease); }
.foot-social a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.copyright { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-soft); grid-column: 1 / -1; margin-top: 0.5rem; }
@media (max-width: 640px) { .site-footer { grid-template-columns: 1fr; } }

/* theme toggle (round, icon) */
.theme-toggle {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  width: 2.1rem; height: 2.1rem; border-radius: 100px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--terracotta); }
.theme-toggle svg { width: 15px; height: 15px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); will-change: opacity, transform; }
.reveal.seen { opacity: 1; transform: none; }

/* ---------- language toggle ---------- */
html[lang="es"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="es"] { display: none !important; }

/* ---------- extended components ---------- */
.universes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 4rem; }
@media (max-width: 980px) { .universes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .universes { grid-template-columns: 1fr; } }
.universe { display: block; position: relative; padding: 2.4rem 2rem 2.2rem; background: var(--bg-deep); overflow: hidden; transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.universe:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -55px rgba(29,29,29,0.55); }
.universe .u-form { position: absolute; right: -30%; top: -30%; width: 80%; height: 80%; opacity: 0.5; pointer-events: none; }
.universe .num { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.24em; color: var(--clay); display: block; margin-bottom: 1.2rem; }
.universe h3 { color: var(--forest); margin-bottom: 0.7rem; position: relative; }
.universe p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; position: relative; }
.universe .go { display: inline-block; margin-top: 1.4rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); }

.subsection { max-width: var(--measure); margin-inline: auto; }
.subsection + .subsection { margin-top: clamp(3.5rem, 8vh, 6rem); }
.subsection h3 { color: var(--forest); margin-bottom: 1rem; }
.subsection p { color: var(--ink-soft); }

.stories { display: grid; gap: clamp(3rem, 7vh, 5rem); margin-top: 4rem; }
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story:nth-child(even) .story-art { order: 1; }
.story-art { aspect-ratio: 1 / 1; background: var(--bg-deep); overflow: hidden; box-shadow: 0 30px 60px -50px rgba(29,29,29,0.5); }
.story-art svg { width: 100%; height: 100%; }
.story h3 { margin-bottom: 1rem; }
.story p { color: var(--ink-soft); }
.story .work-meta { margin-top: 1rem; }

.albums { display: grid; gap: clamp(3.5rem, 8vh, 6rem); margin-top: 4rem; }
.album { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.album:nth-child(even) .album-art { order: 1; }
.album-art { aspect-ratio: 1 / 1; overflow: hidden; box-shadow: 0 30px 60px -45px rgba(29,29,29,0.55); }
.album-art svg, .album-art iframe { width: 100%; height: 100%; }
.album-art iframe { aspect-ratio: auto; height: 380px; border: 0; border-radius: 12px; }
.album h3 { margin-bottom: 0.5rem; }
.album .work-meta { margin: 0 0 1.4rem; }
.album p { color: var(--ink-soft); }
.tracklist { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.tracklist li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--ink-soft); }
.tracklist li span:last-child { font-variant-numeric: tabular-nums; color: var(--clay); }
.embed-slot { margin-top: 1.6rem; border: 1px dashed var(--line); border-radius: 14px; padding: 1.5rem; text-align: center; }
.embed-slot small { display: block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.8rem; }

.books { display: grid; gap: clamp(3.5rem, 8vh, 6rem); margin-top: 4rem; }
.book { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-cover { aspect-ratio: 3 / 4.4; overflow: hidden; position: relative; box-shadow: 0 35px 65px -45px rgba(29,29,29,0.6); }
.book-cover svg { width: 100%; height: 100%; }
.book-cover .ct { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; color: var(--cream); }
.book-cover .ct .bt { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.book-cover .ct .ba { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.6rem; opacity: 0.85; }
.book h3 { margin-bottom: 0.4rem; }
.book .excerpt { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--forest); border-left: 2px solid var(--clay); padding-left: 1.4rem; margin: 1.6rem 0; }
.book .related { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-top: 1rem; }

.letters { max-width: 46rem; margin: 4rem auto 0; }
.letter { display: block; padding: 2.6rem 0; border-top: 1px solid var(--line-soft); transition: padding-left 0.6s var(--ease); }
.letter:last-child { border-bottom: 1px solid var(--line-soft); }
.letter:hover { padding-left: 1rem; }
.letter .l-meta { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.8rem; }
.letter h3 { margin-bottom: 0.8rem; transition: color 0.4s var(--ease); }
.letter:hover h3 { color: var(--terracotta); }
.letter p { color: var(--ink-soft); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: flex-start; position: fixed; inset: 0; background: var(--bg); padding: 6rem var(--page-x); gap: 1.5rem; z-index: 40; overflow-y: auto; }
  .nav.open a { font-size: 1.05rem; }
  .menu-toggle { display: block; z-index: 60; }
}
@media (max-width: 860px) {
  .two-col, .work, .story, .album, .book { grid-template-columns: 1fr; }
  .work:nth-child(even) .work-text, .story:nth-child(even) .story-art, .album:nth-child(even) .album-art { order: 0; }
  .book-cover { max-width: 280px; }
}

/* =====================================================================
   Diario (blog) — index cards + post layout
   ===================================================================== */
.diario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); margin-top: 4rem; }
@media (max-width: 980px) { .diario-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .diario-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--bg-deep); overflow: hidden; transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -55px rgba(29,29,29,0.5); }
.post-card .pc-img { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .pc-img img { transform: scale(1.04); }
.post-card .pc-body { padding: 1.6rem 1.7rem 2rem; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); }
.post-meta { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.5rem; }
.post-card h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0.9rem 0 0.7rem; color: var(--forest); }
.post-card p.exc { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 1.3rem; }
.post-card .go { margin-top: auto; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); }
.post-wrap { max-width: 44rem; margin-inline: auto; }
.post-hero-img { max-width: var(--maxw); margin: 0 auto; aspect-ratio: 16 / 8; overflow: hidden; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-head { text-align: center; max-width: 44rem; margin: clamp(2.5rem,6vh,4rem) auto 0; }
.post-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 1rem 0; }
.post-head .sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }
.post-head .post-meta { margin-top: 1.2rem; }
.post-body { max-width: 40rem; margin: clamp(2.5rem,6vh,4rem) auto 0; }
.post-body p { font-size: 1.05rem; line-height: 1.85; margin: 0 0 1.5rem; max-width: none; }
.post-body h3.post-h { font-family: var(--serif); color: var(--forest); font-size: 1.5rem; margin: 2.4rem 0 1rem; text-align: center; }
.post-foot { max-width: 40rem; margin: 3.5rem auto 0; text-align: center; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .organic.float { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* mobile menu open: header must be opaque (defeat multiply blend) */
.site-header.menu-open { mix-blend-mode: normal; background: var(--bg); }
.nav.open { background: var(--bg); }

/* ---- mobile menu: full-height, opaque, scrollable ---- */
@media (max-width: 1080px) {
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100svh;
    background: var(--bg); padding: 5.5rem var(--page-x) 3rem; z-index: 45; overflow-y: auto;
  }
  .nav.open a { font-size: 1.05rem; }
  .nav.open .theme-toggle, .nav.open .lang { margin-top: 0.5rem; }
}

/* ---- post hero image: clear the fixed header, cap height ---- */
.post-hero-img { margin-top: 5.5rem; aspect-ratio: 16 / 7; max-height: 74vh; }
@media (max-width: 860px) { .post-hero-img { aspect-ratio: 4 / 3; margin-top: 4.5rem; } }

/* ---- reusable artwork figure (digital paintings inline) ---- */
.artwork { margin: clamp(2.5rem, 6vh, 4rem) auto; max-width: 48rem; }
.artwork img { width: 100%; height: auto; display: block; box-shadow: 0 50px 90px -55px rgba(29,29,29,0.6); }
.artwork figcaption { text-align: center; margin-top: 1.2rem; }
.artwork .art-title { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--forest); }
.artwork .art-sub { display: block; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); margin-top: 0.55rem; }

/* post page: non-collapsing top offset so hero image clears fixed header */
.post-page { padding-top: clamp(4.5rem, 9vh, 6.5rem); }
.post-hero-img { margin-top: 0; }
