/* 211J Games hub: lined notebook paper, pencil yellow, locker green, red margin. */
:root {
  color-scheme: light;
  --paper: #fdfcf2;
  --rule: #c3d9ee;          /* faint blue notebook lines, decorative only */
  --margin: #d8453b;        /* red margin line, decorative only */
  --ink: #1b2620;
  --muted: #46524b;
  --green: #2f6b4f;
  --green-dark: #1f4a36;
  --yellow: #f5c518;
  --yellow-dark: #8a6a00;
  --line: 28px;             /* spacing between ruled lines */
  --heading: "Marker Felt", "Chalkboard SE", "Comic Sans MS", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--paper);
  /* Ruled lines, one line thick every --line. No image data. */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--line) - 2px),
    var(--rule) calc(var(--line) - 2px),
    var(--rule) var(--line)
  );
}

/* Red margin line. Sits inside the 16px gutter on phones. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: var(--margin);
  pointer-events: none;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

h1, h2, .logo, .button, .tag {
  font-family: var(--heading);
}

/* Header */
.masthead { margin-bottom: 28px; }

.logo {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1.1;
}

.lede { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }

/* Featured card */
.card {
  background: #fff;
  border: 3px solid var(--green);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--green-dark);
}

.card-art {
  display: block;
  width: 100%;
  height: auto;
  background: var(--green);
}

.card-body { padding: 16px 16px 8px; }
.card-body p { margin: 0 0 14px; }

.tag {
  display: inline-block;
  padding: 0 10px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h2 {
  margin: 6px 0 8px;
  color: var(--green-dark);
  font-size: 1.8rem;
  line-height: 1.15;
}

/* Play button */
.button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.button:hover { background: #ffd33d; }

.button:focus-visible,
.logo:focus-visible {
  outline: 4px solid var(--green);
  outline-offset: 3px;
}

/* Motion only for people who have not asked for less of it. */
@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease; }
  .button:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 5px 5px 0 var(--ink); }
  .button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
}

.soon {
  display: inline-block;
  margin: 28px 0 0;
  padding: 2px 10px;
  background: var(--paper);
  color: var(--muted);
  font-style: italic;
}

.foot { margin-top: 40px; font-size: 0.9rem; }
.foot p { display: inline-block; margin: 0; padding: 2px 10px; background: var(--paper); color: var(--muted); }

/* Wider screens: push the content right of the margin line. */
@media (min-width: 640px) {
  body::before { left: 40px; }
  .page { padding: 40px 16px 56px 72px; max-width: 48rem; margin: 0 auto; }
  .card { display: grid; grid-template-columns: 1fr; }
}
