/* Palette from ios/WikiCardGame/DesignSystem/Theme.swift. System fonts only. */
:root {
  color-scheme: dark;
  --background-top: #131824;
  --background-bottom: #0b0e15;
  --surface: #1a2030;
  --surface-raised: #232a3c;
  --text: #f5f7fc;
  --muted: #b5bdcd;
  --accent: #3dd68c;
  --accent-soft: #8be8bb;
  --on-accent: #072818;
  --border: #343e53;
  --placeholder: #ffe0a3;
}

* { box-sizing: border-box; }
html { background: var(--background-bottom); }
body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: linear-gradient(160deg, var(--background-top), var(--background-bottom) 75%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
.shell { width: min(100% - 40px, 1000px); margin-inline: auto; }
a { color: var(--accent-soft); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
main:focus { outline: none; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 20px;
  z-index: 2;
  padding: 10px 16px;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: var(--on-accent); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-block: 24px;
}
.wordmark, .footer-brand {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.06em;
  color: #fff;
}
.wordmark { font-size: 30px; line-height: 1.2; text-decoration: none; }
.wordmark span, .footer-brand > span:first-child { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 2px 6px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
nav a:hover { background: var(--surface); }
nav a[aria-current="page"] { color: var(--accent-soft); background: var(--surface-raised); }
.draft-banner {
  padding: 12px 16px;
  border: 1px dashed #796342;
  border-radius: 12px;
  background: #29251f;
  color: var(--placeholder);
  font-size: 13px;
}
main { padding-bottom: 64px; }
h1, h2, summary { line-height: 1.25; }
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
}
h2 { margin-bottom: 12px; font-size: 21px; letter-spacing: -0.02em; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  margin-bottom: 16px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.lead { max-width: 630px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero { padding-block: 76px 48px; }
.hero h1 { max-width: 820px; font-size: clamp(40px, 7vw, 74px); }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 570px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 13px; }
.download-placeholder {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
}
.download-placeholder p { margin-bottom: 4px; }
.download-title { font-size: 17px; font-weight: 700; }
.download-placeholder .muted { font-size: 13px; }
.panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.panel > p, .panel li { color: var(--muted); }
.panel strong { color: var(--text); }
.intro-panel { max-width: 750px; }
.text-link { display: inline-block; padding-block: 7px; font-weight: 650; }
.page-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.link-panel { position: relative; padding-right: 54px; color: var(--text); text-decoration: none; }
.link-panel h2 { font-size: 19px; }
.link-panel p { margin-bottom: 0; font-size: 15px; }
.link-panel > span { position: absolute; top: 24px; right: 24px; color: var(--accent); font-size: 22px; }
.link-panel:hover { background: var(--surface-raised); border-color: var(--accent); }
.page-heading { max-width: 750px; padding-top: 56px; margin-bottom: 30px; }
.page-heading > p:last-child { color: var(--muted); font-size: 14px; }
.page-heading > .lead:last-child { font-size: 19px; }
.document { display: grid; gap: 18px; max-width: 750px; }
.document .highlight { border-color: #376851; }
.document .panel h2:not(:first-child) { margin-top: 24px; }
.document .section-title { margin: 24px 0 0; font-size: 28px; }
.document .eyebrow + h2 { margin-top: 0; }
.document ol { padding-left: 24px; margin-bottom: 18px; }
.document li { padding-left: 4px; margin-bottom: 10px; }
[id] { scroll-margin-top: 24px; }
.placeholder {
  display: inline;
  padding: 2px 5px;
  border: 1px dashed #ac8851;
  border-radius: 4px;
  background: #332b20;
  color: var(--placeholder);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.notice { padding: 14px; border-left: 3px solid var(--placeholder); background: #29251f; }
details { border-top: 1px solid var(--border); padding-block: 6px; }
summary { padding: 16px 0; font-size: 17px; font-weight: 650; cursor: pointer; }
summary::marker { color: var(--accent); }
details p { margin-block: 0 16px; color: var(--muted); }
.site-footer { padding-block: 28px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.site-footer > p, .site-footer address { max-width: 750px; }
.footer-brand { margin-bottom: 20px; font-size: 22px; }
.footer-brand .muted { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.site-footer address { line-height: 2.2; font-style: normal; }
.site-footer .footer-note { margin-top: 10px; font-size: 12px; }
.site-footer nav { margin-top: 16px; margin-left: -12px; }
.muted { color: var(--muted); }

@media (max-width: 640px) {
  .site-header { display: block; padding-block: 22px 16px; }
  .site-header nav { margin-top: 16px; margin-left: -8px; gap: 4px; }
  .site-header nav a { padding-inline: 8px; font-size: 13px; }
  .hero { padding-block: 48px 32px; }
  .page-heading { padding-top: 40px; }
  .panel { padding: 22px 20px; }
  .page-links { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .link-panel { padding-right: 50px; }
  .link-panel > span { top: 20px; right: 20px; }
  .lead, .page-heading > .lead:last-child { font-size: 17px; }
  main { padding-bottom: 48px; }
}
