@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@500&family=Chivo:wght@400;600&family=Faustina:wght@600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --concrete: #1D2321;
  --terrazzo: #333B37;
  --chalk: #F2EEE3;
  --cream: #FAF8F3;
  --white: #FFFFFF;
  --brass: #BE8A2A;
  --brass-light: #D4A24E;
  --brass-soft: rgba(190, 138, 42, 0.12);
  --plum: #5B4451;
  --warm-grey: #8D8880;
  --border: rgba(29, 35, 33, 0.1);
  --border-strong: rgba(29, 35, 33, 0.16);
  --shadow-sm: 0 2px 12px rgba(29, 35, 33, 0.06);
  --shadow-md: 0 8px 32px rgba(29, 35, 33, 0.08);
  --shadow-lg: 0 16px 48px rgba(29, 35, 33, 0.1);
  --measure: 68ch;
  --pad: clamp(3rem, 6vw, 7.5rem);
}

html { scroll-behavior: smooth; font-size: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Chivo', sans-serif;
  font-size: 19px;
  line-height: 1.72;
  color: var(--concrete);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); opacity: 1; }

/* Surfaces — light theme throughout */
.surface-chalk {
  background: var(--chalk);
  color: var(--concrete);
  position: relative;
}
.surface-chalk::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(circle at 1px 1px, rgba(29, 35, 33, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}
.surface-chalk > * { position: relative; }

.surface-terrazzo {
  background: linear-gradient(135deg, #EDE8DC 0%, #E4DDD0 100%);
  color: var(--concrete);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.surface-terrazzo .eyebrow { color: var(--brass); }
.surface-concrete { background: var(--cream); color: var(--concrete); }
.surface-brass { background: var(--brass-soft); color: var(--concrete); border: 1px solid rgba(190, 138, 42, 0.2); }

/* Header — light */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  color: var(--concrete);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.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: 'Faustina', serif;
  font-weight: 700; font-size: 1.5rem;
  text-decoration: none; letter-spacing: 0.02em;
  color: var(--concrete);
}
.logo:hover { color: var(--concrete); opacity: 1; }
.logo span { color: var(--brass); }

.nav-list { display: flex; gap: 1.75rem; list-style: none; }
.nav-list a {
  text-decoration: none; font-size: 0.95rem; font-weight: 600;
  color: var(--concrete);
  transition: color 0.2s;
}
.nav-list a:hover { color: var(--brass); }

.menu-toggle {
  display: none; background: var(--white); border: 1px solid var(--border-strong);
  color: var(--concrete); padding: 0.4rem 0.75rem; cursor: pointer; font-size: 0.85rem;
  border-radius: 4px; font-family: inherit;
}

main { min-height: 60vh; }

.eyebrow {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: 'Faustina', serif;
  font-weight: 700; line-height: 1.15;
  color: var(--concrete);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 600; }

.prose { max-width: var(--measure); }
.prose p { margin-bottom: 1.25em; }
.prose p:last-child { margin-bottom: 0; }

.section { padding: var(--pad) 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.hero-home {
  position: relative; overflow: hidden;
  padding: calc(var(--pad) * 1.1) 1.5rem var(--pad);
  background: linear-gradient(180deg, var(--white) 0%, var(--chalk) 100%);
}
.hero-home::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
}
.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(--brass); }
.hero-photo img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(190, 138, 42, 0.2);
}

.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;
  text-decoration: none; border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn-primary {
  background: var(--brass); color: var(--white);
  border: 2px solid var(--brass); cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--white); }
.btn-secondary {
  background: var(--white); color: var(--concrete);
  border: 2px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brass); color: var(--brass); }

.featured-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem;
  padding: 2.5rem; border-radius: 8px;
  margin-top: 2rem;
}
.featured-card img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(190, 138, 42, 0.15);
}

.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: 3px solid var(--brass);
  box-shadow: var(--shadow-sm);
}

.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: 8px; overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.25s, transform 0.25s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-card .date {
  font-family: 'Azeret Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm-grey); margin-bottom: 0.5rem;
}
.post-card h3 a { text-decoration: none; color: var(--concrete); }
.post-card h3 a:hover { color: var(--brass); }

.article-hero {
  padding: var(--pad) 1.5rem 2rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--chalk) 100%);
}
.article-hero .meta {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--warm-grey); margin: 1rem 0 0;
}
.article-photo {
  max-width: 900px; margin: 2rem auto;
  padding: 0 1.5rem;
}
.article-photo img {
  width: 100%; border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(190, 138, 42, 0.2);
}
.article-body {
  max-width: var(--measure); margin: 0 auto;
  padding: 2rem 1.5rem var(--pad);
}
.caption {
  font-size: 0.85rem; color: var(--warm-grey);
  font-style: italic; margin-top: 0.75rem;
}

