@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #f7f3ea;
  --paper-soft: #fbf8f2;
  --ink: #151515;
  --muted: #595650;
  --rule: #d9d1c1;
  --accent: #1a3e6d;
  --accent-soft: #e2e9f3;
  --max: 1180px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 8% -8%, #fffefb 5%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f4efe4 0%, var(--paper) 34%, var(--paper-soft) 100%);
  color: var(--ink);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.frame {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.1rem 0 5rem;
}

.site-nav {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
}

.site-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-nav-button {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2f2c26;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.site-nav-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.site-nav-link {
  text-decoration: none;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  border: 1px solid var(--rule);
  color: #26231f;
  background: rgba(255, 255, 255, 0.62);
}

.site-nav-link:hover {
  border-color: #bcb3a1;
}

.site-nav-link[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #f7f7f7;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2.2rem;
  margin-bottom: 2.1rem;
}

.kicker {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.95rem);
  line-height: 1.03;
  margin-bottom: 1.2rem;
  max-width: 16ch;
  font-weight: 500;
}

.deck {
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  color: #26231f;
  max-width: 66ch;
  margin-bottom: 1.25rem;
}

.meta {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
}

.cta-row {
  margin: 1.25rem 0 0;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 0.91rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.08rem;
  border: 1px solid var(--ink);
  transition: background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f8f8f8;
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  color: var(--ink);
  background: transparent;
}

.landing-page {
  max-width: 920px;
}

.story {
  margin-top: 0.9rem;
}

.story h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.story h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #45413b;
}

.story p {
  font-size: 1.05rem;
  color: #26231f;
  max-width: 68ch;
}

.story p + p {
  margin-top: 0.85rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

article {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(1px);
}

article h2 {
  font-size: clamp(1.38rem, 2.1vw, 1.95rem);
  line-height: 1.15;
  margin-bottom: 0.78rem;
  color: #101010;
  font-weight: 500;
}

article h3 {
  margin-top: 0.84rem;
  margin-bottom: 0.28rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a4a47;
  font-family: "Public Sans", "Segoe UI", sans-serif;
}

article p {
  color: #272623;
  font-size: 1rem;
}

.focus {
  margin-top: 2.3rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.3rem;
  align-items: start;
}

.focus h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.pillbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.pill {
  border: 1px solid #c7ced8;
  color: #20364f;
  background: var(--accent-soft);
  border-radius: 999px;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  padding: 0.32rem 0.62rem;
}

.panel {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.74);
}

.panel h3 {
  font-size: 0.83rem;
  margin-bottom: 0.55rem;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3d3b36;
}

.panel ul {
  padding-left: 1rem;
}

.panel li + li {
  margin-top: 0.32rem;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 940px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .focus {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .frame {
    width: calc(100% - 1.1rem);
    padding-top: 1.2rem;
  }

  .site-nav-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .site-nav-list {
    display: none;
    width: 100%;
    margin-top: 0;
  }

  .site-nav-toggle:checked ~ .site-nav-list {
    display: grid;
    gap: 0.45rem;
  }

  .landing-page {
    max-width: 100%;
  }

  h1 {
    max-width: 20ch;
  }

  article {
    padding: 0.95rem;
  }

  .meta {
    gap: 0.5rem 0.8rem;
  }
}

@media (min-width: 681px) {
  .site-nav-button,
  .site-nav-toggle {
    display: none;
  }

  .site-nav-list {
    margin-top: 0;
  }
}
