/* The A-Eye Team: site styles */

:root {
  --bg: #EDEFEA;
  --text: #1B2228;
  --body: #33404A;
  --muted: #4A5560;
  --line: #C5CBC2;
  --card: #FBFBF8;
  --band: #E2E6DF;
  --dark: #1B2228;
  --dark-2: #242D34;
  --dark-line: #3A4650;
  --dark-text: #C4CCC6;
  --dark-muted: #A9B3AC;
  --dark-faint: #8E9A92;
  --manila: #D6B66A;
  --pencil: #6B5A3A;
  --accent: #B23E1C;
  --font: 'Neue Haas Grotesk Text', 'Neue Haas Grotesk Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--band);
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 9px;
}
.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .js .menu-toggle {
    display: inline-block;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
    font: 600 14px var(--font);
    padding: 8px 14px;
    cursor: pointer;
  }
  .js .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding: 6px 0 4px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a {
    padding: 11px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav a:last-child { border-bottom: 0; }
}

/* Page heads and sections */

.hero { padding: 96px 0 72px; }
.eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 1040px;
}

.page-head { padding: 88px 0 48px; }
.page-head h1 {
  font-size: clamp(44px, 7vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.page-head .meta { margin-top: 20px; }
.lede {
  margin-top: 24px;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--body);
}
.page-head .lede + .lede { margin-top: 14px; }

.section { padding: 88px 0; }
.section-tight { padding: 0 0 88px; }
.section-title {
  font-size: clamp(32px, 4.6vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.sub-title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-intro {
  max-width: 760px;
  color: var(--body);
  margin: -12px 0 32px;
}
.band {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-alt {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dark {
  background: var(--dark);
  color: var(--bg);
}
.dark a:hover { color: var(--dark-text); }

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
}
.button {
  display: inline-block;
  margin-top: 36px;
  background: var(--dark);
  color: #F4F5F1;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  text-decoration: none;
}
.button:hover { background: #2E3942; color: #F4F5F1; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  color: var(--muted);
}

/* Contents index */

.contents-wrap { padding-bottom: 88px; }
.contents {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--text);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.contents a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  height: 100%;
}
.contents a:hover .name { text-decoration: underline; text-underline-offset: 4px; }
.contents .num { font-size: 12px; color: var(--muted); }
.contents .name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

/* Cards */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-4 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
a.card:hover { border-color: var(--text); color: var(--text); }
.card-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--dark);
  color: var(--bg);
  padding: 10px 16px;
  font-size: 12px;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.card-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}
.card-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
}
.card-plain { padding: 32px; gap: 14px; }
.card-plain .card-title { font-size: 28px; letter-spacing: -0.02em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  font-size: 14px;
  border: 1px solid var(--line);
  padding: 6px 10px;
}