.journal-list { display: flex; flex-direction: column; gap: 1.5rem; }
.journal-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
  padding: 2rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white);
  transition: box-shadow 0.25s;
}
.journal-card:hover { box-shadow: var(--shadow-sm); }
.journal-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; }
.journal-card h2 a { color: var(--concrete); text-decoration: none; }
.journal-card h2 a:hover { color: var(--brass); }

.more-strip {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--chalk);
}
.more-strip > a {
  font-family: 'Faustina', serif;
  font-size: 1.35rem; font-weight: 600;
  display: block; text-align: center; margin-bottom: 2rem;
  text-decoration: none; color: var(--concrete);
}
.more-strip > a:hover { color: var(--brass); }
.more-cards {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Footer — light & structured */
.site-footer {
  background: var(--white);
  color: var(--concrete);
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.9rem; line-height: 1.65;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Faustina', serif;
  font-weight: 700; font-size: 1.65rem;
  text-decoration: none; color: var(--concrete);
  display: inline-block; margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--brass); }
.footer-logo:hover { color: var(--concrete); }
.footer-tagline { color: var(--warm-grey); max-width: 32ch; line-height: 1.6; }
.footer-nav h3, .footer-contact h3 {
  font-family: 'Azeret Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem; font-weight: 500;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { text-decoration: none; color: var(--concrete); font-weight: 600; }
.footer-nav a:hover { color: var(--brass); }
.footer-contact p { margin-bottom: 0.75rem; color: var(--warm-grey); }
.footer-contact a { color: var(--brass); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--brass-light); }
.footer-bottom { padding-top: 1.75rem; }
.footer-disclaimer { color: var(--warm-grey); font-size: 0.82rem; margin-bottom: 1rem; line-height: 1.65; }
.footer-copy { font-size: 0.82rem; color: var(--warm-grey); }

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
.contact-visual img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(190, 138, 42, 0.2);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.contact-visual figcaption {
  font-size: 0.85rem; color: var(--warm-grey);
  font-style: italic; margin-top: 0.75rem;
}
.contact-form {
  max-width: none;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong); border-radius: 6px;
  font-family: inherit; font-size: 1rem; background: var(--cream);
  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(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Checkbox left, text right */
.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.form-check input[type="checkbox"] {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--brass);
  cursor: pointer;
}
.form-check label {
  flex: 1;
  margin: 0;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.55;
  cursor: pointer;
}
.form-check label a { color: var(--brass); font-weight: 600; }

.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; }

.error-page { text-align: center; padding: calc(var(--pad) * 1.5) 1.5rem; }
.error-page h1 { margin-bottom: 1rem; }
.error-visual {
  max-width: 480px; margin: 0 auto 2rem;
  border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.error-visual img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.thanks-page { text-align: center; padding: calc(var(--pad) * 1.2) 1.5rem; }
.thanks-page h1 { margin-bottom: 1rem; }

/* Cookie banner — light */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--white);
  color: var(--concrete);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(29, 35, 33, 0.1);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
#cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner { max-width: 1100px; margin: 0 auto; }
.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: var(--white);
  color: var(--concrete); cursor: pointer; border-radius: 6px;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-actions button:first-child {
  background: var(--brass); border-color: var(--brass); color: var(--white);
}
.cookie-actions button:first-child:hover { background: var(--brass-light); }
.cookie-actions button:hover { border-color: var(--brass); }
#cookie-panel { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
#cookie-panel.is-open { display: block; }
.cookie-check {
  display: flex; flex-direction: row; align-items: center;
  gap: 0.65rem; margin-bottom: 0.5rem; font-size: 0.9rem; cursor: pointer;
}
.cookie-check input { flex: 0 0 auto; width: 1rem; height: 1rem; accent-color: var(--brass); }
.cookie-check span { flex: 1; }

.sun-line {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--brass); z-index: 200; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .sun-line { display: none; } }

.js .reveal { transition: opacity 0.5s ease; }
.js .reveal:not(.is-visible) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-inner { position: relative; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-list.is-open { display: flex; }
  .hero-grid, .featured-card, .about-strip, .journal-card, .contact-layout, .footer-grid {
    grid-template-columns: 1fr;
  }
  .about-strip img { width: 140px; height: 140px; }
  .contact-form { padding: 1.5rem; }
}
