/* SPDX-License-Identifier: Apache-2.0 */
:root {
    color-scheme: light;
    --forest: #10281f;
    --ink: #183b2c;
    --paper: #f5f3eb;
    --gold: #d9bb79;
    --muted: #637066;
    --line: #d4d8ca;
    font-family: Arial, Helvetica, sans-serif;
    font-synthesis: none;
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
}
button,
input,
textarea,
select {
    font: inherit;
}
a {
    color: inherit;
    text-underline-offset: 5px;
}
button,
a,
input,
textarea,
select,
summary {
    outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #9b7633;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
button,
a {
    touch-action: manipulation;
}
.wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 64px;
    padding-right: 64px;
}
.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    background: #fff;
    padding: 14px;
    z-index: 10;
}
.skip:focus {
    top: 10px;
}
.masthead {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 110px;
    background: var(--forest);
    color: #f7f4e8;
    max-width: none;
    border-bottom: 1px solid #ffffff18;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 3px;
    font-weight: 600;
}
.mark {
    font-family: Georgia, serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
}
.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 7px;
    color: #bdc8b9;
}
.masthead nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 12px;
}
.masthead nav a {
    text-decoration: none;
}
.masthead nav a:hover {
    text-decoration: underline;
}
.edition {
    font-size: 9px;
    letter-spacing: 1px;
    color: #bec8b9;
}
.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 25px;
    background: var(--forest);
    max-width: none;
    color: #f6f1e3;
    padding-top: 64px;
    padding-bottom: 64px;
    min-height: 650px;
    overflow: hidden;
}
.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.8;
    margin: 0 0 22px;
}
.hero .eyebrow {
    color: #d7c394;
}
.spark {
    display: inline-block;
    background: var(--gold);
    height: 5px;
    width: 5px;
    margin-right: 7px;
    border-radius: 50%;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}
