:root {
  --bg: #171311;
  --surface: rgba(31, 26, 23, 0.92);
  --surface-soft: rgba(42, 35, 31, 0.9);
  --text: #eadfcd;
  --muted: #b9a894;
  --line: rgba(205, 171, 122, 0.18);
  --accent: #c79c63;
  --accent-soft: rgba(199, 156, 99, 0.16);
  --accent-wash: rgba(199, 156, 99, 0.07);
  --shadow-soft: 0 26px 54px rgba(0, 0, 0, 0.36);
}

body {
  color-scheme: dark;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(243, 209, 150, 0.18), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(128, 88, 45, 0.22), transparent 28%),
    radial-gradient(circle at 14% 80%, rgba(79, 58, 39, 0.28), transparent 30%),
    linear-gradient(180deg, #14110f 0%, #1b1613 46%, #231d19 100%);
}

.page-shell {
  position: relative;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(transparent, rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      0deg,
      rgba(210, 190, 158, 0.02) 0,
      rgba(210, 190, 158, 0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: soft-light;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 10%, transparent 0, transparent 28%, rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 0.36) 100%);
  opacity: 0.9;
}

.site-header {
  border-bottom-color: rgba(205, 171, 122, 0.24);
}

.brand,
.site-nav a,
.footer-line a {
  color: #eadfcd;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.footer-line a:hover {
  color: var(--accent);
}

.story-page {
  display: grid;
  gap: 0;
}

.story-intro {
  padding-bottom: 8px;
}

.story-hero {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 30px 32px;
  background:
    linear-gradient(145deg, rgba(199, 156, 99, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(40, 33, 30, 0.96), rgba(25, 21, 19, 0.96));
  border: 1px solid rgba(205, 171, 122, 0.16);
  border-left: 3px solid rgba(199, 156, 99, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.story-hero::after,
.story-panel::after,
.story-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.01));
}

.story-copy {
  display: grid;
  gap: 0;
}

.story-title {
  margin: 0;
  color: #f2e7d4;
  font-family: Baskerville, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.9rem);
  line-height: 0.92;
  text-transform: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.story-deck {
  margin: 12px 0 0;
  max-width: 38ch;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.story-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #dbc4a7;
  background: rgba(255, 248, 238, 0.05);
  border: 1px solid rgba(205, 171, 122, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.story-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(205, 171, 122, 0.14);
  background: #1e1815;
  box-shadow: 0 30px 56px rgba(0, 0, 0, 0.34);
}

.story-hero-media::after,
.story-panel-photo::after,
.story-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.22) 100%);
}

.story-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(0.38) sepia(0.24) contrast(1.08) brightness(0.82);
}

.story-section {
  padding-top: 32px;
}

.story-grid {
  display: grid;
  gap: 22px;
}

.story-panel {
  position: relative;
  margin: 0;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(37, 31, 28, 0.96), rgba(24, 20, 18, 0.96));
  border: 1px solid rgba(205, 171, 122, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.story-panel-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-paragraph {
  margin: 14px 0 0;
  color: #d8c7b3;
  font-size: 0.97rem;
  line-height: 1.72;
  max-width: 70ch;
}

.story-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #dbcdbd;
  font-size: 0.95rem;
  line-height: 1.68;
}

.story-list li + li {
  margin-top: 8px;
}

.story-panel-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
  filter: grayscale(0.42) sepia(0.22) contrast(1.08) brightness(0.8);
}

.story-panel-photo figcaption,
.story-gallery-card figcaption {
  margin-top: 10px;
  color: #a99681;
  font-size: 0.84rem;
  line-height: 1.58;
}

.story-gallery {
  display: grid;
  gap: 18px;
}

.story-gallery-card {
  position: relative;
  margin: 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(34, 28, 25, 0.96), rgba(22, 19, 17, 0.96));
  border: 1px solid rgba(205, 171, 122, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.story-gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
  filter: grayscale(0.46) sepia(0.22) contrast(1.1) brightness(0.8);
}

.story-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 171, 122, 0.26);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.intro-kicker,
.story-panel-label,
.project-url-label,
.footer-label {
  color: var(--accent);
}

.hero-text,
.hero-note,
.section-note,
.footer-line {
  color: #b7a591;
}

.section-title {
  color: #f0e0cc;
}

.section-heading {
  margin-bottom: 22px;
}

.contact-separator {
  color: rgba(205, 171, 122, 0.34);
}

@media (min-width: 920px) {
  .story-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
  }

  .story-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-gallery-card-featured {
    grid-column: span 3;
  }

  .story-gallery-card-featured img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .story-hero {
    padding: 22px 20px;
  }

  .story-title {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .story-deck {
    font-size: 0.88rem;
  }

  .story-panel {
    padding: 18px;
  }

  .story-gallery-card {
    padding: 14px;
  }
}
