/* $LUNA: the glass wall at Digital Asset, 2015, after hours.
   Lime chalk on a dark board (matches the X banner), a highlighter for the
   tennis ball, one red jacket, and a worn wooden floor at the bottom. */

:root {
  color-scheme: dark;

  /* dark theme */
  --bg: #1a1a1a;              /* page background */
  --surface: #252522;         /* cards, clipping, contract box */
  --text: #f5f5f0;            /* headings, primary text, marker lines */
  --text-soft: #a8a89a;       /* body / secondary text */
  --accent: #f3ff99;          /* highlights, hand-written notes, line drawings */
  --lime: #dcef3c;            /* buttons + top ticker (unchanged) */
  --on-lime: #15171c;         /* black text and outlines on lime, and on white prints */
  --print: #ffffff;           /* polaroid + meme print frames (unchanged) */
  --print-soft: #3d424b;      /* secondary text on white prints */
  --print-accent: #5a6400;    /* hand-written captions on white prints */
  --shadow: #f5f5f0;          /* hard offset shadow under buttons */
  --line: #3a3a36;            /* quiet rules */
  --dash: #5a5a52;            /* dashed border of the contract box */
  --red: #ef5b4a;             /* the red jacket, brightened for dark */
  --wood: #3d2c20;            /* the floor, at night */
  --wood-dark: #241a13;

  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  /* type scale, perfect fourth */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  --t-xl: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
  --t-hero: clamp(2.6rem, 1.3rem + 4.6vw, 5.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;

  /* hand-drawn corners */
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  /* faint ghosts of erased chalk, like every board that's been used */
  background-image:
    radial-gradient(ellipse 40% 12% at 18% 22%, rgba(243, 255, 153, 0.035), transparent 70%),
    radial-gradient(ellipse 30% 10% at 82% 48%, rgba(245, 245, 240, 0.025), transparent 70%),
    radial-gradient(ellipse 35% 9% at 30% 78%, rgba(243, 255, 153, 0.03), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  font-family: var(--display);
  font-size: var(--t-xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 { font-family: var(--body); font-weight: 700; font-size: var(--t-md); line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--text); color: var(--bg); padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- ticker: a strip of highlighter across the top ---------- */
.tape-ticker {
  background: var(--lime);
  color: var(--on-lime);
  border-bottom: 2px solid var(--on-lime);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 2.1rem;
}
.tape-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 1.5rem;
  animation: ticker 38s linear infinite;
}
.tape-track i {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--on-lime); display: inline-block;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-family: var(--display); font-size: 1.6rem;
}
.brand img { border-radius: 50%; border: 2px solid var(--text); background: var(--surface); }
.nav nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  background: var(--lime);
  color: var(--on-lime);
  border: 2.5px solid var(--on-lime);
  border-radius: var(--wobble);
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--t-base);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover { color: var(--on-lime); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); box-shadow: 4px 4px 0 var(--line); }
.btn-ghost:hover { color: var(--text); box-shadow: 5px 5px 0 var(--line); }
.btn-small { min-height: 2.6rem; padding: 0.4rem 1.1rem; font-size: var(--t-sm); box-shadow: 3px 3px 0 var(--shadow); }

/* ---------- hero ---------- */
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6.5vw, 5.5rem) var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(2rem, 5vw, 4rem) !important;
}
.hero h1 {
  font-family: var(--display);
  font-size: var(--t-hero);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
.lede { font-size: var(--t-md); line-height: 1.55; color: var(--text-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.5rem; }

.ca {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  width: 100%; max-width: 34rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 2px dashed var(--dash);
  border-radius: 12px;
  font: inherit; color: var(--text); text-align: left;
  cursor: default;
}
.ca.is-live { cursor: copy; border-style: solid; border-color: var(--text); }
.ca-label { font-weight: 700; }
.ca code { font-family: var(--body); font-size: var(--t-sm); color: var(--text-soft); overflow-wrap: anywhere; flex: 1; }
.ca.is-live code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
.ca-action { font-weight: 700; color: var(--accent); }

.hero-art { margin: 0; }
.luna-stage {
  position: relative;
  margin: 2.5rem 1rem 1rem 5.5rem;
}
.luna-stage img { transform-origin: 50% 90%; }
.scribbles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.scribbles path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note {
  position: absolute;
  margin: 0;
  font-family: var(--hand);
  font-weight: 700;
  color: var(--accent);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  line-height: 1;
  white-space: nowrap;
}
.note-a { left: -22%; top: 22%; transform: rotate(-6deg); }
.note-b { left: -24%; top: 70%; transform: rotate(-3deg); }
.note-c { right: 0; top: -19%; transform: rotate(4deg); text-align: right; }

/* the one orchestrated moment: marker notes write themselves on load */
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 0.7s ease-out forwards; }
.draw:nth-child(1) { animation-delay: 0.5s; }
.draw:nth-child(2) { animation-delay: 1.1s; animation-duration: 0.25s; }
.draw:nth-child(3) { animation-delay: 1.4s; }
.draw:nth-child(4) { animation-delay: 2.0s; animation-duration: 0.25s; }
.draw:nth-child(5) { animation-delay: 2.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note { opacity: 0; animation: ink-in 0.35s ease-out forwards; }
.note-a { animation-delay: 0.3s; }
.note-b { animation-delay: 1.3s; }
.note-c { animation-delay: 2.2s; }
@keyframes ink-in { to { opacity: 1; } }

.hero-art figcaption {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: 0.5rem 1rem 0 5.5rem;
}
.ball-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: none; border: 0; padding: 0.4rem 0;
  font-family: var(--hand); font-weight: 700; font-size: 1.5rem;
  color: var(--text); cursor: pointer;
}
.ball-btn:hover { color: var(--accent); }
.ball {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--on-lime);
  position: relative; overflow: hidden;
}
.ball::before {
  content: ""; position: absolute; inset: -30% 35% -30% -60%;
  border: 2px solid var(--print); border-radius: 50%;
}
.fetch-count { font-family: var(--hand); font-size: 1.35rem; color: var(--text-soft); }
.flying-ball {
  position: fixed; z-index: 50; pointer-events: none;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--on-lime);
}

