html { scroll-padding-top: 5.5rem; }
body {
  letter-spacing: 0.004em;
  background-color: var(--gc-paper);
  background-image:
    radial-gradient(circle at 7% 8%, rgba(48, 180, 140, .08), transparent 25rem),
    linear-gradient(rgba(23, 33, 29, .025) 1px, transparent 1px);
  background-size: auto, 100% 2.75rem;
}
::selection { background: var(--gc-sun); color: var(--gc-ink); }
.gc-skip-link {
  position: fixed; top: -6rem; left: .75rem; z-index: 3000;
  padding: .7rem 1rem; color: #fff; background: var(--gc-forest);
  border: 3px solid var(--gc-sun); font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 22px rgba(17,37,31,.22);
}
.gc-skip-link:focus, .gc-skip-link:focus-visible { top: .5rem; }
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #c14e32; outline-offset: 3px;
}
.gc-home #title-block-header { display: none; }
.quarto-title-block .quarto-title h1.title { display: none; }
.quarto-title-block .quarto-title .description { margin-top: .4rem; }
.navbar { border-bottom: 3px solid var(--gc-sun); }
.navbar-brand img { height: 2rem; }
.navbar-brand { letter-spacing: -.015em; }
.sidebar { border-right: 1px solid var(--gc-rule); }
.sidebar-title { font-family: Charter, "Iowan Old Style", Georgia, serif; }
h1, h2, h3 { letter-spacing: -0.025em; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: .98; }
h2 { border-top: 1px solid var(--gc-rule); padding-top: 1.2rem; margin-top: 2.8rem; }
h3 { color: var(--gc-forest); }
main.content { overflow-wrap: anywhere; }
a { text-underline-offset: .16em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .13em; }
code { border-radius: .18rem; }
pre { max-width: 100%; border-left: 4px solid var(--gc-mint); box-shadow: 0 8px 24px rgba(23,33,29,.08); }
table { display: block; max-width: 100%; overflow-x: auto; }
td, th { overflow-wrap: anywhere; }
thead th { color: var(--gc-forest); background: rgba(18, 62, 50, .07); }
main.content li code, main.content td code, main.content th code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
details > summary { cursor: pointer; }
blockquote { border-left-color: var(--gc-coral); background: rgba(239,107,74,.07); padding: .85rem 1.1rem; }
.quarto-title-block .description { color: var(--gc-muted); font-size: 1.08rem; }
.quarto-title-meta { color: var(--gc-muted); }
.callout { box-shadow: 0 8px 24px rgba(23, 33, 29, .06); }
.page-columns .content { min-width: 0; }
.hero {
  position: relative; overflow: hidden; padding: clamp(2rem, 7vw, 5.5rem);
  margin: -1rem 0 2.5rem; color: #fffdf7; background:
    radial-gradient(circle at 86% 18%, rgba(255,189,54,.95) 0 8%, transparent 8.5%),
    linear-gradient(125deg, #11251f 0 58%, #0c6d5c 58% 76%, #30b48c 76%);
  border-radius: .4rem; box-shadow: 0 24px 70px rgba(17,37,31,.22);
}
.hero::after { content: "Gλ"; position: absolute; right: 4%; bottom: -18%; font: 700 clamp(8rem, 24vw, 21rem)/1 Charter, Georgia, serif; color: rgba(255,255,255,.11); }
.hero h1 { color: #fffdf7; max-width: 12ch; margin: 0 0 1rem; }
.hero .lede { max-width: 58ch; font-size: 1.18rem; line-height: 1.55; }
.hero .eyebrow { color: var(--gc-sun); text-transform: uppercase; letter-spacing: .15em; font: 700 .78rem/1.2 "Avenir Next", sans-serif; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; position: relative; z-index: 2; }
.hero-actions a { display: inline-block; padding: .72rem 1rem; text-decoration: none; font-weight: 700; border: 1px solid rgba(255,255,255,.55); color: white; transition: background-color .16s ease, color .16s ease, transform .16s ease; }
.hero-actions a:first-child { background: var(--gc-sun); color: var(--gc-ink); border-color: var(--gc-sun); }
.hero-actions a:hover { background: #fffdf7; color: var(--gc-ink); border-color: #fffdf7; transform: translateY(-2px); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; position: relative; z-index: 2; }
.hero-proof span { padding: .2rem .5rem; border: 1px solid rgba(255, 255, 255, .36); color: rgba(255, 255, 255, .86); font-size: .72rem; letter-spacing: .045em; text-transform: uppercase; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gc-rule); border: 1px solid var(--gc-rule); margin: 1.5rem 0 3rem; }
.metric { background: var(--gc-cream); padding: 1.15rem; }
.metric strong { display: block; font: 700 1.8rem/1 Charter, Georgia, serif; color: var(--gc-forest); }
.metric span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.path-grid, .reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.path-card, .reference-card { border: 1px solid var(--gc-rule); padding: 1.25rem; background: rgba(255,250,240,.82); position: relative; box-shadow: 0 8px 22px rgba(23, 33, 29, .045); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.path-card:hover, .reference-card:hover { border-color: var(--gc-mint); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 33, 29, .09); }
.path-card::before { content: attr(data-step); color: var(--gc-coral); font: 700 .75rem/1 "Avenir Next", sans-serif; letter-spacing: .1em; }
.path-card h3, .reference-card h3 { margin-top: .45rem; }
.truth-box { border: 2px solid var(--gc-forest); padding: 1.25rem; background: #e8f3ed; }
.contract-table table { font-size: .88rem; }
.status-chip { display: inline-block; padding: .15rem .45rem; border: 1px solid currentColor; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.start-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1rem, 4vw, 2.5rem); align-items: center; }
.start-copy { font-size: 1.03rem; }
.start-copy ol { padding-left: 1.25rem; }
.start-copy li { margin-bottom: .42rem; }
.code-stage { position: relative; padding: 1rem; overflow: hidden; color: #eef8f3; background: #11251f; border-top: .55rem solid var(--gc-sun); box-shadow: var(--gc-shadow); }
.code-stage::before { content: "verified path"; display: block; margin: 0 0 .8rem; color: var(--gc-sun); font: 700 .7rem/1 "Avenir Next", sans-serif; text-transform: uppercase; letter-spacing: .13em; }
.code-stage pre { margin: .6rem 0; border-left-color: var(--gc-mint); background: #0b1c17; box-shadow: none; }
.code-stage code { color: #eef8f3; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.principle-card { min-height: 12rem; padding: 1.2rem; border-top: .4rem solid var(--gc-forest); background: var(--gc-cream); box-shadow: 0 8px 24px rgba(23, 33, 29, .06); }
.principle-card::before { content: attr(data-mark); color: var(--gc-coral); font: 700 .72rem/1 "Avenir Next", sans-serif; letter-spacing: .12em; }
.principle-card h3 { margin: .55rem 0 .65rem; }
.status-band { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .8rem 1rem; padding: 1.25rem; color: #eef8f3; background: var(--gc-forest); border-left: .5rem solid var(--gc-sun); box-shadow: var(--gc-shadow); }
.status-band > p { display: contents; }
.status-band strong { color: var(--gc-sun); }
.status-band span { color: rgba(255, 255, 255, .88); }
.cell-output-display { max-width: 100%; overflow-x: auto; }
.cell-output-display .mermaid { padding: 1rem; border: 1px solid var(--gc-rule); background: rgba(255, 250, 240, .76); }
.cell-output-display .mermaid svg { display: block; width: 100%; max-width: 100% !important; height: auto; }
.gc-reading-progress { position: fixed; inset: 0 0 auto; z-index: 4000; height: 3px; pointer-events: none; }
.gc-reading-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--gc-sun), var(--gc-coral)); transform: scaleX(0); transform-origin: left; }
.gc-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1000; min-width: 3rem; min-height: 3rem; border: 2px solid var(--gc-forest); border-radius: 50%; color: var(--gc-forest); background: rgba(255, 250, 240, .95); font: 700 .75rem/1 "Avenir Next", sans-serif; text-transform: uppercase; box-shadow: 0 8px 24px rgba(23, 33, 29, .16); cursor: pointer; }
.gc-to-top:hover { color: #fff; background: var(--gc-forest); }
.gc-to-top[hidden] { display: none; }
.gc-not-found #title-block-header { display: none; }
.not-found-panel {
  position: relative; overflow: hidden; margin: 1rem 0 2.5rem; padding: clamp(2rem, 7vw, 5rem);
  color: #fffdf7; background: linear-gradient(125deg, #11251f 0 68%, #0c6d5c 68%);
  border-top: .75rem solid var(--gc-coral); box-shadow: 0 24px 70px rgba(17,37,31,.2);
}
.not-found-panel::after { content: "404"; position: absolute; right: 2%; bottom: -18%; font: 700 clamp(7rem, 21vw, 18rem)/1 Charter, Georgia, serif; color: rgba(255,255,255,.09); }
.not-found-panel h1 { position: relative; z-index: 1; max-width: 15ch; color: #fffdf7; }
.not-found-panel p { position: relative; z-index: 1; max-width: 62ch; font-size: 1.08rem; }
@media (max-width: 760px) {
  html { scroll-padding-top: 7rem; }
  .hero { padding: 1.55rem 1.25rem 2rem; margin-top: -.35rem; }
  .hero::after { right: -3%; bottom: -6%; font-size: 9rem; }
  .hero h1 { max-width: 9.5ch; font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .hero .lede { font-size: 1.02rem; line-height: 1.48; }
  .hero .eyebrow span { display: block; margin-top: .35rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions a { text-align: center; }
  .hero-proof { display: none; }
  .not-found-panel { padding: 2rem 1.25rem 3.5rem; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .path-grid, .reference-grid { grid-template-columns: 1fr; }
  .start-grid, .principle-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 0; }
  .status-band { grid-template-columns: 1fr; gap: .25rem; }
  .status-band span + strong { margin-top: .65rem; }
  .gc-to-top { right: .65rem; bottom: .65rem; }
}
@media (max-width: 420px) {
  .hero-actions a:nth-child(3) { display: none; }
  .metric { padding: .85rem; }
  .metric strong { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: gc-reveal .6s cubic-bezier(.2,.8,.2,1) both; }
  .path-card, .reference-card { animation: gc-rise .5s ease both; }
  .path-card:nth-child(2), .reference-card:nth-child(2) { animation-delay: .08s; }
  .path-card:nth-child(3), .reference-card:nth-child(3) { animation-delay: .16s; }
  @keyframes gc-reveal { from { opacity: 0; clip-path: inset(0 0 100% 0); } }
  @keyframes gc-rise { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .navbar, .sidebar, .quarto-secondary-nav, .announcement, .page-footer, .gc-skip-link, .hero-actions, .gc-reading-progress, .gc-to-top { display: none !important; }
  body, main.content { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  pre, .hero, .not-found-panel, .path-card, .reference-card, .truth-box { break-inside: avoid; box-shadow: none; }
  .hero, .not-found-panel { color: #000; background: #fff; border: 2px solid #000; }
  .hero h1, .not-found-panel h1 { color: #000; }
}
