:root {
  --ink: #17233a;
  --chalk: #1f806f;
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --line: #d8d1c4;
  --muted: #657084;
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--chalk);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 1rem;
  padding: .5rem .75rem;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-120%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}

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

nav a,
.backlink a,
.text-link {
  color: var(--chalk);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}

.hero {
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  max-width: 850px;
}

.compact-hero { padding-bottom: 3rem; }

.eyebrow,
.card-label {
  margin: 0 0 .65rem;
  color: var(--chalk);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { line-height: 1.25; }

h1 {
  max-width: 780px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  letter-spacing: -.055em;
}

h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.035em;
}

h3 {
  margin-bottom: .75rem;
  font-size: 1.35rem;
}

.hero > p:last-child,
.card > p:not(.card-label) { color: var(--muted); }

.section { padding: 2rem 0 5rem; }

.section-heading { max-width: 680px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(23 35 58 / 6%);
}

.card p:last-of-type { margin-bottom: 0; }

.status {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: .25rem .65rem;
  color: var(--muted);
  background: var(--paper);
  border-radius: 999px;
  font-size: .875rem;
}

.featured-section { padding-top: 0; }

.featured-card {
  min-height: 0;
  gap: 1.5rem;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}

.note-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }

.button {
  flex: 0 0 auto;
  padding: .7rem 1rem;
  color: var(--surface);
  background: var(--chalk);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.article-card .text-link { margin-top: auto; }

.backlink { padding-bottom: 4rem; }

.site-footer {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.site-footer p { margin: 0; }

.site-footer a { color: var(--muted); }

.js-ready .card { transition: transform 180ms ease, box-shadow 180ms ease; }

@media (hover: hover) {
  .js-ready .card:hover {
    box-shadow: 0 16px 38px rgb(23 35 58 / 12%);
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer { width: min(100% - 2rem, 1120px); }

  .site-header { min-height: 4.5rem; }

  .hero { padding-top: 3.5rem; }

  .card-grid { grid-template-columns: 1fr; }

  .featured-card,
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
