@font-face {
  font-family: "pplxSerif";
  src: url("../fonts/PPLX-Serif-Beta-v2-VF.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "pplxSerif";
  src: url("../fonts/PPLX-Serif-Italic-Beta-v2-VF.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 100 900;
}

:root {
  --paper: #f7f4ee;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #17201f;
  --muted: #5e6864;
  --line: #ddd6cb;
  --line-strong: #c9c0b3;
  --teal: #1f6f6a;
  --teal-soft: #e3efec;
  --amber: #a76328;
  --blue: #244a7a;
  --shadow: 0 18px 48px rgba(23, 32, 31, 0.08);
  --font-body: "pplxSerif", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(247, 244, 238, 0.96) 360px),
    var(--paper);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

.page-shell a {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(221, 214, 203, 0.78);
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 240px;
  gap: 10px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

main {
  width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 720;
  font-variant-caps: all-small-caps;
  text-transform: none;
}

.page-shell {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 86px;
}

.page-shell.home-shell {
  width: min(980px, calc(100% - 48px));
}

.page-shell h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 720;
}

.page-shell .lede {
  max-width: 760px;
  margin: 18px 0 36px;
  color: #38433f;
  font-size: 1.14rem;
  line-height: 1.65;
}

.page-shell h2,
.page-shell h3,
.page-shell h4 {
  margin: 2.1em 0 0.7em;
  color: var(--ink);
  line-height: 1.22;
}

.page-shell h2 {
  padding-top: 0.2em;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
}

.page-shell h3 {
  font-size: 1.18rem;
}

.page-shell p,
.page-shell li {
  color: #303a37;
  font-size: 1rem;
  line-height: 1.75;
}

.page-shell ul,
.page-shell ol {
  padding-left: 1.35rem;
}

.page-shell li + li {
  margin-top: 0.42em;
}

.page-shell strong {
  color: var(--ink);
}

.page-shell code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.32em;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92em;
}

.page-shell blockquote {
  margin: 1.5rem 0;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}

.page-shell sup {
  line-height: 0;
}

.page-shell .footnotes {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-shell .footnotes p,
.page-shell .footnotes li {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-shell ul.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
  padding: 0;
  list-style: none;
}

.page-shell ul.resource-cards li {
  min-height: 154px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.page-shell ul.resource-cards li strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.page-shell ul.resource-cards li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 24px;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 32px, 720px);
  }

  .page-shell ul.resource-cards {
    grid-template-columns: 1fr;
  }

  .page-shell h1 {
    font-size: 2.45rem;
    line-height: 1.06;
  }

  .page-shell .lede {
    font-size: 1.05rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 0.9rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  .page-shell h1 {
    font-size: 2rem;
  }
}
