/* Loonlight Games: the night lake and the lit window. One reading column set against full-width pictures of the
   game, in the game's own fonts (Jersey 10 for headings, Atkinson Hyperlegible for everything read). */
@font-face { font-family: "Jersey 10"; src: url("/fonts/Jersey10-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/AtkinsonHyperlegible-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/AtkinsonHyperlegible-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --lake: #172533;        /* the page: a northern lake at night */
  --lake-deep: #0f1a24;   /* bands and the footer */
  --spruce: #22342c;      /* the one quiet panel colour */
  --birch: #e4e7e1;       /* text */
  --mist: #9fb0b4;        /* secondary text */
  --lantern: #e9a94b;     /* the lit window: actions only */
  --lantern-deep: #c9862c;
  --loon-red: #d4574a;    /* errors */
  --display: "Jersey 10", "Silkscreen", ui-monospace, monospace;
  --body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lake); color: var(--birch); font: 400 1.0625rem/1.6 var(--body); }
img, video { display: block; max-width: 100%; height: auto; }
.px { image-rendering: pixelated; }
a { color: var(--lantern); text-underline-offset: 0.18em; }
a:hover { color: #f4c37a; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h3 { font-size: 1.8rem; }
p { margin: 0; }

/* the bar across the top of every page */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem var(--gutter); }
.bar.over { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.mark { display: flex; align-items: center; gap: 0.65rem; color: var(--birch); text-decoration: none; font: 1.7rem/1 var(--display); }
.mark img { width: 3rem; }
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.bar nav a { color: var(--birch); text-decoration: none; font-size: 0.95rem; }
.bar nav a:hover { color: var(--lantern); }

/* the header: the game itself, moving */
.hero { position: relative; min-height: min(92vh, 56rem); display: grid; align-items: end; overflow: hidden; background: var(--lake-deep); }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; image-rendering: pixelated; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 26, 36, 0.55) 0%, rgba(15, 26, 36, 0) 22%, rgba(15, 26, 36, 0) 45%, rgba(15, 26, 36, 0.92) 100%); }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(2rem, 6vh, 4rem); display: grid; gap: 1.1rem; max-width: 44rem; }
.hero-copy .logo { width: min(32rem, 84vw); }
.hero-copy .pitch { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 34rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.note { color: var(--mist); font-size: 0.9rem; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.3rem; border-radius: 3px; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--lantern); color: #1b1408; box-shadow: 0 3px 0 var(--lantern-deep); }
.btn.primary:hover { background: #f4bd67; color: #1b1408; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lantern-deep); }
.btn.quiet { border-color: rgba(228, 231, 225, 0.5); color: var(--birch); background: rgba(15, 26, 36, 0.4); }
.btn.quiet:hover { border-color: var(--birch); color: var(--birch); }

/* sections: one column of words; pictures may run wider */
main > section { padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter); }
.col { max-width: var(--measure); display: grid; gap: 1rem; }
.lede { font-size: 1.2rem; color: var(--birch); }

/* the year, in four pictures: a real sequence, so the seasons are named in order */
.year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-top: 2rem; }
.year figure { margin: 0; display: grid; gap: 0.5rem; }
.year img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; border-radius: 2px; }
.year figcaption { font: 1.5rem/1 var(--display); color: var(--mist); }
.year figcaption span { display: block; font: 0.9rem/1.4 var(--body); margin-top: 0.3rem; }

/* what you do: words beside the firelit room */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split img { width: 100%; image-rendering: pixelated; border-radius: 2px; }
.doing { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.doing li { padding-left: 1.4rem; position: relative; }
.doing li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; background: var(--lantern); }
.doing b { color: var(--birch); }

.village { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 2rem; }
.village img { width: 100%; image-rendering: pixelated; border-radius: 2px; }

/* the mailing list, under the aurora */
.letters { position: relative; background: var(--lake-deep); overflow: hidden; }
.letters .sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; image-rendering: pixelated; }
.letters .col { position: relative; }
.signup { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.signup input[type=email] { flex: 1 1 16rem; min-width: 0; padding: 0.8rem 0.9rem; border-radius: 3px; border: 2px solid rgba(228, 231, 225, 0.35); background: rgba(15, 26, 36, 0.85); color: var(--birch); font: 1rem var(--body); }
.signup input[type=email]:focus { border-color: var(--lantern); outline: none; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.signup-status { min-height: 1.5em; font-size: 0.95rem; }
.signup-status.ok { color: #a9d18e; }
.signup-status.err { color: var(--loon-red); }

.studio { display: grid; grid-template-columns: auto minmax(0, var(--measure)); gap: 1.5rem; align-items: start; }
.studio img { width: 5rem; }

footer { background: var(--lake-deep); padding: 2rem var(--gutter) 2.5rem; color: var(--mist); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
footer a { color: var(--mist); }

/* press kit and privacy: plain reading pages */
.page { padding: clamp(2rem, 6vw, 4rem) var(--gutter) 5rem; }
.page h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 2rem; margin: 2.5rem 0 0.8rem; }
.page .col p + p { margin-top: 0.2rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 1.5rem; margin: 0; }
.facts dt { color: var(--mist); }
.facts dd { margin: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.shots a { display: block; }
.shots img { width: 100%; image-rendering: pixelated; border-radius: 2px; }
.page ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin: 0.5rem 0 0; }

@media (max-width: 52rem) {
  .year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .studio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .bar nav { gap: 0.9rem; }
  .village { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
}
