@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #07191C;
  --surface: #0B292D;
  --surface-raised: #123B3E;
  --teal: #397477;
  --teal-light: #8EB9AE;
  --text: #E5EEE6;
  --text-muted: #AABBB4;
  --accent: #E7A957;
  --accent-glow: #FFD58A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
}
main { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: 2rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; color: var(--teal-light); }
p, ul { margin: 0 0 1.25rem; }
ul { padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }
strong { color: var(--text); font-weight: 600; }
em { font-family: "Fraunces", Georgia, serif; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-glow); }
:focus-visible { outline: 3px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px; }

.subtitle { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.25rem; color: var(--teal-light); margin-bottom: 0.5rem; }
.lead { color: var(--text-muted); margin-bottom: 2rem; }
.home { display: inline-block; color: var(--text-muted); font-size: 0.95rem; text-decoration: none; }
.home:hover { color: var(--accent-glow); text-decoration: underline; }

.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--surface-raised);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
}
.card:hover { background: var(--surface-raised); border-color: var(--teal); color: var(--text); }
.card-label { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-light); }
.card-name { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.card-desc { color: var(--text-muted); font-size: 1rem; }
.card--start { border-color: var(--accent); }
.card--start .card-label, .card--start .card-name { color: var(--accent); }
.card--start:hover { border-color: var(--accent-glow); }

/* The one guide's three parts on the shelf (11/12). */
.shelf-heading { color: var(--accent); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--surface-raised); }
.shelf-heading + .lead { margin-top: -0.25rem; }
h1 + .subtitle + .shelf-heading { margin-top: 1.5rem; padding-top: 0; border-top: 0; }

/* The end of every How to page. */
.still-stuck { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--surface); border-left: 3px solid var(--teal); border-radius: 4px; }

nav { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--surface-raised); }
nav .next { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; }

@media (min-width: 60rem) {
  main:has(.cards) { max-width: 70rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  nav { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
