:root {
  --bg: #fbf7f3;
  --surface: #fffdfb;
  --ink: #261f29;
  --muted: #756b77;
  --plum: #6b4d73;
  --plum-dark: #4f3756;
  --rose: #d8b6a7;
  --rose-soft: #f2e5de;
  --line: rgba(79, 55, 86, 0.13);
  --shadow: 0 22px 70px rgba(69, 48, 75, 0.08);
  --content: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(216, 182, 167, 0.26), transparent 26rem),
    radial-gradient(circle at 95% 30%, rgba(107, 77, 115, 0.08), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection {
  background: var(--rose-soft);
  color: var(--plum-dark);
}

.wrap {
  width: min(var(--content), calc(100% - 34px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1140px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 253, 251, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(60, 43, 65, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 52% 48% 55% 45%;
  color: #fff;
  background: var(--plum);
  font: 700 20px Georgia, "Times New Roman", serif;
  transform: rotate(-4deg);
}

.brand-text {
  display: grid;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-text span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: var(--rose-soft);
  color: var(--plum-dark);
}

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--plum-dark);
  background: var(--rose-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 18px auto;
  color: var(--plum-dark);
  font: 700 clamp(44px, 8vw, 82px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.updated {
  display: inline-flex;
  gap: 9px;
  margin-top: 24px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.44);
  font-size: 12px;
}

.updated strong { color: var(--plum); }

.page-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 62px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 95px;
  padding: 8px 0 40px;
}

.toc-title {
  margin: 0 0 12px 10px;
  color: var(--plum);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: 160ms ease;
}

.toc a:hover,
.toc a.current {
  color: var(--plum-dark);
  background: rgba(242,229,222,.75);
}

.document {
  min-width: 0;
  padding-bottom: 90px;
}

.section {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 54px;
  margin: 0 0 54px;
  border-bottom: 1px solid var(--line);
}

.section:last-child { border-bottom: 0; }

.no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--plum);
  background: var(--rose-soft);
  font-size: 11px;
  font-weight: 800;
}

.section h2 {
  margin: -2px 0 17px;
  color: var(--plum-dark);
  font: 700 clamp(27px, 4vw, 38px)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.section h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.section p {
  margin: 0 0 15px;
  color: var(--muted);
}

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

.section ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.section li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 23px;
  color: var(--muted);
}

.section li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

.section a.text-link {
  color: var(--plum);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.notice {
  margin: 24px 0 8px;
  padding: 22px 24px;
  border-radius: 24px 24px 44px 24px;
  background: linear-gradient(135deg, rgba(242,229,222,.9), rgba(255,253,251,.92));
  border: 1px solid var(--line);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--plum-dark);
}

.notice p { margin: 0; }

.definition-list {
  margin: 24px 0 0;
}

.definition-list > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 22px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.definition-list dt {
  font-weight: 750;
}

.definition-list dd {
  margin: 0;
  color: var(--muted);
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--plum);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(79,55,86,.18);
}

.action.secondary {
  color: var(--plum-dark);
  background: var(--rose-soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.index-links {
  max-width: 820px;
  margin: 0 auto 100px;
  display: grid;
  gap: 0;
}

.index-link {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 5px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.index-link:first-child { border-top: 1px solid var(--line); }

.index-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--plum);
  font-weight: 800;
}

.index-link h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.index-link p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.index-arrow {
  color: var(--plum);
  font-size: 20px;
  transition: transform .16s ease;
}

.index-link:hover .index-arrow { transform: translateX(4px); }

.contact-panel {
  max-width: 760px;
  margin: 0 auto 100px;
  padding: 42px;
  border-radius: 42px 42px 72px 42px;
  color: #fff;
  background: var(--plum-dark);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 0 0 10px;
  font: 700 34px/1.05 Georgia, "Times New Roman", serif;
}

.contact-panel p {
  margin: 0 0 24px;
  color: rgba(255,255,255,.76);
}

.contact-panel .action {
  color: var(--plum-dark);
  background: #fff;
}

.contact-details {
  max-width: 760px;
  margin: 0 auto 80px;
}

.contact-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row strong { color: var(--ink); }
.contact-row span, .contact-row a { color: var(--muted); overflow-wrap: anywhere; }

.site-footer {
  width: min(var(--content), calc(100% - 34px));
  margin: 0 auto;
  padding: 32px 0 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.site-footer p { margin: 0; }

.small-note {
  max-width: 760px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--plum);
  box-shadow: 0 10px 30px rgba(79,55,86,.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .18s ease;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; gap: 0; }
  .toc {
    position: static;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0 0 28px;
    margin-bottom: 14px;
    scrollbar-width: none;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc-title { display: none; }
  .toc a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: rgba(255,255,255,.5);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    border-radius: 27px;
  }

  .brand-text { display: none; }

  .nav a {
    padding: 8px 8px;
    font-size: 12px;
  }

  .hero { padding: 70px 0 58px; }

  .section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .section h2 { margin-top: 0; }

  .definition-list > div,
  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-panel {
    padding: 30px 22px;
    border-radius: 32px 32px 54px 32px;
  }

  .index-link {
    grid-template-columns: 44px minmax(0,1fr) auto;
    gap: 12px;
    padding: 19px 0;
  }

  .index-icon {
    width: 38px;
    height: 38px;
  }

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

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