/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0f0d0b;
  --ink: #1a1613;
  --paper: #e8dfd0;
  --paper-warm: #d9cebb;
  --muted: #7a7164;
  --accent: #b83a2a;
  --accent-dim: #8a2c20;
  --rule: #2f2922;
  --rule-light: #3d352c;
  --bg: var(--black);

  --serif-display: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2ebe0;
    --ink: #1a1613;
    --paper: #1a1613;
    --paper-warm: #2f2922;
    --muted: #6b6255;
    --accent: #b83a2a;
    --accent-dim: #8a2c20;
    --rule: #c9bca8;
    --rule-light: #d9cebb;
  }
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--paper); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.muted { color: var(--muted); }

/* ── Drop cap ── */
.dropcap {
  float: left;
  font-family: var(--serif-display);
  font-size: 3.6em;
  line-height: 0.8;
  margin-right: 0.15em;
  margin-top: -0.05em;
  color: var(--accent);
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 1.5rem;
}
.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}
.site-title {
  font-family: var(--serif-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-list a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-list a:hover { color: var(--paper); }

/* ── Hero ── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.8rem, 10vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero-word {
  display: block;
  color: var(--paper);
}
.hero-word:last-of-type { color: var(--accent); }
.hero-location {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Section headings ── */
.section-heading {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}

/* ── Gallery ── */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.gallery-card {
  break-inside: avoid;
}
.gallery-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}
.placeholder-img {
  border: 1px solid var(--rule);
}
.gallery-placeholder-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}
.gallery-card figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.gallery-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* ── About ── */
.about-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.about-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1em;
}
.about-body p {
  margin-bottom: 1em;
  color: var(--paper-warm);
}
.about-body p:last-child { margin-bottom: 0; }

/* ── Book / Form ── */
.book-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.book-intro {
  font-size: 1rem;
  color: var(--paper-warm);
  margin-bottom: 2rem;
}
.book-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-row label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--mono);
}
.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--paper);
  transition: border-color 0.15s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; }
.form-actions {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--paper); color: var(--black); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-status {
  font-size: 0.85rem;
  color: var(--muted);
}
.book-also {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-inner {
  margin-bottom: 1rem;
}
.footer-line {
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.attribution {
  font-size: 0.7rem;
  opacity: 0.6;
}
.attribution a { color: var(--muted); }
.attribution a:hover { color: var(--paper); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-headline { font-size: clamp(2rem, 14vw, 3.5rem); }
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading { font-size: 1.8rem; }
  .site-nav { height: 3rem; }
  .nav-list { gap: 1rem; }
  .nav-list a { font-size: 0.75rem; }
  .about-section,
  .book-section,
  .gallery-section { padding-left: 1rem; padding-right: 1rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
