:root {
  --ink: #132019;
  --muted: #56625b;
  --green-950: #0c2115;
  --green-900: #173f2a;
  --green-700: #256f42;
  --green-100: #dfeee3;
  --cream: #f6f1e5;
  --paper: #fffdf8;
  --line: #d9d7ca;
  --gold: #b9841d;
  --warning-bg: #fff3d5;
  --warning-line: #d99a22;
  --shadow: 0 22px 70px rgb(18 35 25 / 10%);
  --radius: 24px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgb(185 132 29 / 11%), transparent 30rem),
    var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

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

a:hover {
  color: var(--green-950);
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

code {
  overflow-wrap: anywhere;
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: #ebe9df;
  color: #26372d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.shell,
.policy-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.policy-shell {
  width: min(1080px, calc(100% - 40px));
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

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

.site-header {
  border-bottom: 1px solid rgb(19 32 25 / 11%);
  background: rgb(246 241 229 / 90%);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
}

.header-link {
  font-size: 15px;
  font-weight: 700;
}

.hero {
  padding-block: clamp(74px, 10vw, 140px) clamp(64px, 8vw, 110px);
}

.hero h1,
.policy-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.policy-hero h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.55;
}

.section-block {
  padding-block: 36px 88px;
}

.compact-section {
  padding-bottom: 120px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.principles-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.app-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgb(18 35 25 / 5%);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-card:hover {
  border-color: rgb(37 111 66 / 45%);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-3px);
}

.app-card-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--green-900);
  color: #fff;
  font-weight: 900;
}

.app-card-copy {
  display: grid;
  gap: 3px;
}

.app-card-copy strong {
  font-size: 20px;
}

.app-card-copy span {
  color: var(--muted);
  font-size: 15px;
}

.app-card-arrow {
  color: var(--gold);
  font-size: 30px;
}

.principles-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(38px, 8vw, 100px);
  padding: clamp(30px, 6vw, 70px);
  border-radius: 32px;
  background: var(--green-950);
  color: #fff;
}

.principles-card .eyebrow {
  color: #9ed0ad;
}

.check-list {
  display: grid;
  align-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: #e0ece3;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e4b85f;
  font-weight: 900;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 34px 18px;
  color: var(--muted);
  font-size: 14px;
}

.policy-hero {
  padding-block: 32px 56px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.policy-meta div {
  min-width: 0;
  padding: 20px;
  background: var(--paper);
}

.policy-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.publish-warning {
  margin-bottom: 28px;
  padding: 20px 24px;
  border: 1px solid var(--warning-line);
  border-radius: 16px;
  background: var(--warning-bg);
}

.publish-warning strong {
  display: block;
  margin-bottom: 4px;
}

.publish-warning p {
  margin: 0;
}

.policy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-bottom: 120px;
}

.toc-card {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 253 248 / 78%);
}

.toc-card h2 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.toc-card a {
  color: inherit;
}

.policy-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.policy-card section {
  scroll-margin-top: 24px;
  padding: clamp(30px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
}

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

.policy-card h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.policy-card p {
  margin: 0 0 18px;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding-left: 26px;
}

.section-number {
  margin-bottom: 8px !important;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.link-panel {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 20px;
  border-left: 4px solid var(--green-700);
  border-radius: 0 14px 14px 0;
  background: var(--green-100);
  font-size: 15px;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: 16px;
  background: var(--green-100);
  font-style: normal;
}

.site-footer {
  border-top: 1px solid rgb(19 32 25 / 14%);
  background: #ede7d9;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .principles-card,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .policy-meta {
    grid-template-columns: 1fr;
  }
}

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

  .shell,
  .policy-shell {
    width: min(100% - 24px, 1080px);
  }

  .header-inner {
    min-height: 68px;
  }

  .header-link {
    display: none;
  }

  .hero {
    padding-top: 66px;
  }

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

  .app-card-arrow {
    display: none;
  }

  .policy-card,
  .principles-card {
    border-radius: 20px;
  }

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

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

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

@media print {
  :root,
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .breadcrumbs,
  .toc-card,
  .publish-warning {
    display: none;
  }

  .policy-shell {
    width: 100%;
  }

  .policy-hero {
    padding-top: 0;
  }

  .policy-layout {
    display: block;
    padding: 0;
  }

  .policy-card {
    border: 0;
    box-shadow: none;
  }

  .policy-card section {
    break-inside: avoid;
  }

  a {
    color: inherit;
  }
}
