@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@500&family=Libre+Baskerville:wght@400;700&family=Syne:wght@600;700&display=swap');

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

:root {
  --slate: #0a0e14;
  --slate-raised: #121820;
  --slate-card: #161d28;
  --parchment: #E8E2D6;
  --parchment-dim: #B8B0A4;
  --filament: #A8B4C4;
  --teal: #4A8F8C;
  --teal-dim: #2D5C5A;
  --rust: #C4786A;
  --ash: #8A8580;
  --border: rgba(168, 180, 196, 0.14);
  --border-strong: rgba(168, 180, 196, 0.28);
  --glow-teal: rgba(74, 143, 140, 0.15);
  --measure: 68ch;
  --pad: clamp(3.25rem, 6vw, 8rem);
  --radius: 6px;
}

html { scroll-behavior: smooth; font-size: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Libre Baskerville', serif;
  font-size: 19px;
  line-height: 1.74;
  color: var(--parchment);
  background: var(--slate);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--filament); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--parchment); opacity: 1; }

.surface-parchment { background: var(--slate-raised); color: var(--parchment); }
.surface-slate { background: var(--slate); color: var(--parchment); }
.surface-teal { background: var(--teal-dim); color: var(--parchment); }
.surface-filament {
  background: linear-gradient(135deg, var(--slate-card) 0%, #1a2433 50%, var(--slate-card) 100%);
  color: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--parchment);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45); }

.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.45rem;
  text-decoration: none; letter-spacing: 0.01em;
  color: var(--parchment);
}
.logo span { color: var(--teal); }

.nav-list { display: flex; gap: 1.75rem; list-style: none; }
.nav-list a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  font-family: 'Syne', sans-serif; color: var(--parchment-dim);
}
.nav-list a:hover { color: var(--teal); opacity: 1; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  color: var(--parchment); padding: 0.4rem 0.75rem; cursor: pointer;
  font-size: 0.85rem; border-radius: var(--radius);
}

main { min-height: 60vh; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700; line-height: 1.18;
  color: var(--parchment);
}
h1 { font-size: clamp(2.35rem, 4.8vw, 4.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; }

.prose { max-width: var(--measure); color: var(--parchment-dim); }
.prose p { margin-bottom: 1.3em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--teal); }
.prose a:hover { color: var(--filament); }

.pull-quote {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem; font-weight: 600;
  border-left: 3px solid var(--teal);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0; color: var(--teal);
}

.section { padding: var(--pad) 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.page-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.page-hero-photo img {
  width: 100%; object-fit: cover;
  min-height: 260px; max-height: 400px;
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-strong);
}
.contact-layout {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 3rem; align-items: start;
}
.contact-sidebar img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.5rem;
}
.error-visual {
  max-width: 480px; margin: 0 auto 2rem;
}
.error-visual img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-home {
  position: relative; overflow: hidden;
  padding: calc(var(--pad) * 1.1) 1.5rem var(--pad);
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, var(--glow-teal) 0%, transparent 60%),
    var(--slate);
}
.hero-home::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--filament) 15%, var(--filament) 85%, transparent);
  opacity: 0.4;
}
.hero-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-text h1 .accent { color: var(--teal); }
.hero-text p { color: var(--parchment-dim); }
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-strong);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.75rem;
  font-weight: 600; font-size: 0.95rem; font-family: 'Syne', sans-serif;
  text-decoration: none; border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
a.btn { text-decoration: none; }
.btn-primary,
a.btn-primary,
button.btn-primary {
  background: var(--teal); color: #fff !important; border: 1px solid var(--teal);
}
.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: #5aa8a4; border-color: #5aa8a4; color: #fff !important;
}
.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: transparent; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  border-color: #fff; color: #fff !important; background: rgba(255, 255, 255, 0.08);
}
button.btn { cursor: pointer; font-family: 'Syne', sans-serif; color: #fff !important; }

.featured-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem;
  padding: 2.5rem; border-radius: var(--radius);
  margin-top: 2rem;
  background: var(--slate-card);
  border: 1px solid var(--border);
}
.featured-card img {
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  width: 100%; height: 100%; object-fit: cover; min-height: 240px;
}

.about-strip {
  display: grid; grid-template-columns: 180px 1fr; gap: 2rem;
  align-items: center; margin-top: 3rem; padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.about-strip img {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--teal);
  box-shadow: 0 8px 32px rgba(74, 143, 140, 0.2);
}

