/* ---------------------------------------------------------------
   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; }
}

/* ---------------------------------------------------------------
   Contact — matches the editorial system on the gallery page.
   Replaced the Tailwind markup this page shipped with: a gray-50
   Flowbite form and a rotated "polaroid" card. Those were utility
   classes, so restyling them would have needed a Tailwind rebuild
   that does not exist here. Plain CSS sidesteps it, same as the
   grid above. See CLAUDE.md.
   --------------------------------------------------------------- */
.rs-contact {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}
.rs-contact__type h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* the heading sits directly above the form: no intro line, on purpose */
  margin: 0 0 2.75rem;
}
.rs-contact__figure { margin: 0; }
/* height:auto — the frame keeps its own proportions. The old markup had
   aspect-square + object-cover, which happened to be harmless only because
   this particular file is square; a non-square replacement would have been
   cropped silently. */
.rs-contact__figure img { width: 100%; height: auto; display: block; }

@media (min-width: 900px) {
  .rs-contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
    padding: 4rem 0 6rem;
  }
  .rs-contact__figure { order: 2; }
}

/* ---------- form ---------- */
.rs-form { display: grid; gap: 2rem; max-width: 46ch; }
.rs-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rs-muted);
  margin-bottom: 0.6rem;
}
.rs-form input,
.rs-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 0;          /* iOS Safari rounds inputs by default */
  padding: 0.6rem 0;
  transition: border-color 300ms;
  -webkit-appearance: none;
          appearance: none;
}
.rs-form textarea { resize: vertical; min-height: 8.5rem; line-height: 1.6; }
.rs-form input::placeholder,
.rs-form textarea::placeholder { color: rgb(255 255 255 / 0.3); }
.rs-form input:hover,
.rs-form textarea:hover { border-bottom-color: rgb(255 255 255 / 0.45); }
.rs-form input:focus,
.rs-form textarea:focus {
  outline: none;
  border-bottom-color: currentColor;
}
/* Keyboard users still get a visible ring; pointer users get the rule above. */
.rs-form input:focus-visible,
.rs-form textarea:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.rs-form button {
  justify-self: start;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 300ms, color 300ms;
}
@media (hover: hover) {
  .rs-form button:hover { background: transparent; color: #fff; }
}
.rs-form button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------------------------------------------------------------
   Footer — one definition for all four pages.
   The two contact pages previously carried a *different* footer from
   the two gallery pages: different icon artwork, a bare instagram.com
   link, and fillRule/clipRule — React's camelCase, which is not valid
   HTML and was silently dropped, so the Instagram glyph rendered with
   its holes filled in.
   --------------------------------------------------------------- */
.rs-footer {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding: 2.5rem 0 3.5rem;
  display: grid;
  gap: 1.75rem;
}
.rs-footer__row { display: grid; gap: 1.25rem; }
.rs-footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}
.rs-footer__place {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rs-muted);
  margin: 0;
}
.rs-footer__social { display: flex; gap: 1.25rem; align-items: center; }
.rs-footer__social a { color: var(--rs-muted); transition: color 300ms; display: block; }
@media (hover: hover) { .rs-footer__social a:hover { color: inherit; } }
.rs-footer__social svg { width: 1.25rem; height: 1.25rem; display: block; }
.rs-footer__fine {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--rs-muted);
  margin: 0;
}
.rs-footer__fine a { border-bottom: 1px solid currentColor; }

@media (min-width: 900px) {
  .rs-footer { padding: 3rem 0 4rem; }
  .rs-footer__row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .rs-footer__social { justify-content: flex-end; }
}
