:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #eef3ed;
  --ink: #1d241f;
  --muted: #657066;
  --line: #d8ded6;
  --accent: #1f7a5a;
  --accent-2: #c64f3a;
  --accent-3: #265d9a;
  --soft: #e9dfc9;
  --shadow: 0 16px 40px rgba(24, 32, 25, 0.09);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(246, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.top-nav,
.site-footer nav,
.card-actions,
.hero-actions,
.meta-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #f3d36b;
  font-weight: 900;
}

.top-nav {
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.top-nav a,
.site-footer a,
.text-link {
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--accent);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  padding: clamp(36px, 7vw, 86px) 0 34px;
  align-items: stretch;
}

.hero-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  color: #f8f7f1;
  background:
    linear-gradient(110deg, rgba(20, 30, 24, 0.92), rgba(20, 30, 24, 0.74)),
    url("/assets/cover.svg");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero h1,
.page-head h1,
.article-head h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 76px);
}

.lede,
.hero-copy p {
  max-width: 680px;
}

.lede {
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #f3d36b;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: #f3d36b;
  border-color: #f3d36b;
}

.button.ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-actions,
.card-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.quick-panel,
.game-card,
.band,
.table-wrap,
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-panel {
  padding: 28px;
}

.quick-panel h2,
.band h2 {
  margin-top: 0;
}

.toolbar-section,
.page-head,
.article {
  padding: 34px 0 20px;
}

.toolbar-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.toolbar-section h2,
.page-head h1,
.article h2 {
  margin: 0 0 8px;
}

.search-box {
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 16px 0 42px;
}

.grid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card {
  overflow: hidden;
}

.card-media {
  min-height: 116px;
  display: flex;
  align-items: end;
  padding: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #263f35);
}

.card-media.rising {
  background: linear-gradient(135deg, var(--accent-2), #5c2e25);
}

.card-media.watch {
  background: linear-gradient(135deg, var(--accent-3), #26334b);
}

.card-body {
  padding: 18px;
}

.meta-row {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.game-card h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.game-card p,
.toolbar-section p,
.page-head p,
.article-head p,
.band p,
.site-footer p {
  color: var(--muted);
}

.band {
  margin: 8px 0 48px;
  padding: 26px;
  background: var(--soft);
}

.page-head,
.article {
  max-width: 920px;
}

.article {
  margin: 0 auto 52px;
}

.article-head {
  padding: 42px 0 20px;
}

.article-head h1,
.page-head h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-2);
  background: #fff4ee;
  color: #713525;
  font-weight: 800;
}

.byline,
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.byline span,
.summary-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.article section {
  margin: 32px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.copy-code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  cursor: pointer;
}

.steps li,
.article li {
  margin: 8px 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

code {
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--surface-2);
}

.tool-panel {
  padding: 24px;
}

.tracker-form {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 10px;
}

.tracker-log {
  padding-left: 18px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 18px;
}

details {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #e9ece4;
}

.site-footer nav {
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .site-header,
  .toolbar-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .grid,
  .grid.small,
  .two-col,
  .related-list {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 360px;
  }

  .tracker-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy {
    padding: 24px;
  }
}
