:root {
  --ink: #201c19;
  --muted: #6e655e;
  --paper: #f5f0e8;
  --paper-deep: #ebe1d3;
  --surface: #fffdf9;
  --line: #d9cfc3;
  --wine: #7f2333;
  --wine-dark: #5f1724;
  --amber: #8a5a13;
  --amber-bg: #fff4d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgb(255 255 255 / 0.76), transparent 28rem),
    var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--wine-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible {
  outline: 3px solid #bd6a2d;
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: white;
  transform: translateY(0);
}

.site-header,
.site-footer {
  display: flex;
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 720;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 22px;
  color: #fff8ef;
  background: var(--wine-dark);
  box-shadow: 0 18px 44px rgb(67 24 31 / 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 600;
  line-height: 1;
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: none;
  font-size: 1.18rem;
}

.header-label,
.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-shell {
  display: grid;
  min-height: 100vh;
  padding: 30px;
  place-items: center;
}

.home-card {
  width: min(100%, 720px);
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgb(255 253 249 / 0.92);
  box-shadow: 0 34px 90px rgb(72 50 35 / 0.12);
}

.home-card .eyebrow {
  margin: 34px 0 8px;
}

.home-card h1,
.policy-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  hyphens: auto;
  letter-spacing: -0.025em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.home-card h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
}

.home-lead {
  max-width: 44ch;
  margin: 24px 0 32px;
  color: #514842;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.primary-link {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--wine-dark);
  font-weight: 720;
  text-decoration: none;
}

.primary-link:hover {
  color: #fff;
  background: var(--wine);
}

.preview-note {
  max-width: 50ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.policy-shell {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  padding: clamp(40px, 7vw, 92px) 0 100px;
}

.policy-article {
  width: min(100%, 760px);
  margin-inline: auto;
}

.policy-header {
  margin-bottom: 34px;
}

.draft-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 34px;
  padding: 16px 18px;
  border: 1px solid #d8ad5f;
  border-radius: 14px;
  color: #4e3512;
  background: var(--amber-bg);
  font-size: 0.9rem;
  line-height: 1.5;
}

.draft-banner strong {
  color: #442b08;
}

.policy-header .eyebrow {
  margin: 0 0 12px;
}

.policy-header h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 7vw, 5.25rem);
}

.policy-deck {
  max-width: 50ch;
  margin: 22px 0 0;
  color: #524943;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.toc {
  margin: 38px 0 60px;
  padding: 24px;
  border-block: 1px solid var(--line);
}

.toc p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--ink);
  font-size: 0.94rem;
}

.policy-prose {
  overflow-wrap: anywhere;
}

.policy-prose h2,
.policy-prose h3 {
  position: relative;
  scroll-margin-top: 24px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 560;
  line-height: 1.2;
}

.policy-prose h2 {
  margin: 4.25rem 0 1.15rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.85rem, 4.5vw, 2.7rem);
  letter-spacing: -0.018em;
}

.policy-prose h3 {
  margin: 2.8rem 0 0.9rem;
  font-size: 1.48rem;
}

.heading-anchor {
  margin-left: 8px;
  color: var(--line);
  font-family: ui-sans-serif, sans-serif;
  font-size: 0.65em;
  text-decoration: none;
}

.heading-anchor:hover,
.heading-anchor:focus {
  color: var(--wine);
}

.policy-prose p,
.policy-prose ul,
.policy-prose ol {
  margin-block: 1rem;
}

.policy-prose li + li {
  margin-top: 0.42rem;
}

.policy-prose code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 0.87em;
}

.policy-prose blockquote,
.privacy-warning {
  margin: 2rem 0;
  padding: 20px 22px;
  border: 0;
  border-left: 4px solid var(--wine);
  border-radius: 0 12px 12px 0;
  background: #f1e6e4;
}

.privacy-warning strong {
  display: block;
  margin-bottom: 5px;
  color: var(--wine-dark);
}

.privacy-warning p {
  margin: 0;
}

.processing-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0 34px;
}

.processing-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 253 249 / 0.74);
}

.processing-card h3 {
  margin: 0 0 14px;
  font-family: ui-sans-serif, sans-serif;
  font-size: 1.02rem;
  font-weight: 760;
}

.processing-card dl,
.processing-card dd {
  margin: 0;
}

.processing-card dl {
  display: grid;
  gap: 12px;
}

.processing-card dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.processing-card dd {
  font-size: 0.94rem;
  line-height: 1.55;
}

.site-footer {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .site-footer,
  .policy-shell {
    width: min(100% - 28px, 1180px);
  }

  .home-shell {
    padding: 14px;
  }

  .home-card {
    padding: 28px 24px 34px;
    border-radius: 22px;
  }

  .toc {
    padding-inline: 0;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .policy-header h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

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

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

@media print {
  :root {
    --paper: #fff;
    --surface: #fff;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .toc,
  .draft-banner,
  .heading-anchor,
  .skip-link {
    display: none !important;
  }

  .policy-shell,
  .policy-article {
    width: 100%;
    padding: 0;
  }

  .policy-prose h2,
  .policy-prose h3 {
    break-after: avoid;
  }

  .processing-card,
  .privacy-warning {
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}
