:root {
  color-scheme: light dark;
  --background: #faf9f6;
  --text: #242925;
  --muted: #575e58;
  --accent: #305c50;
  --line: #dcdcd3;
  --portrait: #eeeee6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #191c1a;
    --text: #eaece6;
    --muted: #b1b9b1;
    --accent: #a9cfbf;
    --line: #3a433b;
    --portrait: #232b25;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.65 var(--sans);
}

h1, h2, h3, p, ul { margin: 0; }
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shell { width: min(100% - 3rem, 49rem); margin-inline: auto; }
.masthead, .footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .875rem;
}
.masthead { border-bottom: 1px solid var(--line); padding-block: 1.3rem; }
.wordmark { font-weight: 650; letter-spacing: -.025em; }
.nav-links { display: flex; gap: 1.25rem; }
.masthead a, .footer a { text-decoration: none; }
.masthead a:hover, .footer a:hover { text-decoration: underline; }

.intro {
  display: grid;
  grid-template-columns: 1fr 8rem;
  align-items: center;
  gap: clamp(1rem, 5vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4.2rem);
}
.eyebrow {
  color: var(--accent);
  font-size: .75rem;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: .085em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
h1 { font-size: clamp(2.55rem, 7.4vw, 4.6rem); line-height: 1.03; margin: .35rem 0 .85rem; }
.lede { max-width: 39ch; font-size: clamp(1rem, 2.2vw, 1.12rem); }
.portrait {
  aspect-ratio: 1;
  width: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: var(--portrait);
  color: var(--accent);
  font: 2rem/1 var(--serif);
  letter-spacing: -.06em;
}
.inline-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  list-style: none;
  padding: 0;
  margin-top: .8rem;
  font-size: .875rem;
}
.muted, .byline, .footer { color: var(--muted); }

.section { border-top: 1px solid var(--line); padding-block: 1.65rem 2.2rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); line-height: 1.15; margin-bottom: 1.1rem; }
.entry {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: .35rem 1.25rem;
}
.entry + .entry { margin-top: 1.55rem; }
.entry h3 { padding-top: .3rem; }
.entry-title { font-size: 1.075rem; font-weight: 650; line-height: 1.4; }
.byline { font-size: .875rem; margin-top: .3rem; }
.summary { margin-top: .45rem; }
.entry .inline-links { margin-top: .45rem; }
.footer { padding-block: 1rem 2rem; border-top: 1px solid var(--line); }

@media (max-width: 36rem) {
  .shell { width: calc(100% - 2.25rem); }
  .masthead { padding-block: 1rem; }
  .nav-links { gap: .85rem; }
  .intro { grid-template-columns: minmax(0, 1fr) 3.75rem; align-items: start; }
  .portrait { margin-top: 1.25rem; font-size: 1.25rem; }
  .entry { grid-template-columns: 1fr; }
  .entry h3 { padding-top: 0; }
}
