:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-soft: #edf3ef;
  --ink: #16221d;
  --muted: #5b6963;
  --line: #d6ded8;
  --jade: #1d7558;
  --jade-dark: #15563f;
  --red: #a8433e;
  --gold: #b4872f;
  --blue: #315b7c;
  --shadow: 0 18px 40px rgba(22, 34, 29, 0.08);
  --radius: 8px;
  --max-page: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--jade-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

p {
  color: var(--muted);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100vw - var(--max-page)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-soft);
}

.section-wrap {
  width: min(100% - 2rem, var(--max-page));
  margin-inline: auto;
}

.home-hero,
.game-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: end;
  padding: 4.5rem 0 2.2rem;
}

.home-hero__copy {
  min-width: 0;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  color: #374841;
  font-size: 1.08rem;
}

.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--jade);
  color: white;
}

.button-primary:hover {
  background: var(--jade-dark);
  color: white;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--jade);
  color: var(--jade-dark);
}

.home-preview,
.note-panel,
.info-panel,
.article-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-preview {
  padding: 1.3rem;
}

.home-preview h2 {
  margin-bottom: 0.5rem;
}

.preview-label {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  background: #f5ead4;
  color: #67460f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.note-panel,
.info-panel {
  padding: 1.1rem;
}

.game-intro {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 1.25rem;
}

.jump-link {
  align-self: end;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 1.25rem;
  align-items: start;
}

.game-stage {
  min-width: 0;
}

.game-aside {
  display: grid;
  gap: 1rem;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.clean-list li + li {
  margin-top: 0.45rem;
}

.link-list {
  display: grid;
  gap: 0.6rem;
}

.link-list a {
  display: block;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.article-block,
.article-grid,
.article-page {
  padding: 3rem 0;
}

.article-block {
  max-width: 820px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.article-grid article {
  padding: 1.2rem;
}

.article-page {
  max-width: 820px;
}

.article-page h1 {
  max-width: 15ch;
}

.article-page h2 {
  margin-top: 2rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(100% - 2rem, var(--max-page));
  margin: 3rem auto 0;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .home-hero,
  .game-intro,
  .content-grid,
  .game-layout,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .game-intro {
    padding-top: 2.5rem;
  }

  .jump-link {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .section-wrap {
    width: min(100% - 1rem, var(--max-page));
  }

  .site-header {
    padding-inline: 0.5rem;
  }

  .site-nav a {
    padding-inline: 0.55rem;
  }

  h1 {
    font-size: 2.45rem;
  }
}
