/* ============================================================
   benatlarge.com
   Plain CSS. No build step, no preprocessor, no dependencies.

   Sibling to bendoylegray.com, not a copy of it. That site is the
   contact sheet — the stage where you choose. This one is the prints:
   dark bench, paper-bordered photographs, laid down by hand and
   therefore not quite square.
   ============================================================ */

:root {
  /* the bench, under a safelight */
  --bench: #0f100d;
  --bench-hi: #17180f;
  --rule: #2b2d26;
  --paper: #e8e7e2;          /* photographic paper, the print border */
  --paper-dim: #cfcec7;
  --ink: #14140f;
  --on-dark: #dedfd8;
  --muted: #7f8177;
  --muted-hi: #a2a49a;
  --amber: #e0a828;
  --china: #bf2f2c;

  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gut: clamp(1.25rem, 5vw, 5rem);
  --rule-w: 2px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bench);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* The page has one hard edge: its right side. The wordmark is cut by it. */
.bench { overflow-x: hidden; }

/* ---------- masthead ---------- */

.head {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: var(--rule-w) solid var(--rule);
}

.stripe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding: 0 var(--gut);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.stripe__mark { color: var(--amber); }
.stripe__sep { color: var(--rule); }

/* The wordmark starts at the left gutter and runs off the right edge of
   the page. font-size is set by main.js so the line lands at a fixed
   fraction of the page width — the crop is a decision, not a side effect
   of whichever typeface actually loaded. */
.wordmark {
  margin: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  padding-left: var(--gut);
  font-family: var(--display);
  font-weight: 800;
  font-size: 14vw;               /* replaced at runtime; sane if JS never runs */
  line-height: 0.82;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.wordmark__line { display: block; white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--china); }

.head__foot {
  padding: 0 var(--gut);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 60rem) {
  .head__foot { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.standfirst {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.4;
  max-width: 32ch;
  color: var(--paper);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.facts > div {
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.facts dd {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- section scaffolding ---------- */

.sect {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gut);
  border-bottom: var(--rule-w) solid var(--rule);
}

.sect__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.sect__n {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--china);
}
.sect__t {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
}
.sect__note {
  grid-column: 2;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--muted-hi);
  max-width: 46ch;
}

/* ---------- 01 · the wall of prints ---------- */

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .print--wide { grid-column: span 2; }
  .print--tall { grid-row: span 2; }
  .print--lead { grid-column: span 2; }
}

/* A print: photograph inside a paper border. The border is real white
   paper, so it is the lightest thing on the page and the photograph
   floats inside it. */
.print {
  background: var(--paper);
  padding: 0.75rem 0.75rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.34);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.4s ease;
}

/* Laid down by hand, so no two sit square. Picking one up straightens it. */
.print:nth-child(1) { --tilt: -0.5deg; }
.print:nth-child(2) { --tilt:  0.7deg; }
.print:nth-child(3) { --tilt: -0.35deg; }
.print:nth-child(4) { --tilt:  0.55deg; }
.print:nth-child(5) { --tilt: -0.7deg; }
.print:nth-child(6) { --tilt:  0.4deg; }

.print:hover,
.print:focus-within {
  --tilt: 0deg;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45), 0 26px 56px rgba(0, 0, 0, 0.45);
}

.print__img { background: var(--bench-hi); }
.print img {
  display: block;
  width: 100%;
  height: auto;
}

/* Caption lives in the bottom border, where a printer would write it. */
.print__cap {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0.15rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d6f65;
}
.print__n { color: var(--china); }

/* ---------- 02 · rates ---------- */

.rates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--rule-w);
  background: var(--rule);       /* the gaps become the rules */
  border: var(--rule-w) solid var(--rule);
}

.rate {
  background: var(--bench);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rate__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--paper);
}
.rate__price {
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--amber);
}
.rate__spec { border-top: 1px solid var(--rule); }
.rate__spec > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}
.rate__spec dt {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.rate__spec dd { font-size: 0.9375rem; }
.rate__blurb {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--muted-hi);
  margin-top: auto;
}

/* the end-of-life session is marked, not decorated */
.rate--last { border-left: 3px solid var(--china); }

/* ---------- 03 · shelters ---------- */

.sect--shelter { background: var(--bench-hi); }

.shelter {
  display: grid;
  gap: 1.1rem;
  max-width: 62ch;
}
.shelter__lead {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- 04 · booking ---------- */

.book {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 60rem) {
  .book { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.book__mail {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1rem + 4vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 4px solid var(--china);
  padding-bottom: 0.1em;
  display: inline-block;
  word-break: break-word;
}
.book__mail:hover { color: var(--amber); }

.book__aside { display: grid; gap: 0.9rem; max-width: 42ch; }
.book__small {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot { padding: clamp(1.75rem, 4vw, 2.75rem) var(--gut); }
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-hi);
}
.foot__row a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot__row a:hover { color: var(--amber); border-color: var(--amber); }
.foot__row--small { margin-top: 0.9rem; color: var(--muted); }

/* ---------- develop-in ---------- */
/* Prints come up out of low contrast as they scroll in, the way a print
   comes up in the tray. Applied by main.js via IntersectionObserver, so
   with no JS everything is simply visible. */

@media (prefers-reduced-motion: no-preference) {
  .js .print {
    opacity: 0;
    filter: contrast(0.45) brightness(1.3);
    transition: opacity 0.7s ease, filter 0.7s ease,
                transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
                box-shadow 0.4s ease;
  }
  .js .print.is-developed { opacity: 1; filter: none; }
}
