@font-face {
  font-family: "Inter";
  src: url("/assets/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/assets/Lora-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/assets/Lora-VariableItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f7f2ea;
  --paper-raised: #efe8dc;
  --paper-sunk: #e6ddce;
  --card: #fff;
  --ink: #2a2230;
  --ink-body: #4a3f54;
  --ink-muted: #6c5f75;
  --ink-faint: #9e93a6;
  --rule: rgba(42, 34, 48, 0.09);
  --rule-strong: rgba(42, 34, 48, 0.16);
  --red-50: #faebee;
  --red-100: #f4dde2;
  --red-300: #e3b8c0;
  --red-500: #d65772;
  --red-600: #cb405e;
  --red-800: #ab314c;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.site::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--rule);
}

.nav {
  display: flex;
  width: min(100% - 40px, 1152px);
  height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--red-600);
  box-shadow: 0 8px 22px rgba(203, 64, 94, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--red-800);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.menu-button svg {
  display: block;
  width: 22px;
  height: 22px;
}

.mobile-menu {
  display: none;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--rule);
}

.mobile-menu.open {
  display: grid;
  gap: 4px;
}

.mobile-menu a {
  padding: 11px 4px;
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.breadcrumb {
  width: min(100% - 40px, 768px);
  margin: 0 auto;
  padding-top: 30px;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb ol {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.article {
  width: min(100% - 40px, 768px);
  margin: 0 auto;
  padding: 38px 0 80px;
}

.article-header .eyebrow {
  margin: 0;
  color: var(--red-600);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.article h1 {
  max-width: 750px;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.lede {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
}

.updated {
  margin: 22px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.prose {
  margin-top: 34px;
  color: var(--ink-body);
  font-size: 16px;
  line-height: 1.75;
}

.prose > p,
.article-section .body > p {
  margin: 0 0 18px;
}

.prose a,
.article-section a {
  color: var(--red-600);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-section {
  margin-top: 52px;
  scroll-margin-top: 86px;
}

.article-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.26;
  text-wrap: balance;
}

.article-section h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 550;
  line-height: 1.35;
}

.article-section .body {
  margin-top: 16px;
  color: var(--ink-body);
  font-size: 16px;
  line-height: 1.75;
}

.article-section ul,
.article-section ol {
  padding-left: 24px;
  margin: 18px 0;
}

.article-section li {
  padding-left: 3px;
  margin: 9px 0;
}

.article-section strong {
  color: var(--ink);
}

.toc {
  padding: 22px 24px;
  margin-top: 36px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 4px 18px rgba(203, 64, 94, 0.025);
}

.toc p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 7px;
  list-style: none;
}

.toc a {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.toc a:hover {
  color: var(--red-600);
}

.callout,
.quote,
.example {
  padding: 22px 24px;
  margin: 24px 0;
  border-radius: 18px;
}

.callout {
  border: 1px solid var(--red-100);
  background: var(--red-50);
}

.callout p,
.quote p,
.example p {
  margin: 0;
}

.quote {
  border-left: 3px solid var(--red-600);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.52);
}

.example {
  border: 1px solid var(--rule);
  background: var(--card);
}

.example .label {
  margin-bottom: 7px;
  color: var(--red-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comparison-wrap {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.comparison {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.comparison th,
.comparison td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: var(--ink);
  font-weight: 750;
}

.comparison td {
  color: var(--ink-body);
}

.comparison tr:last-child th,
.comparison tr:last-child td {
  border-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.link-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(203, 64, 94, 0.025);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.link-card:hover {
  border-color: var(--red-300);
  box-shadow: 0 7px 22px rgba(203, 64, 94, 0.07);
  transform: translateY(-2px);
}

.link-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}

.link-card p {
  margin: 9px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  margin-top: 20px;
  gap: 12px;
}

.faq {
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.faq summary {
  padding: 18px 50px 18px 20px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "+";
  color: var(--red-600);
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.7;
}

.sources {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.sources li {
  margin: 8px 0;
}

.closing {
  padding: 34px;
  margin-top: 58px;
  border: 1px solid var(--red-100);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, var(--red-50) 100%);
  box-shadow: 0 12px 36px rgba(203, 64, 94, 0.08);
  text-align: center;
}

.closing .eyebrow {
  margin: 0;
  color: var(--red-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.closing h2 {
  margin: 12px auto 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.closing p {
  max-width: 540px;
  margin: 14px auto 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
}

.closing .button {
  margin-top: 22px;
  padding-right: 25px;
  padding-left: 25px;
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  width: min(100% - 40px, 1152px);
  padding: 28px 0;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red-600);
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 32px, 1152px);
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 2px;
  }

  .nav-actions .button {
    min-height: 40px;
    padding: 9px 15px;
    font-size: 12px;
  }

  .menu-button {
    display: block;
  }

  .breadcrumb,
  .article {
    width: min(100% - 40px, 768px);
  }

  .breadcrumb {
    padding-top: 24px;
  }

  .article {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .article h1 {
    font-size: 38px;
  }

  .lede {
    font-size: 18px;
  }

  .article-section {
    margin-top: 44px;
  }

  .article-section h2 {
    font-size: 25px;
  }

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

  .closing {
    padding: 28px 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
