@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/*
  Colors: Sanzo Wada combination 303 (Neutral Gray, Deep Slate Olive, Peach Red), shortlist set 3.
  Chosen 2026-11-24. Runner-up to try is set 5, combination 30 (Mineral Gray, Pompeian Red):
    --bg: #9fc2b2; --bg-raised: #95b6a7; --ink: #131715; --ink-2: #404e47; --ink-3: #404e47;
    --rule: #86a396; --accent: #a90636; --accent-2: #a90636;
  All sets: design/color-combos/shortlist.json
*/
:root {
  color-scheme: light;
  --bg: #b5d1cc;
  --bg-raised: #aac4bf;
  --ink: #161918;
  --ink-2: #495452;
  --ink-3: #495452;
  --rule: #98b0ac;
  --accent: #ff3319;
  --accent-2: #172713;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", Consolas, "SF Mono", monospace;
  --wide: 60rem;
  --measure: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg-raised);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.brand {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav {
  display: flex;
  gap: 1.5rem;
}
.topbar nav a,
.label,
.eyebrow,
.back a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.topbar nav a:hover {
  color: var(--accent);
}

/* Home */
.hero {
  padding-block: 4.5rem 2.5rem;
}
.hero-home {
  display: flex;
  align-items: center;
  gap: 2rem;
}
/* Small on purpose: a 240px file shown at 112px, not a link, not draggable. */
.portrait {
  flex: none;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  pointer-events: none;
  user-select: none;
}
.lede {
  margin: 0;
  max-width: 21em;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 4rem;
  padding-block: 2.5rem 4rem;
  border-top: 1px solid var(--rule);
}
.intro {
  max-width: var(--measure);
}
.intro > :first-child {
  margin-top: 0;
}

.label {
  margin: 0 0 1rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-list li {
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
  line-height: 1.35;
}
.side-list li:first-child {
  padding-top: 0;
}
.side-list span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.writing {
  padding-block: 0 5rem;
}
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.post-list li:first-child {
  padding-top: 0.75rem;
}
.post-list h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.post-list h3 a {
  color: var(--ink);
  text-decoration: none;
}
.post-list h3 a:hover {
  color: var(--accent);
}
.post-list p:not(.eyebrow) {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-2);
}

.eyebrow {
  margin: 0;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
}
.eyebrow span {
  color: var(--accent-2);
}

/* Article */
.article {
  max-width: calc(var(--measure) + 3rem);
  padding-block: 4rem 5rem;
}
.article-head h1 {
  margin: 0.75rem 0 2.5rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
}
.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li {
  margin-bottom: 0.6rem;
  padding-left: 0.2rem;
}
.prose li > ul,
.prose li > ol {
  margin: 0.6rem 0 0;
}
.prose li::marker {
  color: var(--ink-3);
}
.prose strong {
  font-weight: 650;
  color: var(--ink);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
.prose a {
  overflow-wrap: anywhere;
}

.back {
  margin: 3.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.back a {
  text-decoration: none;
}

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  body {
    font-size: 1.125rem;
  }
  .hero {
    padding-block: 3rem 2rem;
  }
  .hero-home {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .portrait {
    width: 5.5rem;
    height: 5.5rem;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: 2rem 3rem;
  }
  .article {
    padding-block: 2.5rem 4rem;
  }
  .topbar nav {
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
