@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;1,400&family=Manrope:wght@500;600;700&family=Roboto+Mono:wght@500&display=swap');

:root {
  --bg: #FAF7F2;
  --bg-soft: #F2EBE0;
  --bg-card: #FFFFFF;
  --ink: #1A1824;
  --ink-muted: #5C5854;
  --ink-faint: #8A857E;
  --teal: #2A6B6A;
  --teal-soft: rgba(42, 107, 106, 0.1);
  --gold: #C4932E;
  --gold-soft: rgba(196, 147, 46, 0.12);
  --border: rgba(26, 24, 36, 0.1);
  --border-strong: rgba(26, 24, 36, 0.16);
  --shadow-sm: 0 2px 12px rgba(26, 24, 36, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 24, 36, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 24, 36, 0.1);
  --radius: 6px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
}

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

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

a:hover { color: #1f5251; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Surfaces — all light */
.surface-parchment { background: var(--bg); color: var(--ink); }
.surface-fig { background: var(--bg-soft); color: var(--ink); }
.surface-teal { background: var(--teal-soft); color: var(--ink); }
.surface-gold { background: var(--gold-soft); color: var(--ink); }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.reading { max-width: 42rem; margin: 0 auto; }

.eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

.datestamp {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

.dek {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Header — light & airy */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color .2s;
}

.nav-link:hover { color: var(--teal); opacity: 1; }

.nav-cta {
  text-decoration: none;
  padding: .55rem 1.15rem;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  transition: background .2s, color .2s;
}

.nav-cta:hover {
  background: var(--teal);
  color: #fff;
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: .45rem .85rem;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--ink);
}

.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

/* Hero — light overlay, centered content */
.hero-fullbleed {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--teal-soft) 100%);
}

.hero-fullbleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-fullbleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(250, 247, 242, 0.97) 0%,
    rgba(250, 247, 242, 0.88) 38%,
    rgba(250, 247, 242, 0.45) 62%,
    rgba(250, 247, 242, 0.2) 100%
  );
  z-index: 1;
}

.hero-fullbleed .hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  /* inherit .container width — do NOT set width:100% */
}

.hero-panel {
  max-width: 36rem;
  padding: 2.25rem 2.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-fullbleed h1 {
  color: var(--ink);
  max-width: none;
  margin: 0 0 .5rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: .06em;
}

.hero-fullbleed .eyebrow {
  color: var(--teal);
  margin-bottom: .75rem;
}

.hero-fullbleed .hero-tagline {
  color: var(--ink);
  font-size: 1.15rem;
  max-width: 34ch;
  margin-top: .75rem;
  line-height: 1.6;
}

.hero-fullbleed .hero-tagline em {
  font-style: normal;
  color: var(--teal);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-1px); opacity: 1; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42, 107, 106, 0.25);
}

.btn-primary:hover {
  background: #1f5251;
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Cards — light */
.featured-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.featured-card .card-photo {
  margin: -0.5rem -0.5rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid var(--border);
}

.featured-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.featured-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.featured-card h2 a:hover { color: var(--teal); }

.featured-card p {
  color: var(--ink-muted);
  max-width: 62ch;
  line-height: 1.72;
}

.about-teaser {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.about-teaser img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: var(--shadow-sm);
}

.post-feed { display: grid; gap: .75rem; margin-top: 2rem; }

.post-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
  transform: translateY(-2px);
  opacity: 1;
}

.post-card img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.post-card h3 { margin: .25rem 0; font-size: 1.08rem; }
.post-card .dek { font-size: .95rem; color: var(--ink-muted); margin: 0; }

.article-hero { margin-bottom: 2rem; }

.article-hero img,
.article-body img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}

.article-body p { margin: 0 0 1.25rem; }
.article-body p:last-child { margin-bottom: 0; }

.pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--gold);
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-muted);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote cite {
  display: block;
  margin-top: .75rem;
  font-size: .85rem;
  font-style: normal;
  font-family: 'Roboto Mono', monospace;
  color: var(--ink-faint);
}

.portrait-wrap { max-width: 320px; margin: 0 auto 2rem; }

.portrait-wrap img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}

.journal-grid { display: grid; gap: 1rem; margin-top: 2rem; }

.journal-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  background: var(--bg-card);
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}

.journal-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
  opacity: 1;
}

.journal-card img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.journal-card .chapter-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
}

.more-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.mini-card {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}

.mini-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--teal);
  opacity: 1;
}

.mini-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  margin-bottom: .75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

/* Footer — beautiful light */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  font-size: .9rem;
  line-height: 1.65;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  margin-bottom: .5rem;
}

.footer-tagline {
  color: var(--ink-muted);
  max-width: 28ch;
  margin: 0;
  font-size: .95rem;
}

.footer-heading {
  font-family: 'Manrope', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .85rem;
}

.footer-col p {
  margin: 0 0 .35rem;
  color: var(--ink-muted);
}

.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--teal); opacity: 1; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-muted);
}

.footer-links a:hover { color: var(--teal); opacity: 1; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  color: var(--ink-faint);
  max-width: 62ch;
  font-size: .84rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.footer-copy {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

/* Legacy footer-grid support */
.footer-grid { display: grid; gap: 1.5rem; }

/* Forms */
.form-surface {
  background: var(--bg-card);
  color: var(--ink);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: .35rem;
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border-strong);
  font: inherit;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Checkbox left, text right */
.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: .2rem 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.form-check label,
.form-check span {
  flex: 1;
  cursor: pointer;
}

.form-check a { color: var(--teal); }

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-aside {
  padding: 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-aside h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.contact-meta {
  display: grid;
  gap: .65rem;
  margin-top: 1.25rem;
}

.contact-meta span {
  font-size: .95rem;
  color: var(--ink-muted);
}

.contact-meta strong {
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
}

.alert {
  padding: 1rem 1.15rem;
  border: 1px solid var(--teal);
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--ink);
}

.alert-success { background: rgba(42, 107, 106, 0.12); }

.grain-parchment {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
}

.meridian-line {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
  border-radius: 0 2px 0 0;
  pointer-events: none;
  will-change: transform;
}

/* Image placeholder when missing */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--teal-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Cookie banner — light */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  color: var(--ink);
  padding: 1.25rem;
  z-index: 300;
  transform: translateY(110%);
  transition: transform .35s ease;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(26, 24, 36, 0.08);
}

#cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner > p {
  flex: 1 1 320px;
  margin: 0;
  font-size: .88rem;
  color: var(--ink-muted);
  max-width: 62ch;
  line-height: 1.55;
}

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

.cookie-actions button {
  padding: .55rem 1.1rem;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, border-color .2s;
}

.cookie-actions button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.cookie-actions #cookie-accept {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.cookie-actions #cookie-accept:hover {
  background: #1f5251;
  color: #fff;
}

#cookie-panel {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: none;
}

#cookie-panel.is-open { display: block; }

.cookie-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  font-size: .9rem;
  color: var(--ink-muted);
}

.cookie-option input { accent-color: var(--teal); }

.error-page { text-align: center; padding: 6rem 0; }
.error-page h1 { margin-bottom: 1rem; color: var(--teal); }

/* Reveal animations */
.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity .65s ease, transform .65s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none !important; transform: none !important; }
  .meridian-line { display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-list.is-open { display: flex; }

  .site-header { position: sticky; }

  .post-card,
  .journal-card { grid-template-columns: 1fr; }

  .post-card img,
  .journal-card img { width: 100%; height: 160px; }

  .about-teaser {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-fullbleed { min-height: 58vh; }

  .hero-panel { padding: 1.75rem 1.5rem; }

  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }

  .featured-card { padding: 1.5rem; }
}
