/* Apoapsis: mobile-first, system fonts only, no external assets. */
:root {
  --ink: #1b1e2e;
  --muted: #5b6078;
  --paper: #fbfaf7;
  --night: #10142b;
  --night-2: #1d2450;
  --amber: #f2a541;
  --link: #2a49b8;
  --line: #dedbd2;
  --card: #ffffff;
  --measure: 42rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.05rem/1.65 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: #142d86; }
img, svg { max-width: 100%; }

.jump { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--night); padding: .5rem 1rem; }
.jump:focus { left: .5rem; z-index: 9; }

/* Masthead */
.masthead { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #eef0ff; }
.masthead__inner { max-width: 68rem; margin: 0 auto; padding: 1rem 1.1rem .4rem; }
.nameplate {
  display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none;
  font: 700 1.6rem/1 "Avenir Next", "Segoe UI", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.nameplate__orbit { width: 2.3rem; height: 2.3rem; color: #c9d1ff; }
.masthead__tag { margin: .35rem 0 0; font: .92rem/1.4 system-ui, sans-serif; color: #b8bfe6; }
.menu ul {
  list-style: none; margin: 0 auto; padding: .4rem .7rem .7rem; max-width: 68rem;
  display: flex; flex-wrap: wrap; gap: .25rem .3rem;
  font: 600 .9rem/1 system-ui, sans-serif;
}
.menu a { display: block; padding: .5rem .7rem; border-radius: 999px; color: #dfe3ff; text-decoration: none; }
.menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu a[aria-current="page"], .menu a.is-desk { background: var(--amber); color: var(--night); }

/* Page body */
.page { max-width: 68rem; margin: 0 auto; padding: 1.2rem 1.1rem 2.5rem; }
.trail { font: .85rem/1.4 system-ui, sans-serif; color: var(--muted); margin-bottom: .8rem; }
.trail a { color: var(--muted); }
.copy { max-width: var(--measure); }
.copy h1 {
  font: 800 clamp(1.7rem, 5.5vw, 2.6rem)/1.15 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  margin: .2rem 0 .8rem; letter-spacing: -.01em;
}
.copy h2 { font: 700 1.3rem/1.3 "Avenir Next", "Segoe UI", system-ui, sans-serif; margin: 2rem 0 .5rem; }
.copy h3 { font: 700 1.08rem/1.35 "Avenir Next", "Segoe UI", system-ui, sans-serif; margin: 1.5rem 0 .3rem; }
.standfirst { font-size: 1.18rem; line-height: 1.55; color: #33384f; margin-top: 0; }
.note {
  border-left: 4px solid var(--amber); background: #fff6e8; padding: .7rem 1rem; margin: 1.3rem 0;
  font-size: .97rem;
}
.copy ul, .copy ol { padding-left: 1.3rem; }
.copy li { margin: .3rem 0; }
.copy blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.datebox { overflow-x: auto; margin: 1.2rem 0; }
.datebox table { border-collapse: collapse; width: 100%; font: .93rem/1.45 system-ui, sans-serif; }
.datebox th, .datebox td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.datebox th { white-space: nowrap; color: var(--night-2); }
.terms dt { font-weight: 700; margin-top: 1rem; font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; }
.terms dd { margin: .2rem 0 0; }

/* Cards */
.band {
  font: 800 .82rem/1.2 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em;
  color: var(--night-2); border-top: 3px solid var(--night); padding-top: .6rem; margin: 2.2rem 0 .9rem;
}
.band a { color: inherit; text-decoration: none; }
.tiles, .copy .tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.tile {
  display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: .6rem;
  padding: .9rem 1rem; text-decoration: none; color: var(--ink);
}
.tile:hover { border-color: var(--link); }
.tile__kicker { display: block; font: 700 .72rem/1.2 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #b06a00; margin-bottom: .3rem; }
.tile__head { display: block; font: 700 1.05rem/1.3 "Avenir Next", "Segoe UI", system-ui, sans-serif; color: var(--night-2); }
.tile__dek { display: block; margin-top: .35rem; font-size: .93rem; line-height: 1.5; color: var(--muted); }
.further { margin-top: 2.5rem; }
.further h2 { font: 800 .82rem/1.2 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tiles--compact .tile__dek { display: none; }

/* Footer */
.colophon { background: var(--night); color: #c4c9ea; font: .9rem/1.55 system-ui, sans-serif; }
.colophon__inner { max-width: 68rem; margin: 0 auto; padding: 1.5rem 1.1rem 2rem; }
.colophon a { color: #ffd08a; }
.colophon p { max-width: 46rem; }

@media (min-width: 40rem) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .masthead__inner { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
}
@media (min-width: 64rem) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles--compact { grid-template-columns: repeat(2, 1fr); }
}