.slot {
  border: 1px dashed var(--dark-faint);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot .slot-label { font-size: 12px; color: var(--muted); }
.slot .card-title { font-size: 19px; }

/* Field reports */

.reports {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.report {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}
.report:hover { color: var(--text); }
.report:hover .report-body { border-color: var(--text); }
.tab {
  align-self: flex-start;
  background: var(--manila);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
}
.report-body {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.report-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.report-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.badge {
  align-self: flex-start;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

/* Rooms */

.rooms-intro { max-width: 760px; margin-bottom: 48px; }
.rooms-intro .section-title { margin-bottom: 16px; }
.rooms-intro p {
  font-size: 19px;
  color: var(--dark-text);
}
.rooms {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.room {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  display: flex;
  flex-direction: column;
}
.room-top {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.room-when { font-size: 12px; color: var(--dark-muted); }
.room-body {
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-grow: 1;
}
.room h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.room-where {
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark-text);
}
.room dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.room dt { font-size: 11px; color: var(--dark-faint); }
.room dd {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
.room-foot {
  margin-top: auto;
  border-top: 1px solid var(--dark-line);
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--manila);
}
.room svg { flex: none; }

/* Rows: principles, glossary, papers */

.rows { border-top: 2px solid var(--text); }
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.row-id {
  flex: 0 0 96px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.row-name {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.row-text {
  flex: 2 1 420px;
  min-width: 0;
  color: var(--body);
}
.row-note {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pencil);
  font-style: italic;
}
.rows-terms .row-name { font-size: 24px; letter-spacing: -0.01em; }
.rows-papers .row { padding: 22px 0; }
.rows-papers .row-name { font-size: 21px; letter-spacing: -0.01em; }
.row-kind {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.row-name h3 {
  font: inherit;
  letter-spacing: inherit;
}
.labels {
  margin: 0;
  display: grid;
  gap: 14px 32px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.labels dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.labels dd {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Glossary characters */

.characters {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.character {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 24px;
}
.character h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.character p { color: var(--body); }
.character .row-note {
  flex: none;
  color: var(--pencil);
}

/* Datasheets */

.ds-index {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 0 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 2px solid var(--text);
}
.ds-index a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
}
.ds-index a:hover span:last-child { text-decoration: underline; }
.ds-index span:first-child { color: var(--muted); flex: 0 0 48px; }
.datasheets {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ds {
  background: var(--card);
  border: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.ds-head {
  background: var(--dark);
  color: var(--bg);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.ds-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.ds-id { font-size: 13px; color: var(--dark-muted); }
.ds-head h2,
.ds-head h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.ds-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--manila);
}
.ds-body {
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.ds-main {
  flex: 3 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  color: var(--body);
}
.ds-main ul { margin: 0; padding-left: 20px; }
.ds-main li + li { margin-top: 6px; }
.label { font-weight: 700; color: var(--text); }
.ds-spec {
  flex: 2 1 300px;
  min-width: 0;
  margin: 0;
}
.ds-spec div {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.ds-spec div:first-child { border-top: 2px solid var(--text); }
.ds-spec dt { font-size: 12px; color: var(--muted); }
.ds-spec dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.state { border: 1px solid var(--text); padding: 6px 10px; }
.state-then { color: var(--dark-faint); font-weight: 400; }
.state-wait {
  border: 1px dashed var(--dark-faint);
  color: var(--muted);
  padding: 6px 10px;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
}
.table-fab {
  min-width: 780px;
  font-size: 16px;
  line-height: 1.55;
}
.table-wrap thead tr {
  background: var(--dark);
  color: var(--bg);
  text-align: left;
}
.table-wrap th[scope="col"] {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
}
.table-wrap tbody tr {
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.table-wrap tbody th {
  padding: 20px;
  text-align: left;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
.table-wrap tbody td {
  padding: 20px;
  color: var(--body);
}
.table-small {
  min-width: 640px;
  font-size: 15px;
  line-height: 1.5;
}
.table-small th[scope="col"],
.table-small tbody td { padding: 12px 16px; }
.table-small tbody td:first-child { white-space: nowrap; color: var(--text); font-weight: 600; }

/* Long-form articles */

.article-wrap { padding-bottom: 96px; }
.article { max-width: 760px; }
.article > * + * { margin-top: 18px; }
.article h2 {
  margin-top: 56px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.article h3 {
  margin-top: 36px;
  font-size: 21px;
  line-height: 1.3;
}
.article p,
.article li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
}
.article ul,
.article ol { padding-left: 24px; }
.article li + li { margin-top: 8px; }
.article strong { color: var(--text); }
.article blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}
.article .table-wrap { margin-top: 24px; }
.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}
.article .small,
.article .small p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.dek {
  margin-top: 18px;
  max-width: 760px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--body);
}
.notice {
  max-width: 760px;
  margin-bottom: 40px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--body);
}
.notice + .notice { margin-top: -24px; }
.sources li { overflow-wrap: anywhere; }

/* Map */

.map {
  position: relative;
  background: var(--dark);
  border: 1px solid var(--dark-line);
  color: var(--bg);
}
.map-canvas {
  width: 100%;
  height: 640px;
  cursor: grab;
  touch-action: pan-y;
}
.map-canvas.is-dragging { cursor: grabbing; }
.map-canvas.is-pointing { cursor: pointer; }
.map-home .map-canvas { height: 560px; }
.map-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 16px;
  border-top: 1px solid var(--dark-line);
}
.map-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--dark-text);
}
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
}
.map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.map-tools button {
  background: transparent;
  color: var(--bg);
  border: 1px solid var(--dark-line);
  font: 600 13px var(--font);
  padding: 8px 14px;
  cursor: pointer;
}
.map-tools button:hover { border-color: var(--dark-muted); }
.map-tip {
  position: absolute;
  z-index: 5;
  max-width: 280px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
}
.map-tip.is-pinned { pointer-events: auto; }
.map-tip strong { display: block; font-size: 14px; }
.map-tip .tip-ring { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.map-tip a { display: inline-block; margin-top: 6px; font-weight: 600; }
.map-help {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.map-index {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.map-index h3 {
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}
.map-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-index li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.map-index li a { font-weight: 600; }
.map-index li span {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

/* Categories list */

.categories {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--text);
}
.categories li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.categories strong {
  flex: 1 1 260px;
  font-size: 19px;
}
.categories span.cat-text {
  flex: 2 1 420px;
  color: var(--body);
}

/* Bella loops */

.sketch {
  background: var(--card);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.sketch svg {
  min-width: 760px;
  width: 100%;
  height: auto;
}
.sketch-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
  max-width: 760px;
}
.rules li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.loop-read {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--body);
}

/* Studio, music, patents */

.feature {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.feature-text {
  flex: 3 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--body);
}
.feature-text p { max-width: 680px; }
.feature-text .section-title {
  color: var(--text);
  margin-bottom: 4px;
}
.feature-side {
  flex: 2 1 300px;
  min-width: 0;
}
.figure {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
}
.figure svg { width: 100%; height: auto; }
.figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
figure { margin: 0; }
.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--text);
  min-height: 220px;
}
.split-screen div {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.split-screen div:first-child { background: var(--card); }
.split-screen div:last-child {
  background: var(--dark);
  color: var(--bg);
  justify-content: flex-end;
}
.facts {
  margin: 0;
  border-top: 2px solid var(--text);
}
.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  flex: 0 0 150px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 2px;
}
.facts dd {
  flex: 1 1 220px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--text);
}
.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.status-list span:last-child { color: var(--muted); font-size: 15px; }
.status-list + .facts { border-top: 0; }
.split-screen + .facts { margin-top: 24px; }

/* About */

.background-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--text);
  max-width: 760px;
}
.background-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.background-list li strong { color: var(--text); }

/* Footer */

.site-footer {
  background: var(--dark);
  color: var(--dark-text);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 48px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--bg);
}
.footer-brand a { color: var(--bg); font-size: 16px; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 140px;
  column-gap: 32px;
}
.footer-nav li { padding: 3px 0; break-inside: avoid; }
.footer-nav a {
  color: var(--dark-text);
  text-decoration: none;
  font-size: 15px;
}
.footer-nav a:hover { color: var(--bg); text-decoration: underline; }
.footer-base {
  border-top: 1px solid var(--dark-line);
  padding-top: 18px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--dark-faint);
}

/* Small screens */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .page-head { padding: 56px 0 36px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 0 0 64px; }
  .contents-wrap { padding-bottom: 64px; }
  .lede { font-size: 18px; }
  .brand-name { font-size: 21px; }
  .brand-sub { display: none; }
  .grid,
  .grid-2,
  .grid-4,
  .reports,
  .rooms,
  .characters { grid-template-columns: 1fr; }
  .report-body,
  .character,
  .card-plain { padding: 22px; }
  .ds-body { padding: 22px 18px; }
  .ds-head { padding: 14px 18px; }
  .map-canvas,
  .map-home .map-canvas { height: 260px; }
  .row-id { flex-basis: 100%; }
  .article p,
  .article li { font-size: 17px; }
  .split-screen { min-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

@media print {
  .site-header nav,
  .menu-toggle,
  .map,
  .site-footer nav { display: none; }
  body { background: #fff; }
  .dark,
  .site-footer { background: #fff; color: #000; }
}
