/* Last Resort homepage.
 *
 * Design system: .claude/skills/last-resort-design (outside the repo).
 * Follows the camp's concept deck: cream paper slides with a thin red frame
 * and soft palm shadows, lifeguard red, painted wooden signs, and real photos
 * from Camp Teapunk. Light and dark follow the visitor's system setting. The
 * CSP forbids inline styles, so everything lives here.
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --paper: #f8e8cc;            /* the deck's cream */
  --paper-2: #f3dfbd;          /* a shade deeper, for bands */
  --ink: #2a1a12;              /* 14.0:1 on --paper */
  --muted: #5f4535;            /* 7.6:1 */
  --frame: #e2683c;            /* the deck's thin orange-red frame */

  /* Lifeguard red. --red is the fill (cream on it 5.3:1); --red-ink is red as
     text on paper (5.0:1). */
  --red: #c4231b;
  --red-deep: #96170f;
  --red-ink: #b81f17;
  --on-red: #fdf4e4;

  /* Signs are painted cream on wood in both themes. */
  --paint: #f2e2c0;
  --paint-ink: #2a1a12;

  --shade: rgba(59, 42, 26, .16);  /* palm shadows */
  --shadow-1: 0 1px 2px rgba(60, 30, 15, .12), 0 6px 18px rgba(60, 30, 15, .12);
  --shadow-2: 0 2px 6px rgba(60, 30, 15, .18), 0 18px 40px rgba(60, 30, 15, .22);

  /* Shape: boards 3px, slides 18px, photos 12px, buttons pill. */
  --r-slide: 18px;
  --r-pill: 999px;

  --font-script: 'Yellowtail', 'Brush Script MT', cursive;
  --font-head: 'League Spartan', 'Futura', system-ui, sans-serif;
  --font-body: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-brush: 'Permanent Marker', 'Marker Felt', cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* The same slides by lamplight. */
    --paper: #1c140f;
    --paper-2: #241a13;
    --ink: #f3e3c6;            /* 14.4:1 on --paper */
    --muted: #cdb497;          /* 8.6:1 */
    --frame: #d0623a;
    --red-ink: #ff8a76;        /* 7.1:1 */
    --shade: rgba(243, 227, 198, .06);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .5);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain on a fixed layer, kept off the scrolling content. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  background: url("/last-resort/grain.svg");
  opacity: .2;
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: .08; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: var(--on-red); padding: .6rem 1rem; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible { outline-color: #fdf4e4; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.slide-title, .section-title {
  font: 700 clamp(2rem, 4.4vw, 3.2rem)/1.05 var(--font-head);
  letter-spacing: -0.01em;
  color: var(--red-ink);
  text-wrap: balance;
}
.section-lede { margin-top: .8rem; font-size: 1.15rem; color: var(--muted); max-width: 40rem; text-wrap: pretty; }

/* Labels for the real photos. The photos are real; the beach is not. */
.photo-note {
  position: absolute; right: var(--gutter); bottom: .9rem; z-index: 2;
  max-width: calc(100% - 2 * var(--gutter));
  padding: .25rem .6rem;
  border-radius: var(--r-pill);
  background: rgba(30, 16, 10, .72);
  font-size: .78rem; font-weight: 400; color: #fdf4e4;
  text-align: right;
}