.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  background: var(--slate-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.post-card img { width: 100%; height: 200px; object-fit: cover; background: var(--slate-card); min-height: 200px; }
.post-card > a { display: block; text-decoration: none; background: var(--slate-card); }
.post-card > a { display: block; overflow: hidden; }
.post-card > a img { transition: transform 0.35s ease; }
.post-card:hover > a img { transform: scale(1.03); }
.post-card-body { padding: 1.5rem; }
.post-card .date {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 0.5rem;
}
.post-card h3 a { text-decoration: none; font-family: 'Syne', sans-serif; color: var(--parchment); }
.post-card h3 a:hover { color: var(--teal); }
.post-card p { color: var(--parchment-dim); font-size: 0.95rem; margin-top: 0.5rem; }

.article-hero { padding: var(--pad) 1.5rem 2rem; }
.article-hero .meta {
  font-family: 'DM Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--ash); margin: 1rem 0 2rem;
}
.article-photo {
  max-width: 900px; margin: 2rem auto;
  padding: 0 1.5rem;
}
.article-photo img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-strong);
}
.article-body {
  max-width: var(--measure); margin: 0 auto;
  padding: 2rem 1.5rem var(--pad);
}
.article-body .caption {
  font-size: 0.85rem; color: var(--ash);
  font-style: italic; margin-top: 0.75rem;
}

.journal-list { display: flex; flex-direction: column; gap: 2rem; }
.journal-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--slate-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.journal-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.journal-card img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--slate-card);
  min-height: 180px;
}
.journal-card > a { display: block; background: var(--slate-card); }
.journal-card h2 a { color: var(--parchment); text-decoration: none; }
.journal-card h2 a:hover { color: var(--teal); }

.more-strip {
  text-align: center; padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}
.more-strip a {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--teal);
}

/* ── Footer ── */
.site-footer {
  background: var(--slate);
  color: var(--parchment-dim);
  padding: 4rem 1.5rem 2.5rem;
  font-size: 0.9rem; line-height: 1.65;
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--filament) 70%, transparent);
  opacity: 0.5;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.5rem;
  text-decoration: none; color: var(--parchment);
  display: inline-block; margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--teal); }
.footer-tagline {
  color: var(--ash); font-size: 0.88rem;
  max-width: 28ch; line-height: 1.6;
}
.footer-col h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--filament); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--parchment-dim); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--teal); }
.footer-contact p { margin-bottom: 0.4rem; }
.footer-contact a { color: var(--teal); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-disclaimer {
  color: var(--ash); font-size: 0.8rem;
  margin-bottom: 1rem; line-height: 1.6;
}
.footer-copy { font-size: 0.82rem; color: var(--ash); }
.footer-copy a { color: var(--filament); }

/* ── Forms ── */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-group > label {
  display: block; font-weight: 700; margin-bottom: 0.4rem;
  font-size: 0.95rem; font-family: 'Syne', sans-serif;
  color: var(--parchment);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit; font-size: 1rem;
  background: var(--slate-card);
  color: var(--parchment);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--glow-teal);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
}
.form-check input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem;
  min-width: 1.15rem; margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.form-check label {
  display: block;
  flex: 1;
  font-weight: 400;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--parchment-dim);
  margin-bottom: 0;
  cursor: pointer;
}
.form-check label a { color: var(--teal); }
.form-msg { padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.form-msg.ok { background: rgba(74, 143, 140, 0.12); border: 1px solid var(--teal); color: var(--parchment); }
.form-msg.err { background: rgba(196, 120, 106, 0.12); border: 1px solid var(--rust); color: var(--parchment); }

.privacy-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.privacy-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
.privacy-content ul { margin: 0.75rem 0 1.25rem 1.5rem; }
.privacy-content li { margin-bottom: 0.5rem; color: var(--parchment-dim); }

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

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--slate-card);
  color: var(--parchment);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  will-change: transform;
}
#cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner { max-width: 1100px; margin: 0 auto; }
.cookie-inner p { color: var(--parchment-dim); font-size: 0.9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.cookie-actions button {
  padding: 0.6rem 1.25rem; font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--parchment); cursor: pointer; border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-actions button { color: #fff; }
.cookie-actions button:first-child { background: var(--teal); border-color: var(--teal); color: #fff; }
.cookie-actions button:hover { border-color: var(--teal); }
#cookie-panel { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
#cookie-panel.is-open { display: block; }
#cookie-panel label {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--parchment-dim);
}

.filament-line {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--filament));
  z-index: 200; pointer-events: none;
  will-change: width;
}
@media (prefers-reduced-motion: reduce) { .filament-line { display: none; } }

.surface-parchment {
  background-image:
    linear-gradient(rgba(168, 180, 196, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 180, 196, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.js .reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal:not(.is-visible) { opacity: 1; transform: translateY(14px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal img,
.js img.reveal,
.js .hero-photo img,
.js .about-strip img,
.js .post-card > a,
.js .journal-card > a,
.js .featured-card > img,
.js .page-hero-photo img,
.js .contact-sidebar img,
.js .error-visual img,
.js .article-photo img {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--slate-card); flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-list.is-open { display: flex; }
  .hero-grid, .featured-card, .about-strip, .journal-card,
  .page-hero-grid, .contact-layout { grid-template-columns: 1fr; }
  .about-strip img { width: 140px; height: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
