/* Public-facing Anthesis identity adapted from the Anthesis policy-site prototype.
   Keep the existing information architecture and proof/claim contracts intact. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f7f9f4;
  --ink: #16211a;
  --muted: #58615a;
  --accent: #d3fa79;
  --accent-2: #426927;
  --card: #fff;
  --card-2: #f4f7f0;
  --card-3: #f4f7f0;
  --card-4: #edf2e7;
  --card-5: #e4eadb;
  --card-6: #f6f8f3;
  --stroke: #d7ddd5;
  --shadow: 0 18px 42px rgba(20,35,22,.08);
  --radius: 7px;
  --font-sans: "DM Sans", "Segoe UI", sans-serif;
  --font-serif: "Manrope", "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { color: var(--ink); background: var(--bg); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
.page { background: none; }
a:hover { text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid #55752a; outline-offset: 4px; }
h1, h2, h3, .brand { font-family: var(--font-serif); }
h1, h2 { letter-spacing: -.045em; }
h3 { letter-spacing: -.025em; }
.eyebrow { color: #526e3e; letter-spacing: .13em; font-size: 11px; font-weight: 700; margin: 0 0 15px; }
.hero { padding: 0; }
.nav {
  max-width: 1280px; width: calc(100% - 100px); margin: 0 auto;
  min-height: 100px; padding: 17px 0;
  border-bottom: 1px solid var(--stroke);
  position: relative; top: auto; z-index: 11;
  background: transparent; backdrop-filter: none;
  gap: 22px;
}
.brand { font-size: 27px; font-weight: 800; letter-spacing: -.055em; gap: 9px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 35px; height: 38px; color: var(--accent); background: var(--ink);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  font-family: var(--font-serif); font-weight: 600; font-size: 23px;
  letter-spacing: -.16em; padding-right: 3px;
}
.brand-period { color: #719b36; }
.nav-links { align-items: center; gap: clamp(12px, 2vw, 26px); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.nav-links > a:not(.nav-community):hover, .nav-links > a:not(.nav-community):focus-visible { color: #355c1f; }
.nav-links .nav-community, .nav-links .nav-community:hover, .nav-links .nav-community:focus-visible {
  margin: 0; padding: 10px 13px; border: 1px solid #bac5b8;
  border-radius: 5px; background: transparent; color: var(--ink);
  font-size: 13px; white-space: nowrap;
}
.nav-links .nav-community:hover { background: #e8f1db; text-decoration: none; }
.github-icon { width: 18px; height: 18px; flex-basis: 18px; }
.hero-content {
  max-width: 1280px; width: calc(100% - 100px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px); align-items: center;
  padding: 72px 0 70px;
}
.hero-text, .hero-card { grid-column: auto; }
.hero-text { max-width: 610px; min-width: 0; }
.hero h1 { font-size: clamp(54px, 6.7vw, 89px); line-height: 1.07; letter-spacing: -.075em; margin: 0 0 23px; font-weight: 600; }
.hero h1 em { color: #527a2a; font-style: normal; text-decoration: underline; text-decoration-color: #a8c66f; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.hero .lede { font-size: clamp(18px, 1.55vw, 21px); max-width: 520px; color: #3b493c; margin: 0 0 15px; line-height: 1.55; }
.hero-detail { max-width: 520px; font-size: 15px; color: var(--muted); line-height: 1.65; margin: 0; }
.hero-actions { flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 27px; }
.btn, .btn.community-btn {
  background: var(--accent); color: var(--ink); border: 1px solid #b2d36a;
  border-radius: 4px; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  padding: 13px 17px; box-shadow: none;
}
.btn:hover, .btn.community-btn:hover { box-shadow: 0 8px 17px rgba(55,72,34,.12); background: #c7f065; color: var(--ink); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #869588; }
.hero-secondary { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: #acbda4; text-underline-offset: 5px; }
.hero-note { color: var(--muted); font-size: 13px; margin: 20px 0 0; }
/* The visual representation is illustrative, not an enforcement claim. */
.boundary-card {
  min-width: 0; background: #111914; color: #f0f4eb; padding: 24px 25px 0;
  border-radius: 8px; box-shadow: 0 18px 38px rgba(14,27,15,.1);
}
.boundary-heading, .boundary-gate-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.boundary-heading { font: 10px/1.4 var(--font-sans); letter-spacing: .11em; text-transform: uppercase; color: #b9c6b6; margin: 0 0 22px; }
.boundary-node { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 14px 15px; background: #202a23; border: 1px solid #3b463c; border-radius: 5px; }
.boundary-node strong, .boundary-node small { display: block; }
.boundary-node strong { font: 600 15px/1.35 var(--font-sans); }
.boundary-node small { font-size: 12px; color: #b1bdaf; margin-top: 4px; }
.boundary-symbol { color: #c4d1c2; font-size: 23px; }
.boundary-symbol.end { margin-left: auto; }
.boundary-tag { margin-left: auto; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: #cbd5c6; border: 1px solid #576454; padding: 4px 6px; white-space: nowrap; }
.boundary-connector { border-left: 1px solid #8d9e83; margin-left: 28px; min-height: 39px; padding: 11px 0 8px 17px; color: #b1c6a9; font: 11px/1.45 monospace; }
.boundary-gate { background: #263526; border: 1px solid #bee083; border-radius: 5px; padding: 18px; }
.boundary-gate-title { justify-content: flex-start; }
.boundary-gate-title strong { font: 600 20px/1.2 var(--font-serif); }
.boundary-gate-title > span:last-child { margin-left: auto; color: var(--accent); text-transform: uppercase; font-size: 9px; letter-spacing: .08em; }
.boundary-mini-mark { color: var(--accent); font: 700 21px var(--font-serif); }
.boundary-gate p { margin: 16px 0 12px; font-size: 15px; }
.boundary-checks, .boundary-outcomes { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.boundary-checks { gap: 15px; color: #d5e1cc; }
.boundary-checks span::before { content: "✓"; color: var(--accent); margin-right: 5px; }
.boundary-outcomes { border-top: 1px solid #54634c; margin-top: 18px; padding-top: 12px; }
.boundary-outcomes span { border: 1px solid #64745d; border-radius: 3px; padding: 3px 7px; }
.boundary-outcomes span:first-child { color: var(--accent); }
.boundary-outcomes span:nth-child(2) { color: #efdeb4; }
.boundary-outcomes span:last-child { color: #f1bdb5; }
.boundary-evidence { padding: 10px 5px; color: #b9cba9; font-size: 11px; }
.boundary-foot { margin: 0 -25px; border-top: 1px solid #354334; padding: 12px 16px; text-align: center; color: #bac7b6; font-size: 11px; }
.principles { max-width: 1280px; width: calc(100% - 100px); margin: 0 auto; border-block: 1px solid var(--stroke); padding: 19px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; color: #3a4a38; font-size: 13px; font-weight: 600; }
.principles span::before { content: "+"; color: #5b8135; margin-right: 12px; font-size: 17px; }
main { max-width: 1280px; width: calc(100% - 100px); margin: 0 auto; padding: 0 0 86px; }
.section { margin-top: 0; padding-top: 90px; }
.section-head { max-width: 980px; gap: 9px; margin-bottom: 34px; }
.section-head h2 { max-width: 850px; font-family: var(--font-serif); font-size: clamp(32px, 3.25vw, 46px); font-weight: 600; line-height: 1.18; }
.section-head p { max-width: 750px; color: var(--muted); }
.section:nth-child(even) .panel, .section:nth-child(odd) .panel { background: #fff; }
.panel { border-radius: 5px; border-color: var(--stroke); padding: clamp(20px, 2.1vw, 29px); }
.panel p { color: #455045; }
.panel h3 { font-size: clamp(19px, 1.9vw, 25px); font-weight: 650; line-height: 1.3; }
.use-case-grid { gap: 0; }
.use-case-grid .panel { border-radius: 0; }
.use-case-grid .panel:first-child { border-radius: 5px 0 0 5px; }
.use-case-grid .panel + .panel { border-left: 0; }
.use-case-grid .panel:last-child { border-radius: 0 5px 5px 0; }
.case-label, .card-title { color: #4f7038; letter-spacing: .09em; font-weight: 700; }
.case-limit { color: #536052; }
.local-path { border: 1px solid var(--stroke); background: #edf3e7!important; margin-top: 22px; }
.action-path li { border-radius: 4px; }
.action-path li:nth-child(2) { border-color: #668f47; box-shadow: inset 4px 0 0 #668f47; }
.sovereignty-band {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,5vw,88px);
  margin-top: 82px; padding: clamp(28px,5vw,64px);
  background: #111914; color: #f4f8ef; border-radius: 6px;
}
.sovereignty-band .eyebrow { color: #b5cba7; }
.sovereignty-band h2 { margin: 0; font-size: clamp(36px,4vw,55px); line-height: 1.17; font-weight: 600; }
.sovereignty-band h2 em { color: var(--accent); font-style: normal; }
.sovereignty-band p { color: #d4ded1; max-width: 530px; font-size: 15px; }
.sovereignty-band .sovereignty-lead { color: #f0f5eb; font-size: clamp(21px,2.1vw,27px); line-height: 1.5; margin: 0 0 24px; }
.sovereignty-band .sovereignty-limit { color: #b7c7b1; font-size: 13px; margin-top: 20px; }
@media(max-width:900px) { .sovereignty-band { grid-template-columns: 1fr; gap: 18px; margin-top: 62px; } }
#components { padding-top: 92px; }
#components .boundary-layout { align-items: stretch; }
#components .boundary-diagram { background: #18241b; color: #f3f7ee; border-color: #18241b; }
#components .flow-node { background: #273729; border-color: #60715e; color: #f2f6ed; border-radius: 5px; }
#components .flow-node.emphasis { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
#components .flow-arrow, #components .independent-check { color: #c0d0b8; }
#components .independent-check { border-color: #92b660; }
#trial { padding: 90px clamp(22px, 4vw, 55px) 52px; margin-top: 84px; background: #e8efdf; border-radius: 6px; }
#trial .section-head { max-width: 800px; }
#trial .trial-layout { gap: 16px; }
#trial .panel { background: rgba(255,255,255,.85); }
.trial-command { background: #17241b; color: #f3fae9; border-radius: 4px; }
.status-label { border-radius: 4px; letter-spacing: .06em; }
.status-label.runnable { color: #275c35; background: #e4f2de; }
.status-label.reference { color: #85501b; background: #fff0d8; }
.status-label.development { color: #505b4e; background: #eef1eb; }
.table-wrap { border-radius: 5px; background: #fff; }
.integration-table thead th, .responsibility-table thead th { background: #e7eedf; }
.text-link, .platform-table a { color: #315b2a; text-underline-offset: 4px; }
.trust-note { border-left-color: #89ac55; background: #edf3e7; border-radius: 0 4px 4px 0; }
#proof { margin-top: 84px; padding: 48px clamp(22px, 4vw, 55px); background: #eef2e8; border-radius: 6px; }
#proof .status-grid { gap: 0; }
#proof .status-grid .panel { border-radius: 0; }
#proof .status-grid .panel + .panel { border-left: 0; }
#status .status-grid { gap: 12px; }
.resource-grid { grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); }
.footer { background: #edf1e9; color: #435340; border-top: 1px solid var(--stroke); }
.footer-content { max-width: 1280px; margin: 0 auto; padding: 32px 0 45px; width: calc(100% - 100px); }
.footer a:hover { color: #275323; }
@media(max-width:1100px) {
  .nav, .hero-content, .principles, main, .footer-content { width: calc(100% - 56px); }
  .nav-links { gap: 12px; font-size: 12px; }
  .hero-content { gap: 30px; }
  .hero h1 { font-size: clamp(52px,6vw,75px); }
  .boundary-tag { display: none; }
}
@media(max-width:900px) {
  html { scroll-padding-top: 25px; }
  .nav, .hero-content, .principles, main, .footer-content { width: calc(100% - 40px); }
  .nav { min-height: 76px; padding: 13px 0; }
  .brand { order: 1; }
  .nav-toggle { order: 2; display: none; margin-left: auto; border-radius: 5px; color: var(--ink); }
  .js .nav-toggle { display: inline-flex; }
  .nav-links { order: 3; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: 9px 0 13px; font-size: 14px; }
  .js .nav-links { display: none; }
  .js .nav.open .nav-links { display: flex; }
  .nav-links .nav-community { align-self: flex-start; }
  .hero-content { grid-template-columns: 1fr; gap: 36px; padding: 43px 0 50px; }
  .hero-text { max-width: 720px; }
  .hero h1 { font-size: clamp(50px, 9vw, 76px); }
  .boundary-card { width: 100%; max-width: 620px; margin: 0 auto; }
  .principles { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
  .section { padding-top: 65px; }
  #trial, #proof { margin-top: 62px; padding: 29px 22px; }
  .use-case-grid { grid-template-columns: 1fr; gap: 12px; }
  .use-case-grid .panel, .use-case-grid .panel:first-child, .use-case-grid .panel:last-child { border-radius: 5px; border: 1px solid var(--stroke); }
  .use-case-grid .panel + .panel { border-left: 1px solid var(--stroke); }
  #proof .status-grid { gap: 12px; }
  #proof .status-grid .panel { border-radius: 5px; }
  #proof .status-grid .panel + .panel { border-left: 1px solid var(--stroke); }
  .boundary-tag { display: inline; }
}
@media(max-width:560px) {
  .brand { font-size: 24px; }
  .brand-mark { width: 31px; height: 33px; font-size: 20px; }
  .hero h1 { font-size: clamp(43px, 12.4vw, 63px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .boundary-card { padding: 17px 14px 0; }
  .boundary-foot { margin-inline: -14px; }
  .boundary-tag { display: none; }
  .boundary-gate { padding: 13px; }
  .boundary-gate-title > span:last-child { font-size: 8px; }
  .principles { gap: 7px; font-size: 11px; }
  .principles span::before { margin-right: 7px; }
  .section-head h2 { font-size: 32px; }
  #trial .trial-layout { grid-template-columns: 1fr; }
  .trial-doc-link { overflow-wrap: anywhere; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media print {
  .project-brief .nav { display: none; }
  .project-brief .page, .project-brief body { background: #fff; }
  .project-brief main { max-width: none; width: 100%; }
  .project-brief .section { padding-top: 9pt; }
  .project-brief .hero-content { width: 100%; padding: 0; }
  .project-brief .hero h1 { font-size: 30pt; }
}