h1 {
    font-size: clamp(58px, 7.5vw, 118px);
    line-height: 0.99;
    letter-spacing: -5px;
    margin-bottom: 30px;
}
h1 em {
    color: var(--gold);
    font-weight: 400;
}
h2 {
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
h3 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 20px;
}
em {
    font-weight: 400;
}
.lead {
    font-size: 17px;
    line-height: 1.8;
    max-width: 490px;
    color: #c9d2c4;
}
.actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 16px 21px;
    min-height: 50px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
    transition:
        background 0.2s,
        transform 0.2s;
}
.button:not(:disabled):hover {
    transform: translateY(-2px);
}
.gold {
    background: var(--gold);
    color: var(--forest);
}
.dark {
    background: var(--forest);
    color: var(--paper);
}
.pale {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
}
.outline {
    border-color: #647c6b;
    background: transparent;
    color: #f3edda;
}
.text-link {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
}
.hero-note {
    font-size: 10px;
    letter-spacing: 0.3px;
    color: #b7c2b1;
    margin-top: 22px;
}
.sculpture {
    position: relative;
    width: 100%;
}
.sculpture svg {
    display: block;
    max-height: 480px;
    width: 100%;
}
.sculpture p {
    font-size: 10px;
    letter-spacing: 0.5px;
    text-align: center;
    color: #b4c0ae;
    margin-top: 12px;
}
.thesis {
    border-bottom: 1px solid var(--line);
    background: #e9e8dc;
}
.thesis-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.3fr;
    align-items: center;
    gap: 35px;
    padding-top: 36px;
    padding-bottom: 36px;
}
.thesis p {
    margin: 0;
}
.thesis p:nth-child(2) {
    font:
        30px/1.25 Georgia,
        serif;
}
.thesis span {
    font-size: 11px;
    line-height: 1.9;
    color: #50604f;
}
.lab {
    padding-top: 75px;
    padding-bottom: 0;
    scroll-margin-top: 30px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 28px;
}
.section-head h2 {
    margin-bottom: 0;
}
.section-head > p {
    max-width: 370px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.scenario {
    background: #fffdf6;
    border: 1px solid var(--line);
    padding: 25px;
    text-align: left;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}
.scenario.active {
    border-color: var(--ink);
    box-shadow: inset 0 3px 0 var(--ink);
    background: #e8ecdf;
}
.scenario span,
.scenario b {
    font-size: 9px;
    letter-spacing: 1.5px;
}
.scenario strong {
    font:
        25px/1.15 Georgia,
        serif;
    font-weight: 400;
}
.scenario small {
    font-size: 12px;
    line-height: 1.7;
    color: #52614f;
    min-height: 60px;
}
.scenario b {
    margin-top: auto;
}
.setup-row {
    display: grid;
    grid-template-columns: 0.7fr 1fr 1fr auto;
    gap: 20px;
    margin: 30px 0;
    align-items: end;
}
label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}
label span {
    display: block;
    font-size: 9px;
    font-weight: 400;
}
input,
textarea,
select {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #b7c1b0;
    border-radius: 2px;
    background: #fffdf6;
    color: var(--ink);
    font-size: 13px;
}
input {
    min-height: 46px;
}
textarea {
    resize: vertical;
}
#spec-json {
    font-family: monospace;
    font-size: 11px;
}
details {
    font-size: 12px;
    line-height: 1.8;
}
summary {
    cursor: pointer;
    font-weight: 600;
    padding: 10px 0;
}
details p {
    margin-top: 12px;
}
.input-detail {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 5px 0;
}
.input-detail .actions {
    margin: 15px 0;
}
.file-button {
    font-size: 12px;
}
.file-button input {
    max-width: 240px;
    padding: 9px;
}
.status {
    font-size: 12px;
    min-height: 22px;
    line-height: 1.7;
    margin: 18px 0;
    color: #52634f;
}
.status.error {
    color: #942b20;
}
.experiment-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}
.passport {
    padding: 30px;
    background: var(--forest);
    color: var(--paper);
    position: sticky;
    top: 20px;
}
.passport .eyebrow {
    color: #d5bc87;
}
.passport-icon {
    font:
        85px/1 Georgia,
        serif;
    color: var(--gold);
    margin: 15px 0 35px;
}
.passport-icon span {
    font-size: 45px;
    vertical-align: top;
    margin-left: 10px;
}
.passport h3 {
    font-size: 35px;
    word-break: break-word;
}
.passport > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.8;
    color: #c2cbb8;
}
.passport dl {
    margin: 30px 0;
}
.passport dl div {
    padding: 14px 0;
    border-top: 1px solid #ffffff25;
}
.passport dt {
    font-size: 10px;
    color: #b8c4af;
}
.passport dd {
    font-family: monospace;
    font-size: 11px;
    margin: 8px 0 0;
    overflow-wrap: anywhere;
}
.passport .button {
    width: 100%;
}
.micro {
    font-size: 10px !important;
    line-height: 1.8;
    color: #596c56;
    margin: 18px 0 0;
}
.results {
    border: 1px solid var(--line);
    background: #fffdf7;
    padding: 28px;
    min-width: 0;
}
.result-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}
.result-heading .eyebrow {
    margin-bottom: 10px;
}
.result-heading h3 {
    font-size: 27px;
}
.pill {
    font-size: 8px;
    letter-spacing: 1px;
    line-height: 1.6;
    padding: 7px 9px;
    border: 1px solid #c4cdb9;
    white-space: nowrap;
}
.metrics {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    gap: 15px;
}
.metrics span {
    font-size: 10px;
    display: block;
}
.metrics strong {
    display: block;
    font:
        46px/1.2 Georgia,
        serif;
    letter-spacing: -1px;
    margin: 9px 0;
}
.metrics small {
    font-size: 9px;
    line-height: 1.6;
    display: block;
    color: var(--muted);
}
.chart-head {
    margin: 22px 0 10px;
    display: flex;
    align-items: end;
    gap: 20px;
    justify-content: space-between;
}
.chart-head label {
    width: 155px;
    flex-shrink: 0;
}
.legend {
    font-size: 9px;
    line-height: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.legend i {
    display: inline-block;
    width: 10px;
    height: 3px;
    margin-left: 5px;
}
.actual {
    background: #183b2c;
}
.control {
    background: #9b563c;
}
.treatment {
    background: #897021;
}
.chart {
    min-height: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}
.chart svg {
    display: block;
    width: 100%;
    height: auto;
}
.table-scroll {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11px;
}
caption {
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.4px;
    margin: 20px 0 10px;
}
th,
td {
    text-align: right;
    padding: 12px 9px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
th:first-child,
td:first-child {
    text-align: left;
}
th {
    font-size: 9px;
    color: #566750;
}
tr.highlight {
    background: #eaf0df;
}
pre {
    font: 10px/1.7 monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #ecede3;
    padding: 15px;
    max-height: 330px;
    overflow: auto;
}
.review-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    margin-top: 45px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.review-panel p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}
.review-panel h3 {
    font-size: 38px;
}
.timers {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    font-size: 10px;
}
.timers .button {
    padding: 12px;
    font-size: 11px;
    min-height: 44px;
}
.review-form label {
    margin-bottom: 15px;
}
.review-form .actions {
    gap: 8px;
}
.review-form .button {
    padding: 13px;
    font-size: 11px;
}
.verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin: 25px 0;
}
.verdict-grid article {
    padding: 28px;
    background: #e5ebdc;
    border: 1px solid var(--line);
}
.verdict-grid .eyebrow {
    margin-bottom: 16px;
}
.verdict-grid h3 {
    font-size: 42px;
    margin-bottom: 12px;
}
.verdict-grid p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.8;
}
.verdict-grid strong,
.verdict-grid a {
    font-size: 11px;
}
.wide-gate {
    background: #ece9df !important;
}
.wide-gate h3 span {
    display: block;
    font:
        11px Arial,
        sans-serif;
    margin-top: 12px;
}
.contact {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 35px;
    margin: 40px 0;
}
.contact h3 {
    font-size: 25px;
    margin-bottom: 12px;
}
.contact p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
}
.contact ol {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: start;
}
.contact li {
    font-size: 9px;
    line-height: 1.7;
    padding: 18px 8px;
    border-top: 2px solid #c6ccbd;
    color: #52624c;
}
.contact li b {
    display: block;
    font:
        27px Georgia,
        serif;
    margin-bottom: 12px;
}
.contact li.current {
    border-color: var(--ink);
    background: #e4e9d8;
    color: var(--ink);
}
.docket {
    background: var(--forest);
    color: var(--paper);
    padding: 45px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}