/* ---------- receipt ---------- */
.receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.receipt-media { position: relative; }
.polaroid {
  position: relative;
  z-index: 1;
  width: min(100%, 25rem);
  margin: 0 0 0 auto;
  padding: 0.85rem 0.85rem 0.9rem;
  background: var(--print);
  transform: rotate(2.5deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 16px 32px -18px rgba(0,0,0,0.85);
}
.polaroid img { width: 100%; aspect-ratio: 770 / 660; object-fit: cover; }
.polaroid figcaption { padding-top: 0.7rem; display: grid; gap: 0.2rem; }
.polaroid-name {
  font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--on-lime);
}
.polaroid-credit { font-size: 0.75rem; color: var(--print-soft); text-decoration-thickness: 1px; }
.polaroid-credit:hover { color: var(--on-lime); }
.polaroid .tape { top: -0.9rem; left: 50%; margin-left: -3.25rem; transform: rotate(-4deg); }
.receipt-media .clipping { z-index: 2; margin: 0.5rem 2.5rem 0 0; }

.clipping {
  position: relative;
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 3rem);
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 14px 30px -18px rgba(0,0,0,0.8);
  font-family: Georgia, "Times New Roman", serif;
}
.clip-masthead { font-family: var(--body); font-weight: 700; font-size: var(--t-md); margin: 0; }
.clip-date { color: var(--text-soft); font-size: var(--t-sm); margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.clipping blockquote { margin: 0 0 1.5rem; }
.clipping blockquote p {
  font-size: var(--t-lg);
  line-height: 1.35;
}
.clipping blockquote p {
  /* highlighter pass over the line that matters */
  background: linear-gradient(transparent 55%, rgba(243, 255, 153, 0.28) 55%, rgba(243, 255, 153, 0.28) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
}
.clip-link { font-family: var(--body); font-weight: 700; }
.tape {
  position: absolute;
  width: 6.5rem; height: 1.9rem;
  background: rgba(240, 233, 205, 0.82);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.tape-l { top: -0.8rem; left: 1.5rem; transform: rotate(-8deg); }
.tape-r { bottom: -0.8rem; right: 1.5rem; transform: rotate(6deg); }
.receipt-copy { max-width: 36em; }
.receipt-copy h2 { margin-bottom: 1.5rem; }
.aside { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; color: var(--accent); line-height: 1.2; }

/* ---------- lore timeline ---------- */
.lore h2 { max-width: 16em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.75rem;
  position: relative;
}
.timeline::before {
  /* the marker line the years hang off */
  content: "";
  position: absolute; left: 0; right: 0; top: 3.15rem;
  height: 4px; border-radius: 4px;
  background: var(--text);
  transform: rotate(-0.4deg);
}
.timeline li { position: relative; padding-top: 4.5rem; }
.timeline li::before {
  content: "";
  position: absolute; left: 0; top: 2.65rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--text);
}
.timeline li.now::before { background: var(--accent); }
.year {
  position: absolute; top: 0; left: 0;
  font-family: var(--hand); font-weight: 700;
  font-size: 2.25rem; line-height: 1;
  color: var(--accent);
}
.timeline h3 { margin-bottom: 0.5rem; }
.timeline p { color: var(--text-soft); font-size: 1rem; }

/* ---------- why ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.why-art { margin: 0; }
.why-art img { }
.why-copy { max-width: 36em; }
.why-copy h2 { margin-bottom: 1.5rem; }
.why-copy > p { font-size: var(--t-md); line-height: 1.55; }
.other-luna {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 2.5px solid var(--text);
  border-radius: var(--wobble);
  background: var(--surface);
}
.other-luna h3 { margin-bottom: 0.4rem; }

/* ---------- memes: prints taped to the glass ---------- */
.memes-head { max-width: 40em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.memes-head h2 { margin-bottom: 1rem; }
.memes-head p { color: var(--text-soft); font-size: var(--t-md); }
.meme-wall {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem);
}
.meme {
  position: relative;
  display: block; width: 100%;
  padding: 0.6rem 0.6rem 0.4rem;
  background: var(--print);
  border: 0;
  font: inherit; color: var(--on-lime); text-align: center;
  cursor: zoom-in;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 14px 24px -16px rgba(0,0,0,0.85);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.meme::before {
  content: "";
  position: absolute; top: -0.7rem; left: 50%;
  width: 4.5rem; height: 1.4rem; margin-left: -2.25rem;
  background: rgba(220, 239, 60, 0.75);
  transform: rotate(var(--tape, -3deg));
}
.meme:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 22px 34px -18px rgba(0,0,0,0.9); }
.meme img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.meme-cap {
  display: block;
  padding: 0.45rem 0.25rem 0.1rem;
  font-family: var(--hand); font-weight: 700; font-size: 1.35rem; line-height: 1.15;
}
.meme-wall li:nth-child(4n+1) .meme { --tilt: -1.6deg; --tape: 4deg; }
.meme-wall li:nth-child(4n+2) .meme { --tilt: 1.2deg; }
.meme-wall li:nth-child(4n+3) .meme { --tilt: -0.6deg; --tape: -6deg; }
.meme-wall li:nth-child(4n+4) .meme { --tilt: 1.9deg; --tape: 2deg; }
.meme-wall li:nth-child(3n) .meme-cap { color: var(--print-accent); }

.meme-viewer {
  width: min(92vw, 40rem);
  max-height: 94vh;
  padding: 0.9rem 0.9rem 1.1rem;
  border: 0;
  background: var(--print);
  color: var(--on-lime);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.meme-viewer::backdrop { background: rgba(10, 10, 10, 0.82); }
.meme-viewer figure { margin: 0; }
.meme-viewer img { width: 100%; max-height: 74vh; object-fit: contain; background: var(--on-lime); }
.meme-viewer figcaption {
  font-family: var(--hand); font-weight: 700; font-size: 1.8rem; line-height: 1.2;
  text-align: center; margin: 0.6rem 0 0.9rem;
}
.viewer-actions { display: flex; gap: 1rem; justify-content: center; }
/* the viewer is a white print, so its buttons keep their dark outlines */
.meme-viewer .btn { box-shadow: 3px 3px 0 var(--on-lime); }
.meme-viewer .btn-ghost { color: var(--on-lime); border-color: var(--on-lime); }

/* ---------- pack: index cards taped to the glass ---------- */
.pack-head { max-width: 40em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pack-head h2 { margin-bottom: 1rem; }
.pack-head p { color: var(--text-soft); font-size: var(--t-md); }
.pack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas:
    "don eric"
    "don shaul"
    "don yuval";
  gap: 2.25rem 2.5rem;
  align-items: start;
}
.card {
  position: relative;
  background: var(--surface);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 12px 24px -16px rgba(0,0,0,0.8);
  /* ruled index card */
  background-image: linear-gradient(var(--surface) 2.6rem, transparent 2.6rem),
    repeating-linear-gradient(transparent 0 calc(1.6em - 1px), rgba(245,245,240,0.07) calc(1.6em - 1px) 1.6em);
}
.card .tape { top: -0.85rem; left: 50%; margin-left: -3.25rem; transform: rotate(-3deg); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-lg); margin-bottom: 0.75rem; }
.card-luna {
  font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.2;
  color: var(--accent); margin-top: 1rem;
}
.card-don { grid-area: don; transform: rotate(-0.8deg); }
.card-don img { width: 78%; margin: -0.5rem auto 0.5rem; }
.card-don h3 { color: var(--red); }
.card-eric { grid-area: eric; transform: rotate(1deg); }
.card-shaul { grid-area: shaul; transform: rotate(-0.6deg); }
.card-yuval { grid-area: yuval; transform: rotate(0.9deg); }

/* ---------- ruling ---------- */
.ruling { text-align: center; }
.ruling blockquote { margin: 0 auto; max-width: 54rem; }
.ruling blockquote p {
  font-family: var(--display);
  font-size: var(--t-xl);
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.ruling footer { color: var(--text-soft); font-size: var(--t-sm); }
.ruling-note { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--accent); margin-top: 1.5rem; }

/* ---------- buy ---------- */
.buy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.buy-copy h2 { margin-bottom: 1rem; }
.buy-copy > p { font-size: var(--t-md); color: var(--text-soft); max-width: 30em; }
.steps {
  list-style: none; margin: 2.25rem 0 2.5rem; padding: 0;
  counter-reset: step;
  display: grid; gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 1.25rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  border: 2.5px solid var(--accent);
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  font-family: var(--hand); font-weight: 700; font-size: 1.9rem; color: var(--accent);
}
.steps h3 { margin-top: 0.2rem; }
.steps p { color: var(--text-soft); }
.buy-art { margin: 0; }
.buy-art img { }
.buy-art figcaption { font-family: var(--hand); font-weight: 700; font-size: 1.4rem; color: var(--accent); text-align: center; line-height: 1.2; margin-top: 0.5rem; }

/* ---------- facts ---------- */
.facts { padding-top: 0 !important; }
.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
}
.facts dl > div { padding: 1.25rem 1rem; }
.facts dl > div + div { border-left: 2px solid var(--text); }
.facts dt { color: var(--text-soft); font-size: var(--t-sm); }
.facts dd { margin: 0; font-family: var(--display); font-size: var(--t-lg); line-height: 1.2; }

/* ---------- faq ---------- */
.faq { max-width: 52rem !important; }
.faq h2 { margin-bottom: 2rem; }
.faq details { border-bottom: 2px solid var(--text); }
.faq details:first-of-type { border-top: 2px solid var(--text); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700; font-size: var(--t-md);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--hand); font-size: 2.25rem; line-height: 1; color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.25rem; color: var(--text-soft); max-width: 40em; }

