/* SPDX-License-Identifier: Apache-2.0 */
:root {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #203c32;
    background: #f4f2e9;
    font-synthesis: none;
    line-height: 1.55;
    --green: #173c31;
    --gold: #d5e6a1;
    --muted: #5e7167;
    --line: #ced5c7;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
    text-underline-offset: 4px;
}
button,
input,
select {
    font: inherit;
}
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #9c591b;
    outline-offset: 4px;
}
.skip {
    position: absolute;
    left: 12px;
    top: -80px;
    padding: 12px;
    background: white;
    z-index: 10;
}
.skip:focus {
    top: 12px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 5vw;
    border-bottom: 1px solid var(--line);
}
.brand {
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}
.brand span {
    font-family: Georgia, serif;
    font-size: 30px;
    margin-right: 12px;
}
nav {
    display: flex;
    gap: 25px;
    font-size: 13px;
    flex-wrap: wrap;
}
main {
    max-width: 1400px;
    margin: auto;
    padding: 38px 5vw 70px;
}
.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    background: var(--green);
    color: #f4f2e9;
    padding: 60px 50px;
    border-radius: 6px;
}
.eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 600;
}
.hero .eyebrow {
    color: var(--gold);
}
h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 5.5vw, 78px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 22px 0;
}
h1 em {
    color: var(--gold);
    font-weight: 400;
}
.hero p {
    max-width: 550px;
}
.hero-aside {
    border-left: 1px solid #5f7d69;
    padding-left: 35px;
    align-self: center;
}
.hero-aside strong {
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 400;
}
.hero-aside p {
    font-size: 14px;
    color: #d3e1d5;
}
.badge {
    border: 1px solid #738970;
    display: inline-block;
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 3px;
}
.hero a {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--gold);
    color: #173c31;
    font-size: 13px;
    font-weight: 650;
    border-radius: 3px;
    text-decoration: none;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 25px 0 50px;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.metric {
    padding: 24px;
    border-right: 1px solid var(--line);
}
.metric:last-child {
    border: 0;
}
.metric span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}
.metric strong {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    display: block;
    margin: 8px 0;
}
.metric small {
    color: var(--muted);
    font-size: 11px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 45px 0 20px;
}
h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.12;
    margin: 7px 0;
}
h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}
.section-heading p {
    font-size: 13px;
    max-width: 420px;
    color: var(--muted);
}
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.panel {
    padding: 28px;
    background: #fcfbf5;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 6px;
}
input,
select {
    color: #173c31;
    background: #fff;
    border: 1px solid #9faa9a;
    border-radius: 3px;
    padding: 10px;
    min-width: 0;
    width: 100%;
}
output {
    font-family: Georgia, serif;
    display: block;
    font-size: 30px;
    margin-top: 20px;
}
.note {
    font-size: 12px;
    color: var(--muted);
}
.result {
    padding: 18px 22px;
    background: #e6ecd9;
    border-left: 3px solid #6d8553;
    margin: 22px 0;
    font-size: 14px;
}
.trace-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}
.trace-controls {
    position: sticky;
    top: 20px;
}
.trace-controls p {
    font-size: 13px;
    margin: 18px 0;
}
.trace-controls small {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.trace-row {
    padding: 22px;
    background: #fcfbf5;
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 12px;
    min-width: 0;
}
.trace-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
}
.trace-title small {
    font-weight: 400;
    color: var(--muted);
    font-size: 11px;
}
.trace-row p {
    font-size: 13px;
    margin: 9px 0;
}
.trace-row code {
    font-size: 12px;
    display: block;
    overflow-wrap: anywhere;
    color: #526258;
}
details {
    margin-top: 12px;
    font-size: 12px;
}
summary {
    cursor: pointer;
}
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 11px;
    padding: 15px;
    background: #e9eee2;
}
#status {
    font-size: 12px;
    margin-bottom: 18px;
}
.boundary {
    margin-top: 45px;
    border-top: 1px solid var(--line);
    padding-top: 25px;
}
.boundary ul {
    padding-left: 20px;
    font-size: 13px;
    max-width: 930px;
}
.boundary li {
    margin: 9px 0;
}
footer {
    border-top: 1px solid var(--line);
    padding: 25px 5vw;
    font-size: 12px;
    display: flex;
    gap: 25px;
    justify-content: space-between;
    flex-wrap: wrap;
}
#trace {
    min-width: 0;
}
@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 15px;
    }
    .hero-aside {
        border-left: 0;
        border-top: 1px solid #5f7d69;
        padding: 20px 0 0;
    }
    .hero-aside strong {
        font-size: 30px;
    }
    .metrics {
        grid-template-columns: 1fr 1fr;
    }
    .metric:nth-child(2) {
        border-right: 0;
    }
    .metric:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
    .work-grid,
    .trace-layout {
        grid-template-columns: 1fr;
    }
    .trace-controls {
        position: static;
    }
    .section-heading {
        display: block;
    }
    header {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }
    nav {
        gap: 18px;
    }
    main {
        padding-top: 22px;
    }
    h2 {
        font-size: 30px;
    }
    .panel {
        padding: 20px;
    }
    .trace-title {
        flex-direction: column;
        gap: 3px;
    }
}
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