.docket .eyebrow {
    color: var(--gold);
}
.docket h2 {
    font-size: 44px;
}
.docket p {
    font-size: 12px;
    line-height: 1.9;
    color: #c8d1be;
}
.docket .actions {
    margin-bottom: 22px;
}
.docket pre {
    background: #1c382a;
    color: #e2dfcc;
}
.reading {
    padding-top: 90px;
    padding-bottom: 85px;
    max-width: 950px;
    text-align: center;
}
.reading p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.9;
    color: #5c6a56;
    margin: 0 auto 26px;
    max-width: 620px;
}
.reading .actions {
    justify-content: center;
}
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    min-height: 115px;
}
footer span:not(.mark),
footer > a:last-child {
    font-size: 9px;
    letter-spacing: 1px;
}
footer .brand {
    font-size: 12px;
}
@media (min-width: 1600px) {
    .hero,
    .masthead {
        padding-left: calc((100vw - 1312px) / 2);
        padding-right: calc((100vw - 1312px) / 2);
    }
}
@media (max-width: 1100px) {
    .wrap {
        padding-left: 35px;
        padding-right: 35px;
    }
    .edition {
        display: none;
    }
    .masthead nav {
        gap: 16px;
    }
    .hero {
        min-height: 590px;
    }
    .thesis-grid {
        gap: 25px;
        grid-template-columns: 1fr 2fr;
    }
    .thesis span {
        display: none;
    }
    .setup-row {
        grid-template-columns: 1fr 1fr;
    }
    .experiment-grid {
        grid-template-columns: 260px 1fr;
    }
    .passport {
        padding: 23px;
    }
    .results {
        padding: 22px;
    }
    .result-heading {
        display: block;
    }
    .result-heading .pill {
        display: inline-block;
        margin-bottom: 15px;
    }
    .review-panel {
        gap: 40px;
    }
    .contact {
        grid-template-columns: 1fr;
    }
    .docket {
        padding: 32px;
        gap: 30px;
    }
    .docket h2 {
        font-size: 36px;
    }
}
@media (max-width: 760px) {
    .wrap {
        padding-left: 22px;
        padding-right: 22px;
    }
    .masthead {
        min-height: 90px;
        flex-wrap: wrap;
        padding-top: 20px;
        padding-bottom: 16px;
        gap: 16px;
    }
    .masthead nav {
        order: 2;
        width: 100%;
        justify-content: space-between;
        font-size: 10px;
        gap: 9px;
    }
    .brand {
        font-size: 12px;
    }
    .brand small {
        font-size: 7px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
        padding-bottom: 30px;
        gap: 0;
    }
    .hero h1 {
        font-size: 77px;
    }
    .hero .lead {
        font-size: 15px;
    }
    .sculpture {
        max-width: 420px;
        margin: 10px auto 0;
    }
    .sculpture svg {
        max-height: 310px;
    }
    .hero .actions {
        gap: 20px;
    }
    .thesis-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        padding-top: 28px;
        padding-bottom: 28px;
    }
    .thesis p:nth-child(2) {
        font-size: 27px;
    }
    .section-head {
        display: block;
    }
    .section-head > p {
        margin-top: 20px;
    }
    .lab {
        padding-top: 45px;
    }
    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .scenario {
        padding: 20px;
        gap: 10px;
    }
    .scenario strong {
        font-size: 24px;
    }
    .scenario small {
        min-height: 0;
    }
    .scenario b {
        margin-top: 5px;
    }
    .setup-row {
        gap: 16px;
    }
    .setup-row .button {
        padding: 12px;
        font-size: 11px;
    }
    .experiment-grid {
        grid-template-columns: 1fr;
    }
    .passport {
        position: static;
        padding: 27px;
    }
    .passport-icon {
        float: right;
        font-size: 60px;
        margin: 20px 0 10px 10px;
    }
    .passport dl {
        margin: 15px 0;
    }
    .passport h3 {
        max-width: 230px;
    }
    .passport .eyebrow {
        font-size: 9px;
    }
    .results {
        padding: 22px 17px;
    }
    .result-heading {
        display: block;
    }
    .metrics strong {
        font-size: 38px;
    }
    .chart-head {
        display: block;
    }
    .legend {
        margin-top: 12px;
        display: flex;
    }
    .chart {
        min-height: 180px;
    }
    .review-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }
    .verdict-grid {
        grid-template-columns: 1fr;
    }
    .contact ol {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .contact li {
        padding: 12px 8px;
    }
    .contact li b {
        font-size: 25px;
        margin-bottom: 5px;
    }
    .docket {
        grid-template-columns: 1fr;
        padding: 28px 23px;
        gap: 15px;
        margin: 0 -22px;
    }
    .docket h2 {
        font-size: 39px;
    }
    .reading {
        padding-top: 60px;
        padding-bottom: 55px;
    }
    .reading h2 {
        font-size: 39px;
    }
    footer {
        padding-top: 25px;
        padding-bottom: 25px;
        flex-wrap: wrap;
    }
    footer > span {
        display: none;
    }
    .button {
        min-height: 46px;
    }
    h2 {
        letter-spacing: -1px;
    }
    input,
    textarea,
    select {
        font-size: 16px;
    }
    #spec-json {
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
    }
}
