/* ==========================================================================
   THE ROLLING GREENS
   Images and black space. No type on the page at all — the logo is artwork
   and there is nothing clickable, so no webfont and no external request.

   Laid out as a wall, not a slideshow: photos sit in rows, side by side,
   edges nearly touching, a couple lapping over each other. The one place
   that keeps real air is the logo at the top.

   Nothing here is a system. Widths, gaps, laps and tilts are knobs.
   ========================================================================== */

:root {
  /* ---- brand, straight off the logo ---- */
  --black:  #000000;
  --red:    #CD1F25;
  --teal:   #00B195;
  --yellow: #FFC40B;
  --white:  #FFFFFF;

  /* With no text and nothing clickable, CSS only paints black and white.
     Red, teal and yellow live in the thunderbird artwork itself — declared
     here so the palette stays in one place. */

  /* tight page padding; bleeding and running photos cancel or overshoot it */
  --pad: clamp(0.75rem, 3vw, 2.5rem);

  /* the gap between neighbours in a row — small on purpose, edges nearly touch */
  --g: clamp(6px, 0.9vw, 14px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: system-ui, -apple-system, sans-serif;
  /* clip, not hidden — hidden would create a scroll container. Running and
     tilted photos are meant to overshoot the viewport and get cut. */
  overflow-x: clip;
}

img { display: block; width: 100%; height: auto; }
h1  { margin: 0; }

.stream {
  padding-inline: var(--pad);
  padding-bottom: 28vh;   /* the page ends on black */
}

/* -------------------------------------------------------------- opening -- */
/* The one place the air stays. */

.opening {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 20vh;
}

.opening__logo { width: min(720px, 84vw); }

/* ----------------------------------------------------------------- wall -- */
/* A row is a run of photos side by side. On phones it stacks full width. */

.row {
  display: flex;
  flex-direction: column;
  gap: var(--g);
}

.pic { margin: 0; width: 100%; flex: 0 0 auto; }

@media (min-width: 768px) {
  .row { flex-direction: row; align-items: flex-start; }

  .row--end { align-items: flex-end; }    /* bottoms line up */

  /* widths are picked so a full row sums to ~98% and the gaps still fit */
  .w-18 { width: 18%; }
  .w-22 { width: 22%; }
  .w-26 { width: 26%; }
  .w-30 { width: 30%; }
  .w-32 { width: 32%; }
  .w-36 { width: 36%; }
  .w-44 { width: 44%; }

  .auto-l { margin-left: auto; }   /* shove one to the right, leave black beside it */

  /* ---- overlaps: a couple of photos lapping over their neighbours ---- */
  .lap-up   { margin-top: -6vh; position: relative; z-index: 2; }
  .lap-left { margin-left: -4%; position: relative; z-index: 2; }
}

/* edge to edge */
.pic--bleed { margin-inline: calc(var(--pad) * -1); }

/* starts off the left edge, finishes at the content edge */
@media (min-width: 768px) {
  .pic--run-left {
    width: calc(100% + var(--pad) + 10vw);
    margin-left: calc((var(--pad) + 10vw) * -1);
  }
}

/* ----------------------------------------------------------------- tilt -- */
/* Taped down crooked. Never on a bleed photo — rotating a full-width element
   just opens black wedges at the corners. */

.tilt-a { transform: rotate(-1.6deg); }
.tilt-b { transform: rotate(2.1deg); }
.tilt-c { transform: rotate(-2.8deg); }
.tilt-d { transform: rotate(3.1deg); }

/* ------------------------------------------------------------- vertical -- */
/* Tight. This is a wall of taped-up photos, not one image per screen. */

.up-xs { margin-top: 2vh; }
.up-s  { margin-top: 5vh; }
.up-m  { margin-top: 9vh; }
.up-l  { margin-top: 14vh; }

/* one row breathes on phones, where everything is stacked anyway */
.row--airy { gap: 5vh; }
@media (min-width: 768px) {
  .row--airy { gap: var(--g); }
}

/* ------------------------------------------------------------------ copy -- */
/* The only two pieces of text on the page. No webfont is loaded, so these use
   the system stack already declared on <body>. */

.bio {
  margin: 12vh auto 0;
  max-width: 34ch;
  text-align: center;
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.15rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--white);
}

.booking {
  margin-top: 24vh;          /* the stream's 28vh padding carries the space below */
  text-align: center;
}

.booking__label {
  margin: 0 0 1.1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.booking__mail {
  margin: 0;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
}

.booking__mail a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.booking__mail a:hover,
.booking__mail a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* there is a link on the page again, so it needs a visible focus ring */
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* -------------------------------------------------------------- reveals -- */
/* Opacity only — a transform here would overwrite the tilts.
   Gated on .js so nothing is hidden when JavaScript is unavailable. */

.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.js [data-reveal].is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
