/* lilchillgames.com
   One stylesheet, no build step, no script. Two type families and one accent.
   The accent is the rust mid-tone out of Dragon's Tear's own 256-colour ramp
   (src/00-palette.js), which sits at 8.6:1 on the paper and so carries links
   and status labels on its own without a second colour. */

:root {
  --paper: #f7f4ec;
  --ink: #1b1a16;
  --muted: #5d574a;
  --accent: #703517;
  --rule: #ddd6c6;
  --tint: #efe9dc;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--accent); }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
  display: inline-block;
  margin: 8px 0 0 20px;
  padding: 6px 10px;
  background: var(--tint);
  color: var(--ink);
}

/* --- bar ---------------------------------------------------------------- */

.bar {
  border-bottom: 1px solid var(--rule);
}
.bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.bar nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.bar nav a {
  color: var(--muted);
  text-decoration: none;
}
.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--accent);
}

/* --- headings and text -------------------------------------------------- */

main { padding: 44px 0 8px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.25;
  margin: 0;
}
h1 { font-size: 34px; }
h2 { font-size: 24px; margin-top: 44px; }
h3 { font-size: 19px; margin-top: 32px; }

p { margin: 0 0 16px; }

.lede {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.meta {
  font-size: 15px;
  color: var(--muted);
  margin: 6px 0 12px;
}

.note {
  font-size: 15px;
  color: var(--muted);
}

ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 6px; }

/* --- status label ------------------------------------------------------- */

.status {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}
.status.out {
  background: var(--accent);
  color: var(--paper);
}

/* --- the game block ----------------------------------------------------- */

.game {
  border-top: 1px solid var(--rule);
  padding-top: 30px;
  margin-top: 30px;
}
.game:first-of-type { border-top: 0; }
.game h2 { margin-top: 0; }

.game-body > *:last-child { margin-bottom: 0; }

.game h2 a {
  color: var(--ink);
  text-decoration: none;
}
.game h2 a:hover { color: var(--accent); }

.cover {
  display: block;
  margin: 0 0 16px;
}
.cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 15px;
}

/* --- figures ------------------------------------------------------------ */

figure {
  margin: 0 0 24px;
}
figure img,
video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--tint);
}
figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.shots {
  margin: 24px 0 0;
}

/* --- facts -------------------------------------------------------------- */

.facts {
  margin: 0 0 20px;
  font-size: 16px;
}
.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
}
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt {
  flex: 0 0 190px;
  color: var(--muted);
}
.facts dd {
  flex: 1 1 260px;
  margin: 0;
}

/* --- calls to action ---------------------------------------------------- */

.cta {
  display: inline-block;
  margin: 0 10px 10px 0;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}
.cta:hover { background: var(--paper); color: var(--accent); }
.cta.plain {
  background: transparent;
  color: var(--accent);
}
.cta.plain:hover { background: var(--tint); }

/* --- footer ------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  margin-top: 56px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 15px;
  color: var(--muted);
}

/* --- one breakpoint ----------------------------------------------------- */

@media (min-width: 700px) {
  body { font-size: 18px; }
  h1 { font-size: 40px; }
  h2 { font-size: 27px; }
  .lede { font-size: 23px; }
  main { padding-top: 56px; }

  /* Cover right of the text on a wide screen, above it on a narrow one. The
     cover comes first in the source so the narrow order needs no work; the
     row is reversed here to send it to the right. */
  .game {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 32px;
  }
  .game .cover {
    flex: 0 0 260px;
    margin: 7px 0 0;
  }
  .game-body {
    flex: 1 1 auto;
    min-width: 0;
  }
}
