/* How the placeholder site looks. Colours come from Assets/Palette (FilRoom).
   Each section is one flat block of colour. Merch is pure black so artwork
   drawn on black blends straight into the page. */

@font-face { font-family: "Fell"; src: url("fonts/fell.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --green: #B3DBB5;    /* Carpet Green */
  --ink: #3C3537;      /* Ink */
  --red: #AE3D3E;      /* Daruma Shadow */
  --mustard: #EDC373;  /* Mustard */
  --edge: clamp(1.25rem, 5vw, 5rem);  /* space at the sides of the page */
  --gap: clamp(1rem, 2.5vw, 2.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 1.0625rem/1.6 "Atkinson", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

h1, h2, h3 { font-family: "Fell", Georgia, serif; font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h3 { font-size: 1.75rem; }
h3 span { opacity: 0.7; white-space: nowrap; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

.games, .merch, .about { padding: clamp(3.5rem, 8vw, 7rem) var(--edge); }

/* ---------- Top of the page ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; background: var(--green); min-height: min(100svh, 52rem); }
.hero-text { display: flex; flex-direction: column; padding: 1.75rem var(--edge) 0; }
.hero nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-bottom: auto; }
.hero nav a { padding: 0.4rem 0; }
.hero h1 { font-size: clamp(3.75rem, 10vw, 9rem); line-height: 0.92; margin: 2.5rem 0 1.5rem; }
.hero p { font-size: 1.25rem; line-height: 1.5; max-width: 34ch; }
.button { display: inline-block; padding: 0.6rem 1.1rem; background: var(--ink); color: #fff; text-decoration: none; }
.bird { width: 6.5rem; margin-top: auto; padding-top: 1.5rem; }  /* stands on the bottom edge */
.portrait { width: 46vw; height: 100%; max-height: 52rem; object-fit: cover; object-position: 50% 20%; }

/* ---------- Games ---------- */
.game { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap) clamp(1.5rem, 4vw, 4rem); align-items: start; margin-top: clamp(2.5rem, 6vw, 5rem); }
.role { margin: 0.4rem 0 1.1rem; font-weight: 700; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; color: #fff; }
.video img, .video iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video span { position: absolute; left: 0; bottom: 0; padding: 0.6rem 1.1rem; background: var(--ink); }
.video:hover span { background: var(--red); }

/* ---------- Merch ---------- */
.merch { background: #000; color: #fff; }
.merch-intro p { margin-top: 1.5rem; }
.event { margin-top: clamp(3rem, 7vw, 6rem); }
.event h3 { margin-bottom: 1.25rem; font-size: 2rem; }
.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid a { aspect-ratio: 4 / 5; cursor: zoom-in; }
.cols-2 a { aspect-ratio: 1; }
.grid img { width: 100%; height: 100%; object-fit: contain; }
.grid .paper { background: #fff; }                /* see-through or white pictures */
.grid .paper img { padding: 6%; }
.grid .fill img { object-fit: cover; }            /* pictures with their own backdrop */

#viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 1rem; border: 0; background: #000; color: #fff; }
#viewer img { width: 100%; height: 100%; object-fit: contain; }
#viewer.paper { background: #fff; color: var(--ink); }
#viewer button { position: absolute; top: 1rem; right: 1rem; padding: 0.6rem 1.1rem; border: 0; background: var(--ink); color: #fff; font: inherit; cursor: pointer; }

/* ---------- About ---------- */
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem clamp(2rem, 6vw, 6rem); margin-top: 2rem; }
.about h3 { margin-bottom: 0.75rem; }
.about-main h3 { margin-top: 2.5rem; }
.about-main li { margin-bottom: 0.75rem; max-width: 62ch; }
.about-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; align-content: start; }
.about-lists li { margin-bottom: 0.35rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 2fr 3fr; background: var(--mustard); }
.contact img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; }
.contact div { display: flex; flex-direction: column; padding: clamp(2.5rem, 6vw, 5rem) var(--edge); }
.contact ul { margin: 1.5rem 0 3rem; font-size: 1.25rem; }
.contact li a { display: inline-block; padding: 0.35rem 0; }
.contact p { margin: auto 0 0; }

/* ---------- Phones and narrow windows ---------- */
@media (max-width: 800px) {
  .hero, .game, .about-columns, .contact { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero h1 { margin-top: 2rem; }
  .portrait { width: 100%; height: auto; max-height: none; aspect-ratio: 1; }
  .bird { width: 5rem; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .contact img { max-height: 20rem; }
}

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