/* ---------- footer: the worn wooden floor ---------- */
.floor {
  margin-top: clamp(3rem, 8vw, 6rem);
  background-color: var(--wood);
  /* long boards, alternating tone, with a dark seam between each */
  background-image:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.05) 0 calc(3rem - 2px), rgba(40,22,10,0.45) calc(3rem - 2px) 3rem,
      rgba(0,0,0,0.07) 3rem calc(6rem - 2px), rgba(40,22,10,0.45) calc(6rem - 2px) 6rem,
      rgba(255,255,255,0.02) 6rem calc(9rem - 2px), rgba(40,22,10,0.45) calc(9rem - 2px) 9rem),
    repeating-linear-gradient(91deg, transparent 0 7px, rgba(60,35,15,0.06) 7px 9px, transparent 9px 23px);
  border-top: 6px solid var(--wood-dark);
  color: #fff8ec;
}
.floor-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 3rem;
  align-items: center;
}
.floor-sign { font-family: var(--display); font-size: var(--t-xl); line-height: 1; margin: 0; }
.socials { display: flex; gap: 1.75rem; justify-self: end; }
.socials a { color: #fff8ec; font-weight: 700; font-size: var(--t-md); }
.socials a:hover { color: var(--accent); }
.disclaimer {
  grid-column: 1 / -1;
  font-size: var(--t-sm);
  line-height: 1.55;
  max-width: 60em;
  color: #fff3df;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 1.25rem;
  border-radius: 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .timeline::before { display: none; }
  .timeline li { border-top: 3px solid var(--text); padding-top: 3.75rem; }
  .timeline li::before { display: none; }
  .year { top: 0.75rem; }
  .meme-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero, .receipt, .why, .buy { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .luna-stage { margin: 3rem 0.5rem 0.5rem 0.5rem; }
  .hero-art figcaption { margin: 0.5rem 0.5rem 0; }
  .note-a { left: 2%; top: -14%; }
  .note-b { left: auto; right: 1%; top: 88%; }
  .note-c { display: none; }
  .scribbles { display: none; }
  .why-art { max-width: 26rem; margin: 0 auto; }
  .polaroid { margin: 0 auto; width: min(88%, 22rem); }
  .receipt-media .clipping { margin: 1.25rem 0 0; }
  .buy-art { max-width: 22rem; margin: 0 auto; }
  .pack-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "don" "eric" "shaul" "yuval";
  }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div:nth-child(3) { border-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 2px solid var(--text); }
}

@media (max-width: 600px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .meme-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .meme { padding: 0.4rem 0.4rem 0.25rem; }
  .meme-cap { font-size: 1.1rem; }
  .floor-inner { grid-template-columns: minmax(0, 1fr); }
  .socials { justify-self: start; }
  .cta-row .btn { flex: 1 1 100%; }
  .tape-ticker { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .note { animation: none; opacity: 1; }
  .btn, .faq summary::after, .meme { transition: none; }
}
