:root {
  --bg: #14120e;
  --fg: #f4efe4;
  --body: #ddd4c4;
  --muted: #b3a694;
  --faint: #8d8172;
  --amber: #e2a84a;
  --line: #2e2923;
  --paper: #f4efe4;
  --ink: #1c1814;
  --ink-soft: #5c5348;
  --serif: "Newsreader", "Iowan Old Style", Palatino, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgb(20 18 14 / 0.95);
  backdrop-filter: blur(12px);
}
.wrap { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mark {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-decoration: none;
  padding: 1rem 0;
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  padding: 1rem 0.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
main { padding: 2.5rem 0 5rem; }
.hero { display: grid; gap: 2.5rem; align-items: end; }
.qsl {
  background: var(--paper);
  color: var(--ink);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 22px 50px rgb(0 0 0 / 0.38);
}
.qsl-top, .qsl-foot, .place {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}
.soft { color: var(--ink-soft); }
.qsl-name { margin-top: 3rem; border-top: 1px solid rgb(28 24 20 / 0.15); padding-top: 1.5rem; }
h1 { font-size: 3rem; line-height: 1; letter-spacing: -0.03em; }
.place { margin-top: 1rem; }
.qsl-foot { margin-top: 2.5rem; border-top: 1px solid rgb(28 24 20 / 0.15); padding-top: 0.5rem; }
.qsl-foot a { color: var(--ink-soft); text-decoration: none; padding: 0.75rem 0; }
.qsl-foot a:hover { color: var(--ink); }
.lede {
  max-width: 28rem;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.3;
}
.chapters { margin-top: 4rem; }
section { border-top: 1px solid var(--line); padding: 3rem 0; scroll-margin-top: 4rem; }
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}
h2 { margin-top: 0.75rem; font-size: 2.25rem; line-height: 1; }
.page-title { margin-top: 0.75rem; }
.copy { margin-top: 1.25rem; max-width: 40rem; color: var(--body); }
.copy a { color: var(--amber); }
ul { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 40rem; border-top: 1px solid var(--line); }
li { border-bottom: 1px solid var(--line); padding: 0.75rem 0; color: var(--muted); }
.reach-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 2rem;
}
.github {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-underline-offset: 4px;
}
.github:hover { color: var(--fg); }
html { overflow-x: hidden; }
.diagram { margin: 1.5rem 0 0; }
.diagram a { display: block; }
.diagram img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.diagram figcaption {
  margin: 0.7rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.shots { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
footer { border-top: 1px solid var(--line); }
.foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--faint);
}
@media (min-width: 40rem) {
  main { padding-top: 4rem; }
  h1 { font-size: 3.75rem; }
  .lede { font-size: 1.875rem; }
  .qsl { padding: 2.25rem 2rem; }
  .chapters { margin-top: 6rem; }
  section { padding: 4rem 0; }
  .shots { grid-template-columns: 1fr 1fr; }
  .foot { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 64rem) {
  .hero { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
