:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fffdf8;
  --ink: #242724;
  --muted: #686d67;
  --line: #d9d5cb;
  --accent: #a34f3c;
  --accent-soft: #eee2d9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 72ch;
  --page: 1120px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #202522;
  --surface: #292f2b;
  --ink: #ece9df;
  --muted: #b4b8af;
  --line: #454c46;
  --accent: #d58a70;
  --accent-soft: #3b302b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-inner {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
  padding: .6rem 0 .55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "crumb crumb";
  align-items: center;
  column-gap: 1rem;
  row-gap: .35rem;
}
.brand { grid-area: brand; }
.header-tools { grid-area: tools; }
.brand {
  text-decoration: none;
  font: 700 1.35rem/1 var(--serif);
  letter-spacing: -.035em;
}
.brand span { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: .48rem .8rem;
  font: 600 .82rem var(--sans);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
main {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
  padding: 1.25rem 0 5rem;
}
.breadcrumbs {
  grid-area: crumb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .12rem .42rem;
  margin: 0;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.35;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs .separator { color: var(--muted); opacity: .7; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.eyebrow {
  margin: 0 0 .65rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-intro {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.intro-copy { max-width: 68ch; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
h1 {
  max-width: 18ch;
  margin: 0 0 .8rem;
  font-size: clamp(2.35rem, 8vw, 4.8rem);
  line-height: 1.02;
}
.lead {
  margin: 0;
  max-width: 66ch;
  color: var(--muted);
  font: 1.12rem/1.65 var(--serif);
}
.intro-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line);
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: .75rem;
  margin: 2.4rem 0 1rem;
}
.section-heading h2 { margin: 0; font-size: 1.65rem; }
.section-heading small { color: var(--muted); font-size: .78rem; }
.tile-list { display: grid; gap: .7rem; }
.tile {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 24px;
  gap: .9rem;
  align-items: center;
  height: 126px;
  padding: .65rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.tile:hover, .tile:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
.tile img { width: 104px; height: 96px; object-fit: cover; }
.tile > span:nth-child(2) { min-width: 0; overflow: hidden; }
.tile-type {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tile-type {
  display: block;
  margin-bottom: .15rem;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tile h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 .18rem;
  font-size: 1.15rem;
  line-height: 1.2;
}
.tile p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.tile-arrow { color: var(--accent); font-size: 1.35rem; text-align: center; }
.article-layout { max-width: var(--measure); }
.article-layout > * + * { margin-top: 1.2em; }
.article-layout h2 { margin: 2.1em 0 .45em; font-size: 1.8rem; line-height: 1.2; }
.article-layout h3 { margin: 1.7em 0 .35em; font-size: 1.35rem; }
.article-layout p, .article-layout li { font-size: 1.02rem; }
.article-layout a { color: var(--accent); text-underline-offset: .18em; }
.article-layout blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font: italic 1.45rem/1.45 var(--serif);
}
.article-layout blockquote cite {
  display: block;
  margin-top: .65rem;
  color: var(--muted);
  font: normal .78rem var(--sans);
}
.article-layout figure { margin: 2rem 0; }
.article-layout figure img { display: block; width: 100%; height: auto; }
.article-layout figcaption { margin-top: .45rem; color: var(--muted); font-size: .78rem; }
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.note p { margin: 0; }
.page-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: .78rem;
}
.footer-inner { width: min(100% - 2rem, var(--page)); margin-inline: auto; }
@media (min-width: 720px) {
  .header-inner {
    min-height: 58px;
    padding: .45rem 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand crumb tools";
    column-gap: 1.5rem;
  }
  .breadcrumbs { justify-content: center; }
  main { padding-top: 1.8rem; }
  .page-intro { grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); align-items: end; gap: 2.5rem; }
  .intro-image { aspect-ratio: 4 / 3; }
  .tile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-template-columns: 112px minmax(0, 1fr) 24px; }
  .tile img { width: 112px; height: 88px; }
}
@media (min-width: 1020px) {
  .tile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .tile { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
