:root {
  --ink: #2b2620;
  --ink-soft: #5a5147;
  --paper: #faf6ef;
  --paper-alt: #f1ead9;
  --accent: #8a5a3b;
  --accent-dark: #6e4529;
  --line: #e2d8c4;
  --max: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--accent-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-name {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-weight: bold;
}
.site-header nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--accent-dark); }
.music-toggle {
  margin-left: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.music-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.music-toggle.playing {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  height: 78vh;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
}
.hero-slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  font-family: Georgia, serif;
  color: #f1e4cf;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-overlay h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-sub {
  font-size: 1.15rem;
  margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); }

/* Intro */
.intro {
  max-width: 720px;
  margin: 56px auto;
  padding: 0 24px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* Section shared */
section.stories, section.gallery, section.share {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.section-head h2, .gallery h2 {
  margin: 0;
  font-size: 1.6rem;
}
.view-all {
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.view-all--center {
  display: block;
  text-align: center;
  margin-top: 32px;
}

/* Stories */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}
.story-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.story-card--muted { opacity: 0.65; font-style: italic; }
.story-date { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.story-title { margin: 0 0 12px; font-size: 1.15rem; color: var(--accent-dark); }
.story-text { margin: 0 0 12px; }
.story-by { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.story-photo {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 0 14px;
}
.story-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 14px;
}
.story-media-grid-item {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
}

/* Gallery */
.gallery-cat { margin-bottom: 32px; }
.gallery-cat h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.gallery-cat h3 a {
  color: var(--accent-dark);
  text-decoration: none;
}
.gallery-cat h3 a:hover {
  text-decoration: underline;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Share */
section.share {
  background: var(--paper-alt);
  border-radius: 8px;
  text-align: center;
}
.share h2 { margin-top: 0; }
.share-form {
  max-width: 520px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.share-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.share-form input, .share-form textarea {
  font-family: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
  color: var(--ink);
}
.share-form button { align-self: flex-start; cursor: pointer; }
.share-form button:disabled { opacity: 0.6; cursor: default; }
.share-alt { margin-top: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.share-thanks { font-size: 1.1rem; padding: 20px 0; }

/* Honeypot: visually hidden but present in the DOM/tab order isn't an
   issue since tabindex=-1 skips it; kept off-screen rather than
   display:none so basic bots that check visibility still fill it in. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-row img { height: 160px; }
  .site-header nav a { margin-left: 14px; font-size: 0.85rem; }
  .music-toggle { margin-left: 12px; width: 26px; height: 26px; font-size: 0.9rem; }
}
