/* There's Something In The Water — light flex redesign */
:root {
  --color-bg: #f3f0e6;
  --color-bg-deep: #2b291a;
  --color-bg-mid: #3d3a28;
  --color-surface: #e8e4d4;
  --color-ink: #1f1e16;
  --color-ink-soft: #4a4738;
  --color-muted: #6e6a58;
  --color-water: #1a6f8a;
  --color-water-bright: #2a8fad;
  --color-moss: #575235;
  --color-sand: #d5d2b9;
  --color-accent: #c45a2c;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(
      ellipse 120% 80% at 10% -10%,
      rgba(42, 143, 173, 0.12),
      transparent 50%
    ),
    radial-gradient(
      ellipse 90% 60% at 100% 0%,
      rgba(87, 82, 53, 0.15),
      transparent 45%
    ),
    linear-gradient(180deg, #ebe7d8 0%, var(--color-bg) 40%, #e4e0d0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-water);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

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

.site-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(43, 41, 26, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213, 210, 185, 0.15);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--color-sand);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(213, 210, 185, 0.65);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(213, 210, 185, 0.4);
  color: var(--color-sand);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: rgba(243, 240, 230, 0.88);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-water-bright);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #fff;
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  width: 100%;
}

/* Main */
.site-main {
  flex: 1;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--color-bg-deep);
}

.page-header .lede {
  margin: 0;
  color: var(--color-ink-soft);
  max-width: 38rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(43, 41, 26, 0.25) 0%,
      rgba(43, 41, 26, 0.55) 45%,
      rgba(20, 18, 10, 0.92) 100%
    ),
    url("/assets/img/hero-lake.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  animation: fade-up 0.9s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  max-width: 14ch;
}

.hero-tag {
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-water);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-water-bright);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(43, 41, 26, 0.04);
}

.section-dark {
  background: var(--color-bg-deep);
  color: var(--color-sand);
}

.section-dark a {
  color: var(--color-water-bright);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--color-ink-soft);
}

.section-dark .section-intro {
  color: rgba(213, 210, 185, 0.8);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--color-moss);
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 1.5rem 0 0;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Grids */
.still-grid,
.photo-grid,
.org-row,
.laurel-row,
.fest-list,
.crew-list,
.press-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.still-grid {
  gap: 0.5rem;
}

.still-grid img {
  width: calc(33.333% - 0.4rem);
  flex: 1 1 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) both;
}

.still-grid img:nth-child(1) {
  animation-delay: 0.05s;
}
.still-grid img:nth-child(2) {
  animation-delay: 0.1s;
}
.still-grid img:nth-child(3) {
  animation-delay: 0.15s;
}
.still-grid img:nth-child(4) {
  animation-delay: 0.2s;
}
.still-grid img:nth-child(5) {
  animation-delay: 0.25s;
}
.still-grid img:nth-child(6) {
  animation-delay: 0.3s;
}
.still-grid img:nth-child(7) {
  animation-delay: 0.35s;
}
.still-grid img:nth-child(8) {
  animation-delay: 0.4s;
}
.still-grid img:nth-child(9) {
  animation-delay: 0.45s;
}

.org-row {
  align-items: center;
  gap: 2rem;
}

.org-row img {
  max-height: 90px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.laurel-row img {
  max-height: 110px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.crew-item {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 340px;
}

.crew-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.crew-item h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.crew-role {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.crew-item p {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
}

.fest-item {
  flex: 1 1 100%;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(43, 41, 26, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
}

.fest-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

.fest-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

.fest-times {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

.press-item {
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.press-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface);
}

.press-item h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.press-date {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

.photo-grid figure {
  flex: 1 1 220px;
  margin: 0;
  max-width: 360px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-grid figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-water);
  text-decoration: none;
}

.contact-email:hover {
  color: var(--color-accent);
}

/* Blog list */
.blog-container {
  padding: 1rem 0 3rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(43, 41, 26, 0.12);
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.blog-title a {
  color: var(--color-bg-deep);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--color-water);
}

.blog-preview p {
  margin: 0;
  color: var(--color-ink-soft);
}

/* Article / romlicontainer spacing in layout */
.romlicontainer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg-deep);
  color: rgba(213, 210, 185, 0.75);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-inner a {
  color: var(--color-sand);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

.romlifooter {
  margin-top: 1.25rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.romlidata {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 0 1.25rem;
}

/* Reveal on scroll helper */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
    gap: 0.5rem;
    width: 100%;
  }

  .still-grid img {
    flex: 1 1 45%;
  }

  .hero {
    min-height: min(78vh, 580px);
  }
}

@media (max-width: 520px) {
  .still-grid img {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-bg,
  .still-grid img,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
