/* Evil Melon, "Rind" look: the page is the melon's skin, dark bands are its stripes. */
:root {
  --rind: #0f6e1c;       /* page background */
  --stripe: #082e0d;     /* dark bands, zigzags */
  --flesh: #ffffff;      /* text on green, cards */
  --pale: #d8f5d2;       /* secondary text on green */
  --muted: #b9ddb3;      /* small print on the dark band */
  --ink: #102012;        /* text inside white cards */
  --seed: #0b1f0e;       /* buttons */
  --focus: #ffd23f;

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rind);
  color: var(--flesh);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: var(--flesh); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--pale); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

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

/* ---------- header ---------- */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.375rem; color: var(--flesh); text-decoration: none; }
.brand img { width: 40px; image-rendering: pixelated; }
.site-nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 1.75rem); font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- the zigzag band, from the logo's stripes ---------- */
.stripes {
  height: 72px; border: 0; margin: 0;
  background:
    linear-gradient(135deg, var(--rind) 25%, transparent 25%) -36px 0 / 72px 72px,
    linear-gradient(225deg, var(--rind) 25%, transparent 25%) -36px 0 / 72px 72px,
    linear-gradient(315deg, var(--rind) 25%, transparent 25%) 0 0 / 72px 72px,
    linear-gradient(45deg, var(--rind) 25%, transparent 25%) 0 0 / 72px 72px;
  background-color: var(--stripe);
}
.band { background: var(--stripe); }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.75rem; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-melon {
  width: clamp(180px, 26vw, 300px); image-rendering: pixelated; border-radius: 50%;
  box-shadow: 0 0 0 14px var(--stripe), 0 0 0 26px var(--flesh);
  margin: 26px 0 0;
  animation: wobble 1s cubic-bezier(.2,1.5,.4,1) .1s both;
}
@keyframes wobble { from { transform: rotate(-18deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.hero h1 { margin: 1rem 0 0; font-weight: 900; font-size: clamp(3.5rem, 10vw, 8rem); line-height: 0.9; letter-spacing: -0.035em; text-wrap: balance; }
.hero p { margin: 0; max-width: 34ch; font-size: clamp(1.15rem, 2.2vw, 1.375rem); color: var(--pale); }

/* ---------- sections ---------- */
.section { padding-top: clamp(3rem, 6vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4rem); display: flex; flex-direction: column; gap: 1.75rem; }
.section h2 { margin: 0; font-weight: 800; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.section h2.after { margin-top: 2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.card { background: var(--flesh); color: var(--ink); border-radius: 28px; padding: 2rem; display: flex; flex-direction: column; gap: 0.875rem; }
.card h3 { margin: 0; font-weight: 800; font-size: 1.875rem; line-height: 1.1; }
.card p { margin: 0; }
.pill { align-self: flex-start; margin-top: 0.5rem; padding: 0.75rem 1.4rem; border-radius: 999px; background: var(--seed); color: var(--flesh); text-decoration: none; font-weight: 500; }
.pill:hover { background: var(--rind); color: var(--flesh); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1.25rem; }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 0.6rem; }
.tile .thumb { aspect-ratio: 4 / 3; border-radius: 20px; background: var(--rind) center / cover no-repeat; display: grid; place-items: center; }
.tile .thumb svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.tile strong { font-size: 1.25rem; line-height: 1.2; }
.tile span { font-size: 0.95rem; color: var(--muted); }
.tile:hover strong { text-decoration: underline; }

/* ---------- film page ---------- */
.page-title { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; gap: 0.75rem; }
.page-title h1 { margin: 0; font-weight: 900; font-size: clamp(3.5rem, 10vw, 7rem); line-height: 0.9; letter-spacing: -0.035em; }
.page-title p { margin: 0; color: var(--pale); }

.film { padding: clamp(2rem, 5vw, 3rem) 0; display: flex; flex-direction: column; }
.film + .film { border-top: 2px solid rgba(255,255,255,.14); }
.film h2 { margin: 0 0 0.35rem; font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.film .credit { margin: 0 0 1.25rem; color: var(--muted); font-size: 1rem; }
.film p { max-width: var(--measure); margin: 0; color: var(--pale); }

.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 860px;
  background: #000 center / cover no-repeat; border: 0; padding: 0; margin: 0 0 1.25rem;
  border-radius: 20px; overflow: hidden; cursor: pointer; display: block;
}
.player.four-three { aspect-ratio: 4 / 3; max-width: 680px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--flesh); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(8,46,13,.55); transition: transform .15s ease; }
.player:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.player .play::after { content: ""; margin-left: 6px; border-left: 26px solid var(--rind); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- footer / contact ---------- */
.site-foot { padding-top: clamp(3rem, 6vw, 4rem); padding-bottom: 4.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.site-foot h2 { margin: 0; font-weight: 800; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.site-foot p { margin: 0; color: var(--pale); max-width: var(--measure); }
.mail { font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 1.875rem); color: var(--flesh); }
.small { font-size: 0.95rem; margin-top: 1.5rem !important; }

/* ---------- 404 ---------- */
.lost { padding-top: clamp(3rem, 10vw, 6rem); padding-bottom: clamp(3rem, 10vw, 6rem); display: flex; flex-direction: column; gap: 1rem; }
.lost h1 { margin: 0; font-weight: 900; font-size: clamp(2.6rem, 9vw, 5rem); line-height: .95; letter-spacing: -0.035em; }

@media (max-width: 640px) {
  .brand span { display: none; }
  .stripes { height: 48px; background-size: 48px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-melon { animation: none; }
  .player .play { transition: none; }
}
