:root {
  --ink: #0f0f0d;
  --ink-soft: #1a1a17;
  --paper: #f7f3e9;
  --paper-muted: #e8dfcf;
  --gold: #d8aa3c;
  --gold-strong: #efb82b;
  --sage: #8ea08b;
  --sea: #2f6671;
  --white: #ffffff;
  --text-muted: rgba(247, 243, 233, 0.78);
  --border: rgba(247, 243, 233, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--paper);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(15, 15, 13, 0.93);
  border-bottom: 1px solid var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  color: var(--gold-strong);
  font-size: 15px;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text span {
  color: var(--paper);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
}

.brand-text small {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 38px);
  font-size: 17px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: rgba(247, 243, 233, 0.86);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-strong);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 13, 0.62);
  padding: 11px;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  background: var(--paper);
  margin: 6px 0;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/images/hero-tree-valley.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 15, 13, 0.9) 0%, rgba(15, 15, 13, 0.56) 44%, rgba(15, 15, 13, 0.16) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(15, 15, 13, 0) 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 150px clamp(20px, 5vw, 72px) 76px;
}

.eyebrow,
.section-kicker,
.story-meta {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(54px, 8vw, 116px);
  line-height: 0.98;
}

.hero-tagline {
  margin-bottom: 22px;
  color: var(--paper);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 600;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: clamp(21px, 2.2vw, 27px);
}

.hero-actions,
.guide-button {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--gold-strong);
  color: #15110a;
}

.button.secondary {
  border-color: var(--gold);
  color: var(--gold-strong);
  background: rgba(15, 15, 13, 0.18);
}

.button.quiet {
  color: var(--paper);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.button:focus-visible,
.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-1px);
}

.section-pad {
  padding: 92px clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: clamp(34px, 6vw, 96px);
  background: var(--ink);
}

.intro h2,
.section-heading h2,
.podcast h2,
.about h2,
.newsletter h2 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(35px, 4.4vw, 64px);
  line-height: 1.08;
}

.intro-text {
  align-self: end;
  color: var(--text-muted);
  font-size: 21px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-strong);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.photo-stories {
  background: #141410;
}

.photo-stories .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(620px, 0.82fr);
  gap: 42px;
  align-items: end;
  max-width: none;
  margin-bottom: 26px;
}

.photo-stories .section-heading h2 {
  max-width: 760px;
  justify-self: end;
  font-size: clamp(38px, 3.45vw, 66px);
  text-wrap: balance;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.story-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin: 0 0 32px;
}

.story-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 170, 60, 0.5) transparent;
}

.filter-button,
.gallery-arrows button {
  border: 1px solid rgba(216, 170, 60, 0.42);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 243, 233, 0.82);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 14px;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active,
.gallery-arrows button:hover,
.gallery-arrows button:focus-visible {
  border-color: var(--gold-strong);
  background: rgba(239, 184, 43, 0.16);
  color: var(--gold-strong);
}

.filter-button.is-active {
  box-shadow: inset 0 -3px 0 var(--gold-strong);
}

.filter-button:hover,
.filter-button:focus-visible,
.gallery-arrows button:hover,
.gallery-arrows button:focus-visible {
  transform: translateY(-1px);
}

.gallery-arrows {
  display: flex;
  gap: 10px;
}

.gallery-arrows button {
  min-width: 58px;
  min-height: 40px;
  padding: 8px 13px;
}

.gallery-arrows button:disabled {
  border-color: rgba(247, 243, 233, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(247, 243, 233, 0.3);
  cursor: default;
  transform: none;
}

.stories-viewport {
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.stories-viewport::before,
.stories-viewport::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 18px;
  width: 48px;
  pointer-events: none;
}

.stories-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #141410 0%, rgba(20, 20, 16, 0) 100%);
}

.stories-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #141410 0%, rgba(20, 20, 16, 0) 100%);
}

.stories-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 34vw);
  grid-template-rows: repeat(2, 420px);
  gap: 18px;
  min-width: min-content;
  padding: 4px 0 18px;
  transition: transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.story-card {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
  isolation: isolate;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.story-card-large {
  grid-row: span 2;
  grid-column: span 2;
}

.story-card-wide {
  grid-column: span 2;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
  transition: transform 520ms ease, filter 520ms ease;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 15, 13, 0.92) 0%, rgba(15, 15, 13, 0.38) 50%, rgba(15, 15, 13, 0.03) 100%);
}

.story-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(239, 184, 43, 0);
  background: radial-gradient(circle at 18% 18%, rgba(239, 184, 43, 0.2), rgba(239, 184, 43, 0) 34%);
  opacity: 0;
  transition: opacity 260ms ease, border-color 260ms ease;
  pointer-events: none;
}

.story-card div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  transition: transform 260ms ease;
}

