:root {
  color-scheme: light;
  --ink: #182c25;
  --muted: #465b52;
  --green: #255842;
  --forest: #183e32;
  --paper: #f5f8f5;
  --line: #d2ded5;
  --white: #fff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #397557; outline-offset: 4px; }
button { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.059em; line-height: 1.02; }
h2 { font-size: clamp(2.55rem, 5.4vw, 4.05rem); }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 5; padding: .5rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; gap: 0; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
.brand img { margin-right: .58rem; }
.brand span { color: var(--green); }
nav { display: flex; gap: clamp(.9rem, 3.2vw, 2.4rem); align-items: center; }
nav a, footer a { font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-github { padding: .4rem .8rem; border: 1px solid #bdcfc2; border-radius: .35rem; }

.hero { min-height: 31rem; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(2.2rem, 5.5vw, 5rem); align-items: center; padding-block: 3.65rem; }
.eyebrow { display: flex; gap: .62rem; align-items: center; color: var(--green); font: 650 .875rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.eyebrow > span { width: 1.05rem; height: 1px; background: currentColor; flex: 0 0 auto; }
h1 { font-size: clamp(3.6rem, 6.4vw, 6.1rem); margin-block: .95rem 1.3rem; }
h1 em { color: var(--green); font-weight: inherit; }
.intro { font-size: clamp(1.075rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .6rem 1.05rem; border: 1px solid transparent; border-radius: .4rem; font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: #2e654f; }
.secondary { border-color: #aabfb1; }
.secondary:hover { background: #e5efe7; }

.blueprint { position: relative; border: 1px solid #a7c1ad; border-radius: .6rem; padding: 1.1rem 1.15rem .95rem; background-color: #e5f0e6; background-image: linear-gradient(#b4cbb858 1px, transparent 1px), linear-gradient(90deg, #b4cbb858 1px, transparent 1px); background-size: 1.35rem 1.35rem; box-shadow: 0 10px 35px #1c4c3020; }
.blueprint-caption { color: #244f3e; font: 700 .875rem/1.4 var(--mono); }
.drawing { --stage-gap: 1.05rem; display: grid; gap: var(--stage-gap); max-width: 26rem; list-style: none; margin: .9rem auto .25rem; padding: 0; }
.drawing li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); position: relative; }
.drawing li:not(:last-child)::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: var(--stage-gap); transform: translateX(-50%); background: #5a886e; }
.artifact { display: flex; align-items: center; gap: .7rem; min-width: 0; min-height: 3.95rem; padding: .55rem .68rem; border: 1px solid #abc3b0; border-radius: .48rem; background: #f8fcf7; text-decoration: none; box-shadow: 0 4px 10px #173b2b18; overflow-wrap: anywhere; }
.artifact:hover { border-color: #376b50; box-shadow: 0 5px 16px #173b2b30; }
.artifact small { display: block; color: var(--green); font: 650 .75rem/1.4 var(--mono); }
.artifact strong { display: block; font-size: clamp(.875rem, 1.5vw, 1.04rem); font-weight: 750; line-height: 1.4; }
.artifact-spec { grid-column: 1 / 11; }
.artifact-schema { grid-column: 3 / 13; }
.artifact-release { grid-column: 2 / 12; }
.artifact-icon, .tile { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: .4rem; width: 2.4rem; height: 2.4rem; background: #dceedd; color: #274f3a; }
.artifact-schema .artifact-icon { background: #eae8f6; color: #4a436c; }
.artifact-release .artifact-icon { background: #f8e5d9; color: #87492e; }
.icon-document i { width: .86rem; height: 1.11rem; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.icon-document i::after { content: ""; position: absolute; inset: .27rem .14rem auto; height: .32rem; border-block: 1.5px solid currentColor; }
.icon-schema::before { content: ""; width: 1.06rem; aspect-ratio: 1; border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.icon-seal i { display: grid; place-items: center; width: 1.15rem; aspect-ratio: 1; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-seal i::after { content: ""; width: .43rem; aspect-ratio: 1; border: 1.5px solid currentColor; transform: rotate(45deg); }

.section { padding-block: 3.5rem; }
.tools-section { background: #fcfdfb; border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 1.65rem; }
.workflow-grid h2 { margin-top: .55rem; }
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .55rem; background: var(--white); padding: 1.25rem; scroll-margin-top: 1rem; }
.tool-card:target { border-color: #427a59; outline: 2px solid #427a59; outline-offset: 3px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.1rem; }
.card-top p { font: 650 .8rem/1.4 var(--mono); color: var(--muted); }
.tile { width: 2.7rem; height: 2.7rem; }
.mint { background: #dceedd; }
.violet { background: #eae8f6; color: #4a436c; }
.peach { background: #f8e5d9; color: #87492e; }
.tool-card h3 { font: 400 2.13rem/1.15 var(--serif); letter-spacing: -.045em; }
.tool-card > p { color: var(--muted); margin-block: .45rem 1.2rem; }
.tool-links { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.tool-links a { font-weight: 750; color: var(--green); font-size: .9rem; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.tool-links a:hover { text-decoration-thickness: 2px; }

.workflow-section { background: var(--forest); color: #f2faf3; }
.workflow-grid { display: grid; grid-template-columns: .84fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.workflow-grid .eyebrow { color: #ccedb6; }
.workflow-grid > div:first-child > p:not(.eyebrow) { max-width: 27rem; color: #deece3; margin-top: 1rem; }
.workflow-tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; margin-top: 1.3rem; border: 1px solid #709583; border-radius: .45rem; padding: .25rem; }
.workflow-tabs button { min-height: 2.5rem; color: white; cursor: pointer; border: 0; border-radius: .25rem; background: transparent; padding: .4rem .85rem; font-size: .9rem; font-weight: 700; }
.workflow-tabs button:hover { background: #345f4c; }
.workflow-tabs button[aria-selected="true"] { background: #d9f4c1; color: #1b3a2b; }
.workflow-section :focus-visible { outline-color: #d9f4c1; }
.workflow-panels { display: grid; gap: 1rem; }
.workflow-panel { border: 1px solid #96b2a3; border-radius: .55rem; color: var(--ink); overflow: hidden; background: #f6fbf6; }
.panel-heading { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px solid #cadacc; background: #e3f0e4; color: var(--green); padding: .78rem 1.25rem; font: 700 .8125rem/1.4 var(--mono); }
.panel-body { min-height: 13.4rem; padding: 1.15rem 1.25rem 1.25rem; }
.panel-body h3 { font: 400 1.7rem/1.16 var(--serif); letter-spacing: -.035em; }
.panel-body p { margin-top: .45rem; color: var(--muted); }
blockquote { margin: .9rem 0 0; padding: .57rem .78rem; border-left: 3px solid #6b9a7d; background: #e9f1e9; font-size: .95rem; }

footer { border-top: 1px solid var(--line); background: #e7efe8; }
.footer-inner { min-height: 5rem; }

@media (max-width: 920px) {
  .shell { width: min(100% - 3rem, 73rem); }
  .hero { gap: 1.75rem; }
  .featured { gap: .65rem; }
}
@media (max-width: 720px) {
  .hero, .workflow-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 3.3rem; gap: 2.25rem; }
  .hero h1 { font-size: clamp(3.35rem, 10vw, 5.1rem); }
  .section { padding-block: 3.1rem; }
  .featured { grid-template-columns: 1fr; gap: .8rem; }
  .panel-body { min-height: auto; }
}
@media (max-width: 430px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; padding-block: .75rem; gap: .55rem; }
  .header-inner nav { width: 100%; gap: 1.15rem; }
  .nav-github { margin-left: auto; }
  .blueprint { padding-inline: .8rem; }
  .artifact { gap: .55rem; }
  .footer-inner { flex-wrap: wrap; gap: .35rem 1rem; padding-block: .9rem; }
}

.application-section { padding-block: 1.4rem; }
.family-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; border: 1px solid var(--line); border-radius: .55rem; padding: 1.15rem 1.25rem; background: #e7efe8; }
.family-card h2 { font-size: 2.13rem; line-height: 1.15; letter-spacing: -.045em; margin-top: .3rem; }
.family-card p:not(.eyebrow) { color: var(--muted); margin-top: .4rem; }

.umf-section { background: #f0f3ed; border-bottom: 1px solid var(--line); }
.umf-section-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.65rem; }
.umf-section-header h2 { margin-top: .45rem; }
.umf-section-header p:not(.eyebrow) { color: var(--muted); margin-top: .8rem; max-width: 39rem; }
.umf-diagram { --node-gap: .85rem; --wire: #729382; }
.umf-diagram figcaption { margin-bottom: .9rem; color: var(--muted); font-size: .92rem; }
.umf-node { display: block; color: var(--forest); text-decoration: none; }
.umf-node:hover, .umf-node:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.umf-model { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; padding: .7rem 1.15rem; border-radius: .45rem; color: white; background: var(--forest); }
.umf-model strong, .umf-model span { display: block; }
.umf-model span { color: #e2eee6; font-size: .9rem; }
.umf-model::after, .umf-roles::before, .umf-roles > div::before { content: ""; position: absolute; background: var(--wire); }
.umf-model::after { top: 100%; left: 50%; width: 1px; height: var(--node-gap); }
.umf-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; gap: var(--node-gap); margin: calc(2 * var(--node-gap)) 0 0; }
.umf-roles::before { top: calc(-1 * var(--node-gap)); inset-inline: calc((100% - 3 * var(--node-gap)) / 8); height: 1px; }
.umf-roles > div { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: .45rem; background: #fcfdfb; }
.umf-roles > div::before { bottom: 100%; left: 50%; width: 1px; height: calc(var(--node-gap) + 1px); }
.umf-roles dt { font: 700 1rem/1.35 var(--sans); }
.umf-roles .umf-node { padding: .75rem .9rem; border-radius: .4rem .4rem 0 0; border-bottom: 1px solid var(--line); background: #e4eee5; }
.umf-roles .umf-node:hover { background: #d9e9dd; }
.umf-roles dd { margin: 0; padding: .75rem .9rem .9rem; color: var(--muted); }
.umf-roles dd a { color: var(--green); font-weight: 700; text-underline-offset: .2em; }
@media (max-width: 820px) {
  .umf-model { margin-inline: 0; }
  .umf-model::after, .umf-roles::before { content: none; }
  .umf-roles { grid-template-columns: minmax(0, 1fr); margin-top: var(--node-gap); padding-left: 1.5rem; }
  .umf-roles > div::before { top: calc(-1 * var(--node-gap) - 1px); bottom: calc(-1 * var(--node-gap) - 1px); left: -.8rem; height: auto; }
  .umf-roles > div:last-child::before { bottom: auto; height: calc(var(--node-gap) + 1.5rem + 1px); }
  .umf-roles > div::after { content: ""; position: absolute; top: 1.5rem; left: -.8rem; width: .8rem; height: 1px; background: var(--wire); }
}
@media (max-width: 600px) {
  .header-inner nav { gap: .75rem; flex-wrap: wrap; }
}

.workflow-grid:has(#api-panel:not([hidden])) { row-gap: 1.5rem; }
.workflow-grid:has(#api-panel:not([hidden])) .workflow-panels { grid-column: 1 / -1; min-width: 0; }
.api-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; margin: 1rem 0; }
.api-example { display: grid; grid-template-rows: subgrid; grid-row: span 5; min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--white); }
.api-example h4 { margin: 0; font: 400 1.45rem/1.15 var(--serif); }
.api-example h5 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; margin: 0; color: var(--green); font-size: .875rem; }
#api-panel code { font-family: var(--mono); }
.api-example pre { min-width: 0; margin: 0; padding: .65rem .75rem; border-radius: .3rem; background: #e9f1e9; font: .85rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.api-note { font-size: .95rem; }
@media (max-width: 700px) {
  .api-comparison { grid-template-columns: minmax(0, 1fr); }
}
