@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Eczar:wght@600;700&family=Mulish:wght@400;600&display=swap');

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

:root {
  --char: #1A1614;
  --text: #1A1614;
  --text-soft: #3D3530;
  --text-muted: #6B625A;
  --umber: #2E2622;
  --chalk: #FAF8F5;
  --paper: #FFFFFF;
  --panel: #F3EDE4;
  --panel-border: #E4DAD0;
  --oxblood: #8E3B34;
  --olive: #5F6B45;
  --ash: #857E76;
  --shadow: rgba(26, 22, 20, 0.08);
  --measure: min(68ch, 100%);
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 6.5rem);
}

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Mulish', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--oxblood);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--umber); }

/* Surfaces — all light, dark readable text */
.surface-chalkbone { background: var(--chalk); color: var(--text); }
.surface-paper { background: var(--paper); color: var(--text); }
.surface-panel {
  background: var(--panel);
  color: var(--text-soft);
  border: 1px solid var(--panel-border);
}
.surface-umber { background: var(--panel); color: var(--text-soft); }
.surface-char { background: var(--paper); color: var(--text); }
.surface-oxblood { background: var(--oxblood); color: var(--paper); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: 0 1px 0 var(--shadow);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: 'Eczar', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}

.site-logo:hover { color: var(--oxblood); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--oxblood);
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--oxblood);
}

/* Switch line */
.switch-line {
  height: 2px;
  background: linear-gradient(to right, var(--oxblood) 0%, var(--oxblood) 50%, transparent 50%, transparent 100%);
  background-size: 8px 2px;
  border: none;
  margin: 0;
}

.switch-line-solid {
  height: 2px;
  background: var(--oxblood);
  border: none;
  margin: 0;
}

/* Typography */
.eyebrow {
  font-family: 'Anonymous Pro', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: 'Eczar', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.65rem, 3vw + 0.5rem, 2.35rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

.dateline {
  font-family: 'Anonymous Pro', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.prose {
  max-width: var(--measure);
  color: var(--text-soft);
}

.prose p { margin: 0 0 1.35em; }
.prose p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: 'Eczar', Georgia, serif;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.65rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--oxblood);
  background: var(--panel);
  color: var(--text);
  border-radius: 0 8px 8px 0;
}

/* Layout */
.page-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--section-pad) var(--pad-x);
}

.page-wrap-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: var(--section-pad) var(--pad-x);
}

/* Hero */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 20, 0.88) 0%, rgba(26, 22, 20, 0.45) 50%, rgba(26, 22, 20, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem var(--pad-x) 4.5rem;
  width: 100%;
  color: var(--paper);
}

.hero-content h1 { color: var(--paper); }
.hero-content p { color: rgba(255, 255, 255, 0.92); }
.hero-content .eyebrow { color: #E8C4BF; }

.hero-content h1 .accent { color: #F0B4AC; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-content .btn-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-content .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn:hover {
  box-shadow: 0 4px 16px var(--shadow);
}

.btn-primary {
  background: var(--oxblood);
  color: var(--paper);
}

.btn-primary:hover { background: #7A322C; color: var(--paper); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
  background: var(--panel);
  color: var(--text);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 22, 20, 0.12);
  color: var(--text);
}

.card-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-dek {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  flex: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--oxblood);
  margin-top: auto;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow);
}

@media (min-width: 48rem) {
  .featured-card { grid-template-columns: 1.1fr 1fr; }
}

.featured-card-photo { min-height: 16rem; }
.featured-card-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 16rem; }

.featured-card-body {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-body p { color: var(--text-soft); }

.about-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: var(--section-pad) var(--pad-x);
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 40rem) {
  .about-strip { grid-template-columns: 12rem 1fr; }
}

.about-strip p { color: var(--text-soft); }

.about-strip-photo {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--paper);
  box-shadow: 0 4px 20px var(--shadow);
}

.about-strip.surface-panel {
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 10px;
  padding: var(--section-pad) var(--pad-x);
}

/* Article */
.article-hero-photo {
  margin: 2rem 0 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
}

.article-hero-photo img { width: 100%; }

.journal-strip {
  padding: var(--section-pad) var(--pad-x);
  max-width: 72rem;
  margin: 0 auto;
  background: var(--panel);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.journal-strip h2 { margin-bottom: 2rem; }

.note-box {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-soft);
}

.note-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Forms */
.contact-form { margin-top: 2rem; }

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

.form-group > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.75rem 1rem;
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--oxblood);
  box-shadow: 0 0 0 3px rgba(142, 59, 52, 0.12);
}

.form-group textarea { min-height: 8rem; resize: vertical; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 40rem;
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  border: 2px solid var(--ash);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.form-check input[type="checkbox"]:checked {
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.05rem;
  width: 0.35rem;
  height: 0.65rem;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
}

.form-check label {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 400;
  cursor: pointer;
}

.form-check label a {
  font-weight: 600;
}

.contact-form .btn-primary { margin-top: 0.25rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-portrait {
  width: 8rem;
  height: 8rem;
  margin: 2rem 0 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 16px var(--shadow);
}

.contact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--olive);
  border-radius: 0 8px 8px 0;
  color: var(--text-soft);
}

.contact-details strong { color: var(--text); }

/* Footer */
.site-footer {
  padding: 3.5rem var(--pad-x) 2rem;
  background: var(--paper);
  border-top: 1px solid var(--panel-border);
  margin-top: auto;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 40rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Eczar', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-logo:hover { color: var(--oxblood); }

.footer-logo .logo-mark {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}

.footer-tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-heading {
  font-family: 'Anonymous Pro', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.45rem; }

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links a:hover { color: var(--oxblood); }

.footer-address {
  font-style: normal;
  line-height: 1.75;
}

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

.footer-address a:hover { color: var(--oxblood); }

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

.footer-disclaimer {
  margin: 0 0 1rem;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-disclaimer a { font-weight: 600; }

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ash);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--panel-border);
  box-shadow: 0 -4px 24px var(--shadow);
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 16rem;
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-soft);
}

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

.cookie-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.cookie-panel {
  max-width: 72rem;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
}

.cookie-save-btn { margin-top: 1rem; }

/* 404 */
.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.error-page h1 { margin-bottom: 1rem; }

/* Thanks */
.thanks-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Privacy sections */
.privacy-section { margin-bottom: 2.5rem; }
.privacy-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.privacy-section p { color: var(--text-soft); }
