:root {
  --bg: #faf8f5;
  --bg-dark: #1a1814;
  --text: #2c2825;
  --text-muted: #6b6560;
  --accent: #c45c3e;
  --accent-soft: #e8d5cf;
  --border: #e8e4de;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "DM Sans", "PingFang SC", "Helvetica Neue", sans-serif;
  --wrap: min(1120px, calc(100% - 48px));
  --radius: 12px;
  --shadow: 0 20px 50px rgba(26, 24, 20, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 24, 20, 0.55) 0%, rgba(26, 24, 20, 0.25) 50%, rgba(196, 92, 62, 0.2) 100%),
    url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=1920&q=80") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 120px 0 80px;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.85;
  opacity: 0.92;
  margin: 0 0 36px;
  max-width: 520px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 92, 62, 0.35);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Intro */
.intro {
  padding: 100px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-text h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 24px;
}

.intro-text p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.intro-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.intro-figure figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #fff;
}

/* Section head */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  margin: 8px 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.section-head-light .section-tag,
.section-head-light h2,
.section-head-light p {
  color: #fff;
}

.section-head-light p {
  opacity: 0.75;
}

/* Stories */
.stories {
  padding: 80px 0 100px;
  background: #fff;
}

.story-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.story-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-featured:hover .story-media img {
  transform: scale(1.03);
}

.story-body time {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.story-body h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 12px 0 16px;
  line-height: 1.35;
}

.story-body p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.story-tags li {
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  border-radius: 999px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.story-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.story-card-link {
  display: block;
}

.story-card-img {
  overflow: hidden;
}

.story-card-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s;
}

.story-card:hover .story-card-img img {
  transform: scale(1.06);
}

.story-card-body {
  padding: 20px 22px 24px;
}

.story-card-body time {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.story-card-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 8px 0 10px;
  line-height: 1.4;
}

.story-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery */
.gallery {
  padding: 80px 0 0;
  background: var(--bg-dark);
}

.gallery .section-head {
  padding-bottom: 40px;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
}

.gallery-mosaic figure {
  margin: 0;
  overflow: hidden;
}

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, opacity 0.3s;
}

.gallery-mosaic figure:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery-mosaic .wide {
  grid-column: span 2;
}

/* About */
.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 8px 0 20px;
}

.about-text p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.about-mail {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.2s;
}

.about-mail:hover {
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}

.footer-brand p {
  margin: 6px 0 0;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  text-align: center;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .intro-grid,
  .story-featured,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-mosaic .wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-mosaic .wide {
    grid-column: span 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
