:root {
  --paper: #fbf7f2;
  --cream: #f2e7dc;
  --rose: #c83e59;
  --rose-dark: #a52d47;
  --rose-soft: #f4cbd3;
  --plum: #29171e;
  --ink: #21181b;
  --muted: #6d5e62;
  --line: #d8c9c5;
  --white: #fffdf9;
  --warning: #fff0ba;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rose-dark); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 6px var(--plum); }
.skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.skip:focus { transform: none; }
.wrap { width: var(--page); margin-inline: auto; }
.eyebrow {
  margin: 0 0 17px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Navigation and footer are identical on every page, including the home page.
   The same block lives in the inline style of index.html because that page is
   self-contained; site.test.mjs asserts the two copies stay in step. */
.site-nav { position: absolute; z-index: 20; inset: 0 0 auto; }
.site-nav__inner {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 999px;
  background: rgb(27 13 18 / .8);
  color: var(--white);
  backdrop-filter: blur(14px);
}
.brand { color: var(--white); font-size: 20px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: #f08aa0; }
.site-nav ul { display: flex; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
/* Global, not scoped to the narrow breakpoint: an author display rule outranks
   the user-agent rule for [hidden], and a menu that is drawn while marked
   hidden is a menu screen readers cannot see. */
.site-nav ul[hidden] { display: none; }
.site-nav li a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav li a:hover { background: rgb(255 255 255 / .13); }
/* Where you are is marked, not guessed. */
.site-nav li a[aria-current="page"] { background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .38); }
.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--white);
  color: var(--plum);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--cream); color: var(--plum); }
/* The toggle only exists below the breakpoint. Above it the menu is the menu. */
.nav-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 15px 8px 13px;
  border: 1px solid rgb(255 255 255 / .38);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 700 14px/1 var(--sans);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.page-hero { padding: 160px 0 clamp(68px, 9vw, 116px); background: var(--plum); color: var(--white); }
.page-hero--rose { background: var(--rose); }
.page-hero--cream { background: var(--cream); color: var(--ink); }
.page-hero .eyebrow { color: #ffc1cd; }
.page-hero--rose .eyebrow { color: var(--white); }
.page-hero--cream .eyebrow { color: var(--rose); }
.page-hero h1 {
  max-width: 930px;
  margin: 0;
  font: 400 clamp(56px, 8vw, 104px)/.92 var(--serif);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.page-hero .lede { max-width: 720px; margin: 27px 0 0; color: #e9dce1; font-size: clamp(18px, 2vw, 22px); }
.page-hero--rose .lede { color: var(--white); }
.page-hero--cream .lede { color: var(--muted); }

.draft-banner { padding: 20px 0; border-bottom: 1px solid #dfc264; background: var(--warning); color: #4a3610; }
.draft-banner .wrap { display: flex; gap: 14px; align-items: baseline; }
.draft-banner strong { flex: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.draft-banner p { margin: 0; }

.page-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(44px, 8vw, 110px); align-items: start; padding: clamp(70px, 9vw, 120px) 0; }
.toc { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.toc strong { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.toc ol, .toc ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.toc a { color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--rose-dark); }
.content > :first-child { margin-top: 0; }
.content section { padding: 0 0 46px; margin: 0 0 46px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.content section:last-child { margin-bottom: 0; border-bottom: 0; }
.content h2 { margin: 0 0 18px; font: 400 clamp(35px, 4.3vw, 52px)/1.02 var(--serif); letter-spacing: -.035em; }
.content h3 { margin: 30px 0 10px; font: 400 26px/1.1 var(--serif); }
.content p { margin: 0 0 18px; }
.content ul, .content ol { margin: 18px 0 0; padding-left: 24px; }
.content li { margin: 8px 0; }
.content li::marker { color: var(--rose); font-weight: 700; }
.content table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 15px; }
.content th, .content td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--cream); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.content blockquote { margin: 28px 0; padding: 24px 28px; border-left: 5px solid var(--rose); background: var(--cream); font: 400 24px/1.3 var(--serif); }
.callout { margin: 26px 0; padding: 22px 24px; border-radius: 16px; background: var(--cream); }
.callout--rose { background: var(--rose); color: var(--white); }
.callout--dark { background: var(--plum); color: var(--white); }
.callout--decision { border: 1px solid #dfc264; background: var(--warning); color: #4a3610; }
.callout strong { display: block; margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.plain-list { padding: 0 !important; list-style: none; }
.plain-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.rule-number { display: block; margin-bottom: 7px; color: var(--rose); font: 400 35px/1 var(--serif); }
.status { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--cream); color: var(--plum); font-size: 12px; font-weight: 700; }
.meta { color: var(--muted); font-size: 14px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; gap: 18px; padding: 21px 0; cursor: pointer; list-style: none; font: 400 22px/1.2 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--rose); font: 400 25px/1 var(--sans); }
details[open] summary::after { content: "−"; }
details p { margin: -3px 0 24px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-card { padding: 24px; border-radius: 18px; background: var(--cream); }
.contact-card h3 { margin-top: 0; }
.contact-card a { font-weight: 700; }

.site-footer { padding: 62px 0 38px; background: var(--plum); color: #d8c8ce; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-intro p { max-width: 260px; margin: 16px 0 0; color: #bba9b0; font-size: 14px; }
.footer-group strong { display: block; margin-bottom: 10px; color: var(--white); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-group a { display: flex; min-height: 26px; align-items: center; color: #d8c8ce; font-size: 14px; text-decoration: none; }
.footer-group a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-group a[aria-current="page"] { color: var(--white); font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14); color: #9f8d94; font-size: 12px; }

@media (max-width: 980px) {
  .site-nav__inner { gap: 16px; }
  .site-nav li a { padding: 6px 9px; }
}

@media (max-width: 860px) {
  :root { --page: min(100% - 32px, 680px); }
  .site-nav__inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-cta { order: 3; min-height: 44px; }
  /* Closed by default, opened by the toggle. The links stay in the document
     so a keyboard user tabs into them in the order they are read. */
  .site-nav ul {
    display: grid;
    order: 4;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 6px 0 8px;
    border-top: 1px solid rgb(255 255 255 / .18);
  }
  .site-nav li a { min-height: 46px; padding: 10px 12px; border-radius: 12px; font-size: 16px; }
  .page-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  /* Narrow bars keep the control but drop its word, so the brand, the toggle,
     and the call to action stay on one line. aria-label carries the name. */
  .nav-toggle { gap: 0; padding: 8px 14px; }
  .nav-toggle__text { display: none; }
  .page-hero { padding-top: 148px; }
  .draft-banner .wrap { display: block; }
  .draft-banner strong { margin-bottom: 6px; }
  .page-layout { padding-top: 52px; }
  .toc { padding: 19px; }
  .content table { display: block; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
