:root {
  --bg: #f2f4f7;
  --card: #fff;
  --ink: #162033;
  --mute: #566074;
  --red: #c8102e;
  --line: #dde2ea;
  --head: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1520;
    --card: #18212f;
    --ink: #eef1f6;
    --mute: #a4aec0;
    --red: #ff4d67;
    --line: #2a3548;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.1rem; }

header.top { background: var(--card); border-bottom: 4px solid var(--red); }
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.logo {
  font: 800 1.4rem/1 var(--head);
  text-decoration: none;
}
.logo span { color: var(--red); }
nav a {
  margin-left: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--mute);
}

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.1;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; max-width: 15ch; }
h1.wide { max-width: none; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; }

.hero { padding: 2.4rem 0 1.6rem; }
.hero p { max-width: 60ch; color: var(--mute); font-size: 1.15rem; }
.hero .disc {
  font-size: .92rem;
  border-left: 4px solid var(--red);
  padding: .2rem .8rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tile {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 clamp(1.4rem, 4vw, 1.9rem)/1.1 var(--head);
  text-align: center;
  padding: 0 .5rem;
}
.cardbody {
  padding: .9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.cardbody h3 { font-size: 1.25rem; margin: 0; }
.cardbody h3 a { text-decoration: none; }
.cardbody p { margin: 0; color: var(--mute); }
.tag { font-size: .9rem; font-weight: 600; color: var(--red); }
.btns {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .4rem;
}
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--red);
  min-height: 44px;
}
.btn.p { background: var(--red); color: #fff; }
.btn.s { border-color: var(--line); }

section { padding: 1.6rem 0; }
.two { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .two { grid-template-columns: 1.1fr 1fr; }
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem;
}
.panel ul { padding-left: 1.2rem; margin: .4rem 0; }
.note { color: var(--mute); font-size: .95rem; }
.crumb { padding-top: 1.2rem; color: var(--mute); font-size: .95rem; }
.hero-tile {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 clamp(2rem, 8vw, 3.5rem)/1 var(--head);
  text-align: center;
}
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem 1rem;
  margin-bottom: .6rem;
}
summary { font-weight: 600; cursor: pointer; }
footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.4rem 0;
  color: var(--mute);
  font-size: .92rem;
}
.credit { font-size: .92rem; font-weight: 600; color: var(--ink); }
.tablewrap { overflow-x: auto; margin: 1rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
thead th { background: var(--bg); font-family: var(--head); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}
.chips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .95rem;
  font-weight: 600;
}
.updated { color: var(--mute); font-size: .92rem; margin-top: .8rem; }
.credlist li { margin-bottom: .5rem; }
.sub { font-size: 1.15rem; color: var(--mute); max-width: 60ch; }
