/* The Longer Course — stylesheet
   Palette: pool-derived, cool and disciplined.
   ink #16232B · paper #F3F7F7 · pool #0F6E7C · deep #0A3540 · line #D4E1E1 · muted #55686E
*/

:root {
  --ink: #16232B;
  --paper: #F3F7F7;
  --pool: #0F6E7C;
  --deep: #0A3540;
  --line: #D4E1E1;
  --muted: #55686E;
  --display: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 42rem; }

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

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 4.5rem 0 2.5rem;
}

.eyebrow {
  font-family: var(--display);
  font-variation-settings: "wdth" 90;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pool);
  margin: 0 0 1.25rem;
}

.site-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 72;
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 0 0.4rem;
}

.byline, .entry-date, .crumb {
  font-family: var(--display);
  font-variation-settings: "wdth" 92;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.intro {
  font-size: 1.15rem;
  margin: 2.5rem 0 3.5rem;
}

/* ---------- the course line (archive) ---------- */

.course {
  position: relative;
  padding-left: 5.5rem;
  padding-bottom: 3rem;
}

/* the line itself */
.course::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--pool) 0 10px,
    transparent 10px 16px
  );
}

.entry {
  position: relative;
  margin-bottom: 3.25rem;
}

.marker {
  position: absolute;
  left: -5.5rem;
  top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tick {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--pool);
  flex: none;
}

.no {
  font-family: var(--display);
  font-variation-settings: "wdth" 85;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--deep);
  text-transform: uppercase;
  white-space: nowrap;
}

.entry-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 78;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0.3rem 0 0.55rem;
  letter-spacing: -0.01em;
}

.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--pool); }

.entry-blurb { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 40rem) {
  .course { padding-left: 2.1rem; }
  .marker { left: -2.1rem; }
  .no { display: none; }
}

/* ---------- essay pages ---------- */

.post-head {
  border-bottom: 2px solid var(--ink);
  padding: 3rem 0 2rem;
}

.crumb { margin-bottom: 1.5rem; }
.crumb a { color: var(--pool); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.post-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 74;
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 0.9rem;
}

.prose { padding: 2.25rem 0 1rem; }

.prose p { margin: 0 0 1.15rem; }

.prose .standfirst {
  font-size: 1.22rem;
  font-style: italic;
  color: var(--deep);
  border-left: 3px solid var(--pool);
  padding-left: 1rem;
  margin-bottom: 1.75rem;
}

.prose h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 82;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  margin: 2.4rem 0 0.9rem;
  color: var(--deep);
}

.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }

.prose strong { color: var(--deep); }

.signoff { margin-top: 2.5rem; font-style: italic; }
.signoff span {
  font-family: var(--display);
  font-style: normal;
  font-variation-settings: "wdth" 92;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-foot {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0 3.5rem;
  padding-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 88;
  font-size: 0.85rem;
}
.prevnext a { text-decoration: none; }
.prevnext a:hover { text-decoration: underline; }
.prevnext .next { margin-left: auto; text-align: right; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--deep);
  color: #C6D8DB;
  padding: 2.75rem 0 3rem;
  font-size: 0.95rem;
}

.site-foot a { color: #9FD0D8; }
.site-foot a:hover { color: #fff; }

.foot-brand {
  font-family: var(--display);
  font-variation-settings: "wdth" 74;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.foot-meta { margin-top: 1.25rem; font-size: 0.85rem; }

/* ---------- author box ---------- */

.author-box {
  border-top: 2px solid var(--ink);
  margin: 2.5rem 0 0;
  padding: 1.4rem 0 0.25rem;
}

.author-label {
  font-family: var(--display);
  font-variation-settings: "wdth" 90;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pool);
  margin: 0 0 0.6rem;
}

.author-box p:not(.author-label) {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.allback {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 88;
  font-size: 0.85rem;
}
.allback a { text-decoration: none; }
.allback a:hover { text-decoration: underline; }
