@import url("/fonts/fonts.css");

.compiler-page main { max-width: 1100px; }
.compiler-page .top-nav { font-size: 14px; }
.compiler-page .top-nav a, .demo-nav a { border-bottom: 1px solid var(--line); }
.compiler-hero, .demo-hero { padding: 152px 0 64px; }
.compiler-page h1, .compiler-page h2, .compiler-page h3 { font-family: var(--font-serif); font-weight: 400; }
.compiler-page h1 { max-width: 21ch; font-size: clamp(46px, 7vw, 88px); font-weight: 300; line-height: 1.03; letter-spacing: -0.035em; }
.compiler-deck { font: italic 300 clamp(24px, 3vw, 37px)/1.18 var(--font-serif); color: var(--brass); margin: 20px 0 28px; max-width: 35ch; }
.compiler-intro, .compiler-section p, .demo-controls p, .result-note { color: var(--ink-dim); max-width: 66ch; }
.compiler-intro { margin-top: 16px; font-size: 17px; }
.compiler-section { padding: 46px 0 56px; border-top: 1px solid var(--line); }
.compiler-section h2, .demo-output h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.cc-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cc-hero h1 { font-size: clamp(32px, 4vw, 46px); }
.cc-mark { display: block; font: 500 clamp(72px, 8vw, 108px)/1 var(--font-mono); letter-spacing: -.07em; }
.cc-example { border-left: 1px solid var(--line); padding-left: 2rem; }
.cc-example h2 { margin: .65rem 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.cc-example p, .cc-stages span { color: var(--ink-dim); }
.cc-explanation > p { margin-top: 1rem; }
.cc-explanation strong { color: var(--ink); }
.cc-stages { list-style: none; display: flex; gap: 1.8rem; margin-block: 2rem; padding-block: 1.2rem; border-block: 1px solid var(--line); }
.cc-stages li { position: relative; flex: 1; min-width: 0; }
.cc-stages li + li::before { content: ""; position: absolute; left: -1.25rem; top: .55em; width: .42rem; height: .42rem; border-top: 1px solid var(--brass); border-right: 1px solid var(--brass); transform: rotate(45deg); }
.cc-stages strong, .cc-stages span { display: block; }
.cc-stages strong { font-weight: 600; line-height: 1.3; }
.cc-stages span { margin-top: .35rem; font-size: .875rem; }
@media (max-width: 800px) {
    .cc-hero { grid-template-columns: 1fr; gap: 2rem; }
    .cc-example { border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
    .cc-stages { flex-direction: column; gap: 1.5rem; }
    .cc-stages li + li::before { left: .15rem; top: -1rem; transform: rotate(135deg); }
}
.demo-links, .frontier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.demo-links { margin-top: 28px; }
.demo-links a { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--line-soft); border-top: 1px solid var(--brass-2); }
.demo-links a:hover { background: rgba(233, 237, 243, 0.09); }
.demo-links h3 { margin: 16px 0 10px; font-size: 30px; line-height: 1.15; }
.demo-links p { flex: 1; }
.compiler-page .label { font: 14px/1.5 var(--font-mono); color: var(--brass); }
.text-link { display: inline-block; margin-top: 20px; border-bottom: 1px solid var(--brass-2); font-size: 14px; }
.text-link:hover, .demo-nav a:hover { color: var(--brass); }
.frontier .label { margin-top: 12px; }
.sufficiency { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 2.5rem; margin-top: 1.75rem; }
.sufficiency img { width: 100%; }
.sufficiency p + p { margin-top: .8rem; }
.sufficiency .credit { font-size: .875rem; }
.demo-hero { padding-bottom: 36px; }
.demo-hero h1 { font-size: clamp(42px, 5.7vw, 68px); margin: 16px 0; }
.demo-workbench { display: grid; grid-template-columns: minmax(195px, 1fr) minmax(0, 2.2fr); gap: 36px; border-block: 1px solid var(--line); padding: 32px 0; }
.demo-controls fieldset { border: 0; min-width: 0; }
.demo-controls legend { font: 400 26px/1.2 var(--font-serif); margin-bottom: 18px; }
.demo-controls label { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; cursor: pointer; }
.demo-controls input { accent-color: var(--brass); }
.demo-controls input:checked + span { color: var(--brass); }
.demo-controls p { margin-top: 20px; }
.demo-output { min-width: 0; border-left: 1px solid var(--line); padding-left: 32px; }
.demo-output h2 { margin: 6px 0 10px; }
.demo-output h3 { font-size: 23px; margin: 24px 0 8px; }
.demo-output details { border-top: 1px solid var(--line); }
.demo-output summary { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.demo-output summary small { display: block; color: var(--ink-dim); font: 13px/1.5 var(--font-mono); }
.demo-output summary strong { color: var(--brass); font-weight: 500; }
.citation { padding: 16px; background: var(--line-soft); margin-bottom: 16px; overflow-wrap: anywhere; }
.citation code { display: block; color: var(--ink-dim); font: 13px/1.5 var(--font-mono); margin: 6px 0; }
.citation blockquote { padding-left: 12px; border-left: 2px solid var(--brass-2); }
.demo-output button { font: inherit; padding: 5px 12px; cursor: pointer; }
.demo-nav { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px 0 52px; font-size: 14px; }
@media (max-width: 700px) {
    .sufficiency { grid-template-columns: 1fr; gap: 1rem; }
    .compiler-hero, .demo-hero { padding-top: 112px; }
    .demo-links, .frontier, .demo-workbench { grid-template-columns: 1fr; gap: 20px; }
    .demo-output { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
    .demo-output summary { grid-template-columns: 12px 1fr; }
    .demo-output summary strong { grid-column: 2; }
    .compiler-page .top-inner { gap: 8px; }
}

/* The exhibit uses the same paper, ink and brass as the company pages. */
.compiler-page { --ink-mute: #a3afc0; }
.compiler-page :focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.compiler-page h1, .compiler-page h2, .compiler-page h3 { text-wrap: balance; }
.compiler-hero h1 { margin: .3em 0; }
.compiler-section h3 { margin: 1.3em 0 .5em; font-size: 1.5rem; }
.compiler-section p + p, .compiler-section h2 + p { margin-top: 1em; }
.status, .change { margin: 1rem 0; color: var(--ink-dim); }
.cta-band { padding-bottom: 3rem; }
.checks, .demo-output ul, .exhibit ul { padding-left: 1.3em; }
.checks { max-width: 66ch; margin-block: 1rem; }
.checks li, .demo-output li, .exhibit li { padding-block: .35em; }
.checks a, .relationships a, .static-states a { text-decoration: underline; text-underline-offset: .2em; }
.exhibit { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(7rem, .45fr) minmax(0,2fr); gap: 1.6rem; margin-top: 1.5rem; border-block: 1px solid var(--line); padding-block: 1rem; }
.exhibit h3 { margin-top: 0; }
.process { align-self: center; color: var(--brass); font-family: var(--font-mono); font-size: .875rem; }
.compiler-page table { width: 100%; border-collapse: collapse; text-align: left; font-size: 1rem; }
.pilot-results { max-width: 46rem; margin-block: 1.25rem; font-variant-numeric: tabular-nums; }
.pilot-results thead th:first-child { width: 52%; }
.pilot-results :is(th, td):not(:first-child) { text-align: right; }
.pilot-results td { white-space: nowrap; }
.compiler-page th, .compiler-page td { border-bottom: 1px solid var(--line); padding: .65em .4em; vertical-align: top; overflow-wrap: anywhere; }
.compiler-page th { font-weight: 500; }
.compiler-page thead th, .compiler-page small { font: .875rem/1.4 var(--font-sans); color: var(--ink-dim); }
.compiler-page small { display: block; margin-top: .25em; }
.compiler-page code, .compiler-page blockquote { overflow-wrap: anywhere; white-space: pre-wrap; }
.compiler-page details > summary { cursor: pointer; padding-block: .55rem; }
.demo-controls { display: grid; gap: 1.25rem; }
.demo-controls label { font-weight: 600; }
.demo-controls [hidden], [hidden] { display: none !important; }
.record-state { scroll-margin-top: 1rem; }
html:not(.interactive) .record-state:not(#S4) { display: none; }
html:not(.interactive) #states:has(:target) .record-state { display: none; }
html:not(.interactive) #states .record-state:target, html:not(.interactive) #states .record-state:has(:target) { display: block; }
.interactive .static-states { display: none; }
.decision { margin-block: 1rem; padding-left: 1rem; border-left: 2px solid var(--brass); }
.points { display: flex; flex-wrap: wrap; gap: .55rem; }
.point { flex: 1 1 7rem; min-width: 0; }
.demo-output details summary { display: list-item; }
.point summary strong { font: 500 1rem/1.4 var(--font-mono); }
.point summary span { font-size: .875rem; color: var(--ink-dim); }
.citation { margin-top: .5rem; }
.citation h5 { font: 500 1rem/1.4 var(--font-sans); }
.relationships, .inventory { margin-top: 1.5rem; }
.benchmark { margin-block: 1.5rem; }
.benchmark img { display: block; width: 100%; max-width: 48rem; height: auto; margin-bottom: .75rem; }
.benchmark figcaption { color: var(--brass); }
@media (max-width: 760px) {
    .exhibit { grid-template-columns: minmax(0,1fr); }
    .compiler-page .container { padding-inline: 1rem; }
    .compiler-page .top-nav { text-align: right; }
    .compiler-page .wordmark { font-size: 1rem; }
    .compiler-page .evidence-table th { width: 41%; }
}

.demo-controls legend { margin-bottom: .35rem; font-size: 1.25rem; }
.demo-controls .choices label { font-weight: 400; padding: .2rem 0; }
.demo-controls fieldset:disabled .choices { color: var(--ink-dim); }
.demo-controls .choices input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

.figure-link { text-decoration: underline; text-underline-offset: .2em; }
html:has(.compiler-page) { scroll-behavior: auto; }