.story-card h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.12;
}

.story-card p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.story-card:hover,
.story-card:focus-within {
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.48);
}

.story-card:hover img,
.story-card:focus-within img {
  transform: scale(1.035);
  filter: saturate(1.12) contrast(1.06);
}

.story-card:hover div,
.story-card:focus-within div {
  transform: translateY(-6px);
}

.story-card:hover::before,
.story-card:focus-within::before {
  border-color: rgba(239, 184, 43, 0.42);
  opacity: 1;
}

.story-card.is-hidden {
  display: none;
}

.story-card.is-revealed {
  animation: storyReveal 860ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes storyReveal {
  from {
    opacity: 0;
    filter: blur(12px) saturate(0.92);
    transform: translateY(34px) scale(0.955);
  }

  to {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateY(0) scale(1);
  }
}

.guides {
  background: var(--paper);
  color: var(--ink);
}

.guides .section-kicker,
.guides .guide-item span {
  color: #86651d;
}

.guides h2 {
  color: var(--ink);
}

.guide-list {
  display: grid;
  gap: 14px;
  margin: 36px 0 30px;
}

.guide-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(15, 15, 13, 0.18);
}

.guide-item:last-child {
  border-bottom: 1px solid rgba(15, 15, 13, 0.18);
}

.guide-item span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.guide-item h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.16;
}

.guide-item p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(15, 15, 13, 0.72);
  font-size: 20px;
}

.guides .button.secondary {
  border-color: #8c681f;
  color: #5f4512;
  background: transparent;
}

.podcast {
  background:
    linear-gradient(rgba(15, 15, 13, 0.78), rgba(15, 15, 13, 0.82)),
    url("assets/images/mainhattan-bridges.jpg") center / cover fixed;
}

.podcast-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.52fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--border);
  background: rgba(15, 15, 13, 0.72);
  backdrop-filter: blur(14px);
}

.podcast-copy p:not(.section-kicker) {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 22px;
}

.play-button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  border: 2px solid var(--gold-strong);
  background: var(--gold-strong);
  color: #17130b;
  padding: 14px 24px;
  font-weight: 900;
  cursor: pointer;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #17130b;
}

.play-button.is-playing .play-icon {
  width: 15px;
  height: 18px;
  border: 0;
  background: linear-gradient(90deg, #17130b 0 35%, transparent 35% 65%, #17130b 65% 100%);
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.platform-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--border);
  color: rgba(247, 243, 233, 0.84);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.platform-links a:hover,
.platform-links a:focus-visible {
  border-color: var(--gold);
  color: var(--gold-strong);
}

.episodes {
  display: grid;
  gap: 14px;
}

.episodes article {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.episodes article:last-child {
  border-bottom: 1px solid var(--border);
}

.episodes p {
  margin-bottom: 4px;
  color: var(--sage);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.episodes h3 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 24px;
  line-height: 1.2;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: #10100e;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-copy p:not(.section-kicker) {
  color: var(--text-muted);
  font-size: 21px;
}

.about-copy .note {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: rgba(247, 243, 233, 0.64);
  font-size: 17px;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  background: var(--sea);
  color: var(--paper);
}

.newsletter p:not(.section-kicker) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
}

.signup label {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
}

.signup div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.signup input {
  min-width: 0;
  min-height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 12px 16px;
}

.signup input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px clamp(20px, 5vw, 72px);
  background: #070706;
  border-top: 1px solid var(--border);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 30px;
}

.site-footer nav a {
  color: rgba(247, 243, 233, 0.72);
  text-decoration: none;
  font-weight: 700;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--gold-strong);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding: 90px 28px 40px;
    background: rgba(15, 15, 13, 0.97);
    font-size: 30px;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .intro,
  .section-heading,
  .podcast-panel,
  .about,
  .newsletter {
    grid-template-columns: 1fr;
  }

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

  .gallery-arrows {
    justify-content: flex-end;
  }

  .stories-grid {
    grid-auto-columns: minmax(280px, 78vw);
    grid-template-rows: repeat(2, 280px);
  }

}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  .brand-text span {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding: 128px 18px 44px;
  }

  .hero-actions,
  .guide-button {
    display: grid;
  }

  .button,
  .play-button {
    width: 100%;
  }

  .section-pad {
    padding: 68px 18px;
  }

  .stories-grid {
    grid-auto-columns: minmax(260px, 86vw);
    grid-template-rows: 430px;
  }

  .story-card,
  .story-card-large {
    grid-column: auto;
    grid-row: auto;
  }

  .story-card-wide {
    grid-column: auto;
  }

  .stories-viewport::before,
  .stories-viewport::after {
    width: 28px;
  }

  .guide-item {
    grid-template-columns: 44px 1fr;
  }

  .signup div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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