/* ---------------------------------------------------------------
   Editorial gallery layout — Remmelt Studios
   Hand-authored plain CSS on purpose: output.css is a committed
   Tailwind build with no build step wired up, so new utility
   classes would not exist. See CLAUDE.md.
   Mobile-first: single column by default, grid from 900px up.
   --------------------------------------------------------------- */

:root {
  --rs-gap: 1rem;
  --rs-muted: #8a8a8a;
}
@media (min-width: 900px) { :root { --rs-gap: 1.5rem; } }

/* ---------- hero ---------- */
.rs-hero {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 4rem;
}
.rs-hero__type h1 {
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.rs-hero__type p {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--rs-muted);
  margin: 0;
  /* 34ch was narrower than the line it holds, so "The Netherlands" broke
     across two lines on every desktop width. Wide enough for the byline,
     still short enough to stop a longer sentence running the full column. */
  max-width: 52ch;
  text-wrap: balance;
}
.rs-hero__figure { margin: 0; }
.rs-hero__figure img { width: 100%; height: auto; display: block; }

@media (min-width: 900px) {
  .rs-hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4.5rem 0 6rem;
  }
  /* type first in source for screen readers, image sits right */
  .rs-hero__figure { order: 2; }
}

/* ---------- grid ---------- */
.rs-grid {
  display: grid;
  grid-template-columns: 1fr;      /* phones: one photo at a time */
  gap: var(--rs-gap);
  padding-bottom: 4rem;
}
@media (min-width: 900px) {
  .rs-grid { grid-template-columns: repeat(6, 1fr); gap: var(--rs-gap); }
  .rs-grid .span-2 { grid-column: span 2; }
  .rs-grid .span-3 { grid-column: span 3; }
  .rs-grid .span-6 { grid-column: span 6; }
}

/* ---------- a single photograph ---------- */
.rs-figure { margin: 0; }
.rs-figure a { display: block; overflow: hidden; }
.rs-figure img {
  width: 100%;
  height: auto;          /* natural aspect ratio — nothing is ever cropped */
  display: block;
  transition: transform 700ms cubic-bezier(.2,.6,.2,1), opacity 500ms;
}
@media (hover: hover) {
  .rs-figure a:hover img { transform: scale(1.04); }
}
.rs-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

/* ---------- section rule ---------- */
.rs-rule {
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  margin: 0 0 2.5rem;
}

/* ---------------------------------------------------------------
   Header — no hamburger.
   With two destinations there is nothing worth hiding behind a
   toggle: hiding them costs an extra tap and, previously, a whole
   JavaScript library (Alpine) loaded on every page for that alone.
   Stacks to two lines on phones, one row from 900px up.
   --------------------------------------------------------------- */
.rs-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2.25rem 0 0.25rem;
}
.rs-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.rs-nav {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}
.rs-nav a, .rs-lang { font-size: 0.95rem; letter-spacing: 0.08em; }
.rs-nav > a { position: relative; padding-bottom: 3px; }
.rs-nav > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: currentColor;
  transition: width 400ms cubic-bezier(.2,.6,.2,1);
}
.rs-nav > a[aria-current="page"]::after { width: 100%; }
@media (hover: hover) { .rs-nav > a:hover::after { width: 100%; } }
.rs-lang { margin-left: auto; opacity: 0.75; }
.rs-lang a:hover { opacity: 1; }

@media (min-width: 900px) {
  .rs-header { flex-direction: row; align-items: baseline; gap: 2.5rem; padding: 2.5rem 0 0.5rem; }
  .rs-logo { font-size: 1.75rem; }
  .rs-nav { margin-left: auto; gap: 2rem; }
  .rs-nav a, .rs-lang { font-size: 1.05rem; }
  .rs-lang { margin-left: 0.75rem; }
}
