:root {
  color-scheme: light dark;
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --text: #20221f;
  --muted: #676a63;
  --line: #d8d4c8;
  --accent: #0b6759;
  --accent-strong: #074d43;
  --mark: #dff2e9;
  --quote: #ece9df;
  --shadow: 0 10px 30px rgba(32, 34, 31, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 2rem, 45rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-block: 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.tagline,
.article-meta,
.eyebrow {
  color: var(--muted);
  font-size: 0.88rem;
}

main {
  padding-block: 2.6rem 4rem;
}

.article > h1,
.home-intro h1 {
  max-width: 18ch;
  margin: 0 0 0.75rem;
  font-size: clamp(2.05rem, 8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.article h2 {
  margin: 2.8rem 0 0.7rem;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.article h3 {
  margin: 2rem 0 0.45rem;
  font-size: 1.14rem;
  line-height: 1.35;
}

.article p,
.article li {
  max-width: 70ch;
}

.article p,
.article ul,
.article ol {
  margin-block: 0.85rem;
}

.article-meta {
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.article > h2:first-of-type + p strong:first-child,
.article > .article-meta + p + h2 + p strong:first-child {
  color: var(--accent-strong);
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--quote);
}

blockquote p {
  margin: 0 !important;
}

.table-scroll {
  width: 100%;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--mark);
  font-weight: 750;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.home-intro {
  padding-block: 1.5rem 2.7rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  max-width: 39rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.brief-list > h2 {
  margin: 2.6rem 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brief-card {
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line);
}

.brief-card h2 {
  margin: 0.15rem 0 0.55rem;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.brief-card h2 a {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.brief-card > p:last-child {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding-block: 2rem 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.site-footer p {
  margin: 0.9rem 0 0;
}

@media (min-width: 40rem) {
  .shell {
    width: min(100% - 3rem, 45rem);
  }

  .header-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  main {
    padding-block-start: 4rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151916;
    --surface: #1c211e;
    --text: #edf0e9;
    --muted: #aeb6ac;
    --line: #384039;
    --accent: #7ed7c1;
    --accent-strong: #a8ead9;
    --mark: #203c34;
    --quote: #222a25;
    --shadow: none;
  }
}

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