/* ---------- The wordmark ----------
 * Typeset until a real logo exists: the palm, then "Last Resort" in a
 * thickened Yellowtail with two painted dashes under it, as in the deck.
 * Swap the contents of any .wordmark for an <img> and keep the class. */

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: .08em;
  color: var(--red);
  text-decoration: none;
  line-height: 1;
}
.wordmark-palm { width: 1.2em; height: 1.2em; fill: #3b2418; flex: none; margin-bottom: -.02em; }
.wordmark-text {
  position: relative;
  display: inline-block;
  padding: .12em .14em .32em 0;
  font-family: var(--font-script);
  font-weight: 400;
  -webkit-text-stroke: .035em currentColor;
  white-space: nowrap;
  transform: rotate(-5deg);
  transform-origin: left bottom;
}
/* The two dashes under the name. */
.wordmark-text::after {
  content: "";
  position: absolute; left: 32%; right: 4%; bottom: .1em; height: .055em;
  background: linear-gradient(90deg, #3b2418 0 46%, transparent 46% 54%, #3b2418 54% 100%);
  border-radius: 2px;
  opacity: .8;
}
@media (prefers-color-scheme: dark) {
  .wordmark-nav .wordmark-palm, .wordmark-footer .wordmark-palm { fill: var(--ink); }
  .wordmark-nav .wordmark-text::after, .wordmark-footer .wordmark-text::after { background: linear-gradient(90deg, var(--ink) 0 46%, transparent 46% 54%, var(--ink) 54% 100%); }
  .wordmark-nav, .wordmark-footer { color: #e8463b; }
}

.wordmark-nav { font-size: 1.9rem; }
.wordmark-footer { font-size: 2.6rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.6rem;
  border-radius: var(--r-pill);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-small { min-height: 40px; padding: .55rem 1.1rem; font-size: .92rem; }

.btn-red { background: var(--red); color: var(--on-red); box-shadow: 0 3px 0 var(--red-deep), var(--shadow-1); }
.btn-red:hover { box-shadow: 0 5px 0 var(--red-deep), var(--shadow-2); }
.btn-light { background: rgba(253, 244, 228, .92); color: #2a1a12; box-shadow: var(--shadow-1); }
.btn-light:hover { background: #fdf4e4; }
.btn-outline { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--frame) 35%, transparent);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: .35rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem; min-height: 64px;
}
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a, .nav-signin {
  font-weight: 500; font-size: .95rem; text-decoration: none;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-signin:hover { border-bottom-color: var(--red-ink); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 400px) {
  .wordmark-nav { font-size: 1.55rem; }
  .nav-actions { gap: .8rem; }
  .btn-small { padding: .5rem .85rem; }
}
@media (max-width: 360px) {
  .nav-signin { display: none; }
}

/* ---------- Hero: a real photo with the sign in front ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Tall enough for the whole photo plus the sign above it, but no taller
     than the screen. */
  min-height: max(620px, min(calc(53.2vw + 110px), 92dvh));
  display: flex;
  flex-direction: column;
  padding: calc(.7rem + 22px) var(--gutter) clamp(2rem, 3.5vw, 3rem);
  background: linear-gradient(180deg, #ecd0aa, #dcb38a);
}
/* The photo is never cropped at the sides: the camp is about half women and
   half men, and the line-up shows both ends. It sits on the bottom edge at
   full width and fades into a dust-coloured sky at the top. */
.hero-photo {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -2;
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%);
}
/* Warm the dust to a sunset and darken the ground so the text reads. */
.hero-grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 196, 120, .38) 0%, rgba(240, 130, 70, .18) 45%, rgba(60, 22, 10, .1) 62%, rgba(40, 16, 8, .62) 100%),
    radial-gradient(60% 50% at 50% 40%, rgba(255, 210, 140, .25), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .hero { background: linear-gradient(180deg, #3a2030, #6e3530); }
  .hero-grade {
    background: linear-gradient(180deg, rgba(60, 20, 40, .55) 0%, rgba(200, 90, 50, .25) 45%, rgba(30, 12, 8, .35) 62%, rgba(20, 10, 6, .8) 100%);
  }
}

.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 640px;
  margin: 0 auto;
}


/* Pushed to the bottom, below the dancers, onto the darker ground. */
.hero-lede {
  margin-top: auto;
  padding-top: 2rem;
  max-width: 32rem;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  font-weight: 600;
  color: #fdf4e4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  text-wrap: balance;
}
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero .ctas { justify-content: center; }

/* Narrower screens: the text stacks above the photo, which sits whole
   underneath. */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(.7rem + 22px); padding-bottom: calc(53.2vw + 1.5rem); background: linear-gradient(180deg, #e9c9a2, #d9a77c 70%, #c99268); }
  .hero-photo {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
            mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  }
  .hero-grade { display: none; }
  .hero-inner { max-width: 640px; }
  .wordmark-hero { font-size: clamp(2.8rem, 10vw, 5rem); }
  .hero-lede { margin-top: 1.6rem; padding-top: 0; color: #2a1a12; text-shadow: none; }
  .hero :focus-visible { outline-color: var(--red-ink); }
}
@media (max-width: 900px) and (prefers-color-scheme: dark) {
  .hero { background: linear-gradient(180deg, #3a2030, #7a3a32 70%, #8a5038); }
  .hero-photo { filter: brightness(.72) saturate(1.1); }
  .hero-lede { color: #fdf4e4; }
  .hero :focus-visible { outline-color: #fdf4e4; }
}

/* ---------- The rig: boards, poles and rope ----------
 * One set of parts for every sign on the page, so the site matches what gets
 * built at camp: painted plank boards with nails, round timber poles, and
 * twisted rope with lashings and eye bolts. */

:root {
  /* Twisted rope: a diagonal lay, plus shading across it so it reads round. */
  --rope-lay: repeating-linear-gradient(160deg, #dfbe8a 0 3px, #ab8049 3px 5px, #6b4825 5px 6px);
  --rope-round: linear-gradient(90deg, rgba(40, 20, 5, .6), rgba(40, 20, 5, 0) 32%, rgba(255, 242, 214, .32) 50%, rgba(40, 20, 5, 0) 66%, rgba(40, 20, 5, .65));
  /* Turns of rope wrapped round a pole (a lashing). */
  --lash-lay: repeating-linear-gradient(98deg, #dfbe8a 0 2.5px, #ab8049 2.5px 4.5px, #6b4825 4.5px 5.5px);
  /* A gap between two planks: dark slot, light lip on the plank below. */
  --gap-1: linear-gradient(180deg, transparent calc(33.33% - 2px), rgba(25, 12, 4, .85) calc(33.33% - 2px) calc(33.33% + 1px), rgba(255, 236, 205, .3) calc(33.33% + 1px) calc(33.33% + 2px), transparent calc(33.33% + 2px));
  --gap-2: linear-gradient(180deg, transparent calc(66.66% - 2px), rgba(25, 12, 4, .85) calc(66.66% - 2px) calc(66.66% + 1px), rgba(255, 236, 205, .3) calc(66.66% + 1px) calc(66.66% + 2px), transparent calc(66.66% + 2px));
}

.rope {
  position: absolute; z-index: 2;
  width: 8px; border-radius: 4px;
  background: var(--rope-round), var(--rope-lay);
  box-shadow: 2px 3px 4px rgba(20, 8, 2, .35);
}
/* The lashing where a rope is tied round the beam. */
.rope::before {
  content: ""; position: absolute; top: -2px; left: -6px;
  width: 20px; height: 24px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 242, 214, .35), rgba(40, 20, 5, 0) 40%, rgba(40, 20, 5, .55)), var(--lash-lay);
}
/* The eye bolt it's tied to on the board. */
.rope::after {
  content: ""; position: absolute; bottom: -9px; left: -5px;
  width: 18px; height: 14px; border-radius: 50%;
  border: 3px solid #4e4a45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .5);
}

/* A round timber pole. */
.beam, .post-board::before, .post-board::after {
  background:
    linear-gradient(180deg, rgba(255, 232, 195, .4), rgba(255, 232, 195, .06) 30%, rgba(0, 0, 0, 0) 55%, rgba(30, 14, 4, .62)),
    url("/last-resort/wood.svg") 0 0 / 800px 240px;
  box-shadow: 0 8px 14px rgba(30, 12, 4, .35);
}

/* A board is planks of wood with cream paint on top. The paint (::before) is
   masked with chips.svg so bare wood shows where it has worn; the nails
   (::after) sit on top of everything. */
.board {
  position: relative;
  isolation: isolate;
  border-radius: 3px;
  color: var(--paint-ink);
  background:
    var(--gap-1), var(--gap-2),
    linear-gradient(180deg, rgba(0, 0, 0, .1) 0 33.33%, rgba(255, 240, 210, .05) 33.33% 66.66%, rgba(0, 0, 0, .14) 66.66%),
    url("/last-resort/wood.svg") 0 0 / 800px 240px;
  box-shadow:
    inset 0 2px 0 rgba(255, 236, 205, .35),
    inset 0 0 0 1px rgba(40, 20, 8, .55),
    inset 0 -4px 0 rgba(40, 20, 8, .4),
    var(--shadow-2);
}
.board::before {
  content: "";
  position: absolute; inset: 2px; z-index: -1;
  border-radius: 2px;
  background: url("/last-resort/grain.svg"), var(--gap-1), var(--gap-2), var(--paint);
  -webkit-mask-image: url("/last-resort/chips.svg");
          mask-image: url("/last-resort/chips.svg");
  -webkit-mask-size: 420px;
          mask-size: 420px;
  box-shadow: inset 0 0 26px rgba(110, 70, 30, .45);
}
.board::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  --nail: #cfc6ba 0 1.2px, #7a6e62 1.7px 2.5px, #34241a 2.9px 3.5px, rgba(90, 45, 12, .35) 3.9px, transparent 5px;
  background:
    radial-gradient(circle 5px at 14px 16.67%, var(--nail)), radial-gradient(circle 5px at calc(100% - 14px) 16.67%, var(--nail)),
    radial-gradient(circle 5px at 14px 50%, var(--nail)), radial-gradient(circle 5px at calc(100% - 14px) 50%, var(--nail)),
    radial-gradient(circle 5px at 14px 83.33%, var(--nail)), radial-gradient(circle 5px at calc(100% - 14px) 83.33%, var(--nail));
}
/* A plank is a single board: no gaps, one nail at each end. */
.plank { background: linear-gradient(180deg, rgba(255, 240, 210, .06), rgba(0, 0, 0, .12)), url("/last-resort/wood.svg") 120px 60px / 800px 240px; }
.plank::before { background: url("/last-resort/grain.svg"), var(--paint); }
.plank::after { background: radial-gradient(circle 5px at 14px 50%, var(--nail)), radial-gradient(circle 5px at calc(100% - 14px) 50%, var(--nail)); }

/* The hero sign hangs from a beam across the top of the picture. */
.beam {
  position: absolute; z-index: 1;
  top: .7rem; left: -2%; right: -2%; height: 22px;
}
.sign { position: relative; padding-top: 2rem; width: 100%; }
.sign .rope { top: -14px; height: calc(2rem + 14px + 12px); }
.sign .rope-left { left: 14%; }
.sign .rope-right { right: 14%; }
.hero-sign .board {
  padding: clamp(.9rem, 1.8vw, 1.3rem) clamp(1rem, 3vw, 2.4rem) clamp(.8rem, 1.4vw, 1.05rem);
}
/* A small red-painted tag hanging under the sign on the same rope. */
.tag {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  padding: .45rem .95rem .4rem;
  border-radius: 3px;
  color: var(--on-red);
  font: 600 .8rem/1.2 var(--font-body);
  letter-spacing: .07em; text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(196, 35, 27, .9), rgba(150, 23, 15, .93)),
    url("/last-resort/wood.svg") 300px 0 / 800px 240px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 200, .3), inset 0 -2px 0 rgba(60, 8, 4, .5), var(--shadow-1);
  transform: rotate(-1.5deg);
}
.tag .hang { top: -1.1rem; height: calc(1.1rem + 6px); left: 18%; right: 18%; }

/* Worn paint on the lettering too. */
.board .wordmark-text, .board .board-title, .poster-title {
  -webkit-mask-image: url("/last-resort/wear.svg");
          mask-image: url("/last-resort/wear.svg");
  -webkit-mask-size: 260px;
          mask-size: 260px;
}

.wordmark-hero {
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  justify-content: center;
}
.board-tagline {
  margin-top: .3rem;
  font: 400 clamp(1rem, 2.4vw, 1.5rem)/1.2 var(--font-brush);
  color: #3b2418;
}

/* Load-in: the sign swings into place once. Never gated on JS. */
@media (prefers-reduced-motion: no-preference) {
  .hero-sign { animation: swing 1.4s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: 50% 0; }
  .hero-lede, .hero .ctas { animation: rise .7s .5s ease-out both; }
}
@keyframes swing {
  0% { transform: rotate(-5deg) translateY(-30px); opacity: 0; }
  45% { transform: rotate(2.5deg); opacity: 1; }
  70% { transform: rotate(-1deg); }
  100% { transform: rotate(0); opacity: 1; }
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Deck slides ---------- */

.slide-wrap { padding: var(--section) var(--gutter); }
.slide {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.4rem, 6vw, 5rem);
  border: 2px solid var(--frame);
  border-radius: var(--r-slide);
}
/* Soft palm shadows falling across the paper, as in the deck. */
.frond {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(240px, 34vw, 460px); aspect-ratio: 1;
  background: var(--shade);
  -webkit-mask: url("/last-resort/frond.svg") center / contain no-repeat;
          mask: url("/last-resort/frond.svg") center / contain no-repeat;
  filter: blur(3px);
}
.frond-tl { top: -40px; left: -60px; transform: rotate(-8deg); }
.frond-br { bottom: -60px; right: -70px; transform: rotate(172deg); }

.slide-kicker {
  margin-top: .9rem;
  font: 700 clamp(1.05rem, 1.8vw, 1.25rem)/1.3 var(--font-head);
  color: var(--red-ink);
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.columns p { margin-top: 1rem; text-align: justify; hyphens: auto; }
.columns p:first-child { margin-top: 0; }
.columns .signoff { text-align: left; }
.signoff strong { font: 700 1.05rem/1.4 var(--font-head); }

.values h3 {
  margin-top: 1.5rem;
  font: 700 .95rem/1.2 var(--font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.values h3:first-child { margin-top: 0; }
.values p, .values h3 + p { margin-top: .35rem; }

@media (max-width: 780px) {
  .columns { grid-template-columns: 1fr; }
  .columns p { text-align: left; }
  .frond-br { display: none; }
}

/* ---------- The review board, against the sky ---------- */

.reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: #c98a5a;
}
.reviews-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.reviews-grade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(250, 170, 90, .35), rgba(220, 110, 60, .3) 60%, rgba(40, 16, 8, .45));
}
@media (prefers-color-scheme: dark) {
  .reviews-grade { background: linear-gradient(180deg, rgba(40, 14, 30, .55), rgba(150, 60, 40, .35) 60%, rgba(20, 8, 4, .7)); }
}

.post-board { position: relative; max-width: 980px; margin: 0 auto; }
/* Two round poles behind the planks, lashed just above the header board. */
.post-board::before, .post-board::after {
  content: "";
  position: absolute; top: -2.2rem; bottom: -6rem; width: 22px; z-index: 0;
  border-radius: 11px 11px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 242, 214, .35), rgba(40, 20, 5, 0) 40%, rgba(40, 20, 5, .55)) 0 1.1rem / 100% 22px no-repeat,
    var(--lash-lay) 0 1.1rem / 100% 22px no-repeat,
    linear-gradient(90deg, rgba(30, 14, 4, .6), rgba(255, 230, 190, .25) 35%, rgba(0, 0, 0, 0) 55%, rgba(30, 14, 4, .65)),
    url("/last-resort/wood-v.svg") 0 0 / 240px 800px;
  box-shadow: 6px 8px 14px rgba(30, 12, 4, .35);
}
.post-board::before { left: 22%; }
.post-board::after { right: 22%; }

.board-header {
  z-index: 1;
  text-align: center;
  padding: 1.3rem 1rem 1.1rem;
  margin: 0 auto 1.6rem;
  max-width: 560px;
}
.board-title {
  font: 400 clamp(2.2rem, 6vw, 3.6rem)/1 var(--font-brush);
  color: var(--red);
}

.planks {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.6rem;
}
.plank {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .95rem 1.2rem 1.05rem;
  text-align: center;
  transition: transform .4s cubic-bezier(.3, 1.5, .5, 1);
}
.plank:nth-child(odd) { transform: rotate(-.8deg); }
.plank:nth-child(even) { transform: rotate(.7deg); }
.plank:hover { transform: rotate(0) translateY(-2px); }
/* The two ropes each plank hangs from. */
.hang {
  position: absolute; z-index: 2; top: -1.35rem; left: 20%; right: 20%; height: calc(1.35rem + 6px);
  background:
    var(--rope-round) 0 0 / 7px 100% no-repeat, var(--rope-lay) 0 0 / 7px 100% no-repeat,
    var(--rope-round) 100% 0 / 7px 100% no-repeat, var(--rope-lay) 100% 0 / 7px 100% no-repeat;
}
.stars { color: var(--red); font-size: 1.25rem; letter-spacing: .15em; line-height: 1; }
.plank q {
  font: 700 clamp(1.05rem, 2vw, 1.3rem)/1.2 var(--font-head);
  quotes: "\201C" "\201D";
}

@media (max-width: 640px) {
  .planks { grid-template-columns: 1fr; }
  .post-board::before { left: 12%; }
  .post-board::after { right: 12%; }
}

/* ---------- Activities: the painted poster ---------- */

.poster {
  --poster-paper: #fbefd6;
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  border-radius: 6px;
  color: #2a1a12;
  background: url("/last-resort/grain.svg"), var(--poster-paper);
  /* A hand-painted red border, double-ruled like the deck's board. */
  box-shadow:
    inset 0 0 0 6px var(--red),
    inset 0 0 0 10px var(--poster-paper),
    inset 0 0 0 12px var(--red),
    var(--shadow-1);
}
@media (prefers-color-scheme: dark) {
  .poster { --poster-paper: #f1e0bd; }
}

.poster-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.wordmark-poster { font-size: clamp(1.4rem, 2.6vw, 2rem); justify-self: start; }
.poster-title {
  font: 400 clamp(2.6rem, 7vw, 5rem)/1 var(--font-brush);
  color: #b81f17;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.poster-note {
  justify-self: end;
  font: 400 clamp(.95rem, 1.6vw, 1.15rem)/1.25 var(--font-brush);
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.acts {
  --rule: 2px dashed rgba(196, 35, 27, .35);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.acts li { padding: clamp(1rem, 2.4vw, 1.6rem); border-top: var(--rule); }
.acts li:nth-child(-n+3) { border-top: 0; }
.acts li:not(:nth-child(3n+1)) { border-left: var(--rule); }
.acts h3 {
  font: 400 clamp(1.4rem, 2.4vw, 1.85rem)/1.1 var(--font-brush);
  text-transform: uppercase;
  color: #b81f17;
}
.acts p { margin-top: .45rem; font-size: 1rem; color: #4f392c; }

@media (max-width: 860px) {
  .poster-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wordmark-poster, .poster-note { justify-self: center; }
  .acts { grid-template-columns: 1fr 1fr; }
  .acts li:nth-child(n) { border-left: 0; }
  .acts li, .acts li:nth-child(-n+3) { border-top: var(--rule); border-left: 0; }
  .acts li:nth-child(-n+2) { border-top: 0; }
  .acts li:nth-child(even) { border-left: var(--rule); }
}
@media (max-width: 540px) {
  .acts { grid-template-columns: 1fr; }
  .acts li, .acts li:nth-child(-n+2) { border-top: var(--rule); }
  .acts li:first-child { border-top: 0; }
  .acts li:nth-child(even) { border-left: 0; }
}

/* ---------- The album: real Camp Teapunk photos ---------- */

.album { padding: var(--section) 0; background: var(--paper-2); }
.album-head { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
  gap: clamp(.6rem, 1.4vw, 1rem);
}
.mosaic li { overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-1); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic li:hover img { transform: scale(1.04); }
.m-big { grid-column: span 2; grid-row: span 2; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
/* The whole-camp shot: full width, cropped top and bottom only so nobody at
   either end is lost. */
.m-full { grid-column: 1 / -1; grid-row: span 2; }
.m-full img { object-position: 50% 78%; }

@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .m-full { grid-row: auto; }
}

/* ---------- Art cars: the deck's text box beside a real photo ---------- */

.cars { padding: var(--section) 0; }
.cars-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center;
}
.cars-card {
  position: relative; z-index: 1;
  margin-right: -3rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--paper);
  border: 2px solid var(--frame);
  border-radius: var(--r-slide);
  box-shadow: var(--shadow-2);
}
.cars-card p { margin-top: .8rem; text-align: justify; hyphens: auto; }
.cars-card .slide-kicker { margin-top: .5rem; }
/* The fleet, as a status board. */
.fleet { margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.fleet div { padding-top: .9rem; border-top: 2px dashed color-mix(in srgb, var(--frame) 45%, transparent); }
.fleet dt { font: 700 1.1rem/1.2 var(--font-head); }
.fleet dd { margin: .3rem 0 0; }
.fleet-status {
  display: inline-block; margin-right: .4rem;
  padding: .15rem .6rem; border-radius: var(--r-pill);
  font: 600 .75rem/1.4 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
  color: var(--red-ink); box-shadow: inset 0 0 0 1.5px currentColor;
}
.fleet-status-ready { background: var(--red); color: var(--on-red); box-shadow: none; }
.cars-card .fleet-help { margin-top: 1.2rem; font-weight: 400; text-align: left; }
.cars-figure { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-2); }
.cars-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) {
  .cars-grid { grid-template-columns: 1fr; }
  .cars-figure { order: -1; }
  .cars-card { margin: -2rem 1rem 0; }
  .cars-figure .photo-note { top: .7rem; bottom: auto; }
  .cars-card p { text-align: left; }
}

/* ---------- Closing: the whole camp ---------- */

.closing { padding: var(--section) 0; }
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.closing-photo { transform: rotate(-1.5deg); background: #fffaf0; padding: .6rem .6rem 0; border-radius: 4px; box-shadow: var(--shadow-2); }
.closing-photo figcaption { font: 400 1.05rem/1 var(--font-brush); color: #3b2418; padding: .7rem .2rem .8rem; }
@media (prefers-color-scheme: dark) { .closing-photo { background: #efe3cc; } }
.closing-text p { margin-top: 1rem; font-size: 1.2rem; }
.closing-text .ctas { margin-top: 1.6rem; }
@media (max-width: 780px) {
  .closing-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer { padding: 3rem 0 3.5rem; border-top: 1px solid color-mix(in srgb, var(--frame) 40%, transparent); }
.footer-inner { display: grid; gap: 1rem; justify-items: start; }
.footer-stars { font: 700 1.1rem/1.2 var(--font-head); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-links a { font-weight: 500; text-decoration-color: var(--red-ink); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--red-ink); }
.footer-small { font-size: .88rem; color: var(--muted); }

/* ---------- Reveal on scroll ----------
 * Content only starts hidden once home.js has set html.js-reveal, so the
 * page reads fine without JavaScript. */

.js-reveal .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .3, 1); }
.js-reveal .reveal.is-in { opacity: 1; translate: 0 0; }
.js-reveal .acts .reveal:nth-child(3n+2), .js-reveal .mosaic .reveal:nth-child(even) { transition-delay: .08s; }
.js-reveal .acts .reveal:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
  .js-reveal .reveal { opacity: 1; translate: none; }
}
