:root {
  --paper: #f4efe4;
  --card: #fbf8f1;
  --ink: #1f1c16;
  --muted: #6a6355;
  --line: #ddd4c2;
  --gold: #b7791f;
  --green: #3f7d3a;
  --teal: #1f7a72;
  --blue: #2f5fa7;
  --rose: #b04a5a;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15140f;
    --card: #1d1b15;
    --ink: #efe8d9;
    --muted: #a39a87;
    --line: #353126;
    --gold: #e0a64a;
    --green: #7cbf6b;
    --teal: #5cc2b6;
    --blue: #86aef0;
    --rose: #e58a98;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.top, main, .foot {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 18px/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark .trail { stroke-dasharray: 0.1 4.2; stroke-width: 2.8; }
.mark .start { fill: currentColor; stroke: none; }
.mark .flag { fill: var(--gold); stroke: var(--gold); stroke-width: 1.2; }

.top-link {
  font: 400 13px/1 var(--mono);
  color: var(--muted);
  text-decoration: none;
}

.top-link:hover { color: var(--ink); }

.hero { padding: 56px 0 64px; max-width: 760px; }

.eyebrow, .tag, .host, .log-title {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 700 clamp(40px, 7vw, 76px)/0.98 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--muted);
}

.log-title {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.log-title .count { color: var(--muted); }

.quests {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hue-gold { --hue: var(--gold); }
.hue-green { --hue: var(--green); }
.hue-teal { --hue: var(--teal); }
.hue-blue { --hue: var(--blue); }
.hue-rose { --hue: var(--rose); }

.quest {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.glyph {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--hue);
  transition: transform 160ms ease;
}

.glyph svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph .accent { stroke: var(--ink); stroke-width: 2; }

.quest:hover .glyph { transform: rotate(-4deg) scale(1.04); }

.tag {
  margin: 0;
  font-size: 12px;
  color: var(--hue);
  text-transform: uppercase;
}

.quest h3 {
  margin: 6px 0 8px;
  font: 700 clamp(24px, 3.4vw, 32px)/1.1 var(--display);
  letter-spacing: -0.02em;
}

.quest h3 a {
  text-decoration: none;
  background: linear-gradient(var(--hue), var(--hue)) 0 100% / 0 2px no-repeat;
  transition: background-size 200ms ease;
}

/* The whole row is the link target. */
.quest h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.quest:hover h3 a, .quest h3 a:focus-visible { background-size: 100% 2px; }

.body p:not(.tag):not(.host) {
  margin: 0;
  max-width: 40em;
  color: var(--muted);
}

.host {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink);
}

.host::after { content: " \2192"; color: var(--hue); }

.is-away .glyph { opacity: 0.55; }

.is-away .host::after { content: ""; }

.away {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

code {
  font: 400 0.9em var(--mono);
  color: var(--ink);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}

.foot p { margin: 0; }

@media (max-width: 560px) {
  .top-link { display: none; }
  .hero { padding: 32px 0 44px; }
  .lede { font-size: 17px; }
  .quest { grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 0; }
  .glyph { width: 52px; height: 52px; border-radius: 14px; }
  .glyph svg { width: 32px; height: 32px; }
  .host { word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph, .quest h3 a { transition: none; }
  .quest:hover .glyph { transform: none; }
}
