@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --fg: #ededed;
  --muted: #9a9a9a;
  --rule: #2a2a2a;
  --tile: #161616;
  --accent: #ff7a1a;
  --todo-bg: #4a3f08;
  --todo-border: #e0b800;
  --todo-fg: #fff3b0;
  --head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.col { max-width: 40rem; margin: 0 auto; padding: 0 16px; }
.wide .col { max-width: 60rem; }

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

.skip { position: absolute; left: 16px; top: -60px; background: var(--bg); padding: 6px 10px; font-family: var(--mono); font-size: .85rem; border: 1px solid var(--rule); }
.skip:focus { top: 8px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.25; }
h1 { font-size: 2.3rem; font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 3rem 0 .75rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 .5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

.site-header { border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .85rem; }
.site-header .col { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--fg); text-decoration: none; }
.brand::before { content: ""; width: .8rem; height: .8rem; background: var(--accent); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.site-nav li { margin: 0; }
@media (max-width: 560px) { .site-nav { margin-left: 0; width: 100%; } }

main { display: block; padding-top: 4rem; padding-bottom: 3rem; }
@media (max-width: 560px) { main { padding-top: 2rem; } h1 { font-size: 1.9rem; } }

.meta, .muted, .small { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.missions { list-style: none; padding: 0; }
.missions .when { font-family: var(--mono); font-size: .9rem; color: var(--muted); margin-right: .4rem; white-space: nowrap; }
h2 .year, h3 .year { font-family: var(--mono); font-size: .9rem; font-weight: 400; color: var(--muted); }

.tiles { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.tile { display: grid; grid-template-columns: 11fr 9fr; gap: 1.5rem; align-items: center; min-width: 0; border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; background: var(--tile); }
.tile.no-img { grid-template-columns: 1fr; }
.tile > div { min-width: 0; }
.tile h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.tile img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 3px; }
.tile p { overflow-wrap: anywhere; }
.tile .links { margin: 0; padding-top: .5rem; font-family: var(--mono); font-size: .85rem; }
@media (max-width: 44rem) { .tile { grid-template-columns: 1fr; } }

h2 { clear: both; }
.portrait { float: right; width: 10rem; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; margin: 0 0 1rem 1.5rem; }
@media (max-width: 36rem) { .portrait { float: none; display: block; width: 8rem; margin: 0 0 1rem; } }

figure { margin: 1rem 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
figcaption { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-top: .4rem; }

dl.facts { margin: 1rem 0; }
dl.facts dt { font-family: var(--mono); font-size: .9rem; color: var(--muted); margin-top: .8rem; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

.todo { background: var(--todo-bg); color: var(--todo-fg); outline: 2px dashed var(--todo-border); outline-offset: 1px; padding: 0 4px; font-family: var(--mono); font-size: .9rem; }
p.todo { display: inline-block; padding: 4px 8px; }

.site-footer { border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .85rem; color: var(--muted); padding: 1.5rem 0 3rem; }
.site-footer p { margin: 0; }

.center { text-align: center; padding-top: 6rem; }

@media print { .site-nav, .skip { display: none; } }
