@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/quicksand-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --canvas: #f3f1e9;
  --paper: #fbfaf5;
  --sage: #e6ebe0;
  --forest: #263f34;
  --muted: #526357;
  --line: #d5dbce;
  --accent: #004d43;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--forest);
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #b67c2d;
  outline-offset: 5px;
  border-radius: 3px;
}
::selection { background: #d0dfc6; color: #20382e; }
p, ul, ol { margin: 0 0 16px; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.3; }
svg { flex-shrink: 0; }
.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  left: 16px;
  top: 12px;
  padding: 10px 18px;
  background: var(--paper);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #263f34;
  color: #f5f3e9;
}
.site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 590px;
  height: 590px;
  right: -130px;
  top: -290px;
  border: 1px solid rgb(224 236 211 / 12%);
  border-radius: 45% 55% 62% 38%;
  box-shadow: 0 0 0 50px rgb(224 236 211 / 3%), 0 0 0 100px rgb(224 236 211 / 3%), 0 0 0 150px rgb(224 236 211 / 3%);
  transform: rotate(-25deg);
  pointer-events: none;
}
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; border-radius: 4px; }
.brand img { display: block; width: 96px; height: 72px; object-fit: contain; }
.home-link { display: inline-flex; gap: 10px; align-items: center; color: #f5f3e9; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; }
.home-link:hover { text-decoration: underline; }
.hero { padding-block: 16px 36px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.hero .eyebrow { color: #c4d2bc; margin-bottom: 14px; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero-description { max-width: 680px; font-size: 17px; color: #d6dfcf; margin-top: 17px; }
.page-tabs { display: flex; gap: 6px; padding-top: 12px; border-top: 1px solid rgb(232 239 222 / 18%); }
.page-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 21px 16px; border-radius: 10px 10px 0 0; color: #d6dfcf; font-size: 14px; font-weight: 600; text-decoration: none; }
.page-tabs a:hover { background: rgb(255 255 255 / 7%); }
.page-tabs a[aria-current="page"] { background: var(--canvas); color: var(--forest); }
.page-tabs a:focus-visible { outline-offset: -5px; }

.page-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 54px; padding-block: 52px 72px; }
.sidebar { position: sticky; top: 28px; }
.sidebar-label { margin: 0 0 18px; color: var(--muted); }
.contents { list-style: none; padding: 0; border-left: 1px solid #c4cdbd; }
.contents li { margin: 0; }
.contents a { display: flex; align-items: baseline; gap: 13px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.5; padding: 11px 12px 11px 17px; border-left: 2px solid transparent; margin-left: -1px; }
.contents a:hover { color: var(--accent); border-left-color: var(--accent); background: var(--sage); }
.contents .index { color: #6b7b65; font-size: 11px; font-weight: 700; min-width: 15px; }
.sidebar-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sidebar-note a { display: inline-block; overflow-wrap: anywhere; }
.reading-column { min-width: 0; }
.document-intro { font-size: 17px; margin: 0 0 30px; }
.document-intro p + p { color: var(--muted); font-size: 15px; }
.paper { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.document-section { padding: 32px 36px; scroll-margin-top: 24px; }
.document-section + .document-section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 18px; }
.section-number { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sage); color: #47603e; font-size: 11px; font-weight: 700; margin-top: 1px; }
.section-heading h2 { font-size: 22px; padding-top: 2px; }
.section-body { padding-left: 47px; }
.text-list { padding-left: 19px; }
.text-list li { padding-left: 4px; margin-bottom: 9px; }
.text-list li:last-child { margin-bottom: 0; }
.text-list li::marker { color: #8a9e7c; }
.contact-section { background: var(--sage); }
.contact-section .section-number { background: var(--paper); }
.contact-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 13px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.contact-link span { min-width: 0; }

.rights-card { padding: 28px 30px; background: var(--sage); border: 1px solid #cbd4c1; border-radius: 16px; margin-bottom: 34px; }
.rights-card h2 { font-size: 23px; margin-bottom: 14px; }
.rights-card p { font-size: 15px; }
.rights-card .eyebrow { margin-bottom: 10px; color: var(--muted); }
.license-group { scroll-margin-top: 24px; margin-bottom: 38px; }
.group-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.group-heading h2 { font-size: 26px; letter-spacing: -.025em; }
.group-description { font-size: 14px; color: var(--muted); margin-bottom: 19px; }
.license-card { padding: 23px 26px 0; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); margin-top: 12px; overflow: hidden; }
.license-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.license-heading h3 { font-size: 20px; overflow-wrap: anywhere; }
.license-badge { display: inline-block; padding: 2px 10px; background: var(--sage); color: #425738; border: 1px solid #d3ddc9; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.version { color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 2px; }
.license-description { margin-top: 10px; color: var(--muted); font-size: 14px; }
.source-link { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; font-size: 13px; font-weight: 600; margin: 6px 0 11px; }
.license-card details { border-top: 1px solid var(--line); }
.license-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.license-card summary::-webkit-details-marker { display: none; }
.license-card summary::after { content: "+"; font: 22px/1 system-ui, sans-serif; font-weight: 300; }
.license-card details[open] summary::after { content: "−"; }
.license-card summary:hover { color: #367243; }
.license-card summary:focus-visible { outline-offset: -2px; }
.license-text { padding: 20px; margin: 0 -8px 18px; border: 1px solid var(--line); border-radius: 8px; background: #f0f2e9; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 400; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.license-contact { padding: 26px 30px; border-radius: 16px; border: 1px solid #cbd4c1; background: var(--sage); }
.license-contact h2 { font-size: 22px; margin-bottom: 12px; }
.license-contact p { font-size: 14px; }
.site-footer { border-top: 1px solid #cbd4c1; background: #e9ece2; }
.footer-content { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 26px; font-size: 12px; color: var(--muted); }
.footer-content strong { display: block; color: var(--forest); font-size: 14px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 23px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .page-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 30px; }
  .document-section { padding: 28px; }
  .section-body { padding-left: 0; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .masthead { padding-block: 16px; }
  .brand img { width: 80px; height: 60px; }
  .hero { padding-block: 16px 28px; }
  .hero-description { font-size: 15px; }
  .page-layout { display: block; padding-block: 28px 40px; }
  .sidebar { position: static; margin-bottom: 28px; }
  .sidebar-label { font-size: 10px; margin-bottom: 11px; }
  .contents { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; border-left: 0; border-block: 1px solid var(--line); padding-block: 9px; }
  .contents a { padding: 9px 5px; gap: 9px; font-size: 12px; margin-left: 0; border-left: 0; border-radius: 5px; min-height: 44px; align-items: center; }
  .contents .index { font-size: 10px; }
  .sidebar-note { display: none; }
  .document-intro { font-size: 16px; margin-bottom: 24px; }
  .document-intro p + p { font-size: 14px; }
  .document-section { padding: 25px 22px; }
  .section-heading { gap: 11px; }
  .section-heading h2 { font-size: 20px; }
  .section-number { width: 28px; height: 28px; font-size: 10px; }
  .section-body { font-size: 15px; }
  .rights-card { padding: 24px; }
  .license-card { padding: 20px 21px 0; }
  .license-heading h3 { font-size: 18px; }
  .license-badge { font-size: 10px; padding-inline: 8px; }
  .license-text { padding: 14px; font-size: 11px; }
  .group-heading h2 { font-size: 24px; }
  .license-contact { padding: 24px; }
  .contact-link { font-size: 16px; }
  .footer-content { display: block; }
  .footer-links { margin-top: 10px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 28px); }
  h1 { font-size: 29px; }
  .page-tabs a { padding-inline: 15px; font-size: 13px; }
  .document-section { padding: 22px 18px; }
  .section-heading h2 { font-size: 18px; }
  .license-heading { flex-wrap: wrap; gap: 8px; }
  .contents { column-gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .shell { width: 100%; }
  .site-header { background: white; color: black; }
  .site-header::after, .masthead, .page-tabs, .sidebar, .site-footer, .skip-link { display: none; }
  .hero { padding: 0 0 20px; }
  .hero .eyebrow, .hero-description { color: #333; }
  h1 { font-size: 30pt; }
  .page-layout { display: block; padding: 0; }
  .paper, .rights-card, .license-card, .license-contact { border: 1px solid #aaa; box-shadow: none; }
  .document-section { padding: 18px; }
  .section-body { padding-left: 0; }
  .section-heading, .license-heading { break-after: avoid; }
  .contact-section, .rights-card, .license-contact { background: white; }
  a { color: black; }
  .license-text { background: white; }
}
