* {
    box-sizing: border-box;
}
:root {
    color-scheme: light;
    --ink: #18362e;
    --green: #14483e;
    --paper: #f5f4ee;
    --gold: #c6a369;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.85 system-ui, "Microsoft YaHei", sans-serif;
}
a {
    color: inherit;
    text-underline-offset: 4px;
}
.wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 24px;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    font-weight: 750;
    font-size: 20px;
    line-height: 1.4;
}
.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
nav a {
    text-decoration: none;
    font-size: 14px;
}
.hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: var(--green);
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.intro {
    padding: clamp(24px, 4vw, 60px);
}
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #806332;
    margin: 0 0 12px;
}
.hero .eyebrow {
    color: #e7cb99;
}
h1,h2,h3,p {
    overflow-wrap: anywhere;
}
h1 {
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.22;
    margin: 0;
}
h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.4;
    margin: 0 0 22px;
}
h3 {
    font-size: 19px;
    line-height: 1.45;
    margin: 10px 0;
}
p {
    margin: 0 0 14px;
}
.lead {
    font-size: 21px;
    color: #e7cb99;
    margin-top: 20px;
}
figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
figure img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    flex: 1;
}
figcaption {
    font-size: 11px;
    padding: 8px 14px;
    background: #0d382f;
    color: #e6e6dc;
}
.btn,button {
    display: inline-block;
    border: 0;
    border-radius: 4px;
    padding: 12px 20px;
    background: #e5c78d;
    color: #18362e;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    border-bottom: 1px solid #c9d0c6;
    padding: 22px 0;
}
.strip b {
    color: #806332;
    margin-right: 8px;
}
main > section:not(.hero):not(.strip) {
    margin-block: 56px;
    scroll-margin-top: 20px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}
.cards article {
    background: #fff;
    padding: 23px;
    border-top: 3px solid var(--green);
}
.num,.note {
    font-size: 13px;
    color: #53665d;
}
.workspace {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    background: #e3ebe3;
    padding: clamp(20px,4vw,48px);
    border-radius: 8px;
}
form {
    display: grid;
    gap: 14px;
    min-width: 0;
}
label {
    display: grid;
    gap: 5px;
    font-weight: 600;
}
input[type=number] {
    width: 100%;
    padding: 12px;
    border: 1px solid #81968b;
    border-radius: 4px;
    font: inherit;
    background: white;
}
.check {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}
.check input {
    margin-top: 7px;
}
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.secondary {
    background: white;
}
output {
    display: block;
    padding: 14px;
    background: #fff;
    border-left: 3px solid var(--green);
    overflow-wrap: anywhere;
}
.source-list {
    display: grid;
    gap: 12px;
}
.source-list article {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    background: white;
}
.source-list p {
    margin: 0;
}
details {
    border-bottom: 1px solid #c9d0c6;
    padding: 16px 0;
}
summary {
    cursor: pointer;
    font-weight: 700;
}
details p {
    margin: 12px 0 0;
}
footer {
    background: #163a31;
    color: white;
    padding: 30px 0;
}
.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.foot p {
    margin: 0;
    font-size: 14px;
}
.skip {
    position: absolute;
    left: 8px;
    top: -100px;
}
.skip:focus {
    top: 8px;
    background: white;
    z-index: 2;
}
:focus-visible {
    outline: 3px solid #b17a28;
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2,1fr);
    }
    .hero,.workspace {
        grid-template-columns: 1fr;
    }
    figure img {
        height: auto;
        aspect-ratio: 3/2;
    }
}
@media (max-width: 600px) {
    .wrap {
        width: calc(100% - 32px);
    }
    .top {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
    nav {
        gap: 14px;
    }
    .strip {
        grid-template-columns: repeat(2,1fr);
        font-size: 13px;
    }
    .cards,.source-list article {
        grid-template-columns: 1fr;
    }
    .source-list article {
        gap: 6px;
    }
    main > section:not(.hero):not(.strip) {
        margin-block: 36px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
.hero-tip {
    border-left: 3px solid var(--gold);
    padding-left: 14px;
    font-size: 14px;
}
.check-grid, .case-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: white;
    border: 1px solid #c9d0c6;
    border-radius: 6px;
}
.check-item input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: var(--green);
}
.check-item small {
    display: block;
    font-weight: 400;
    margin-top: 6px;
}
.case-grid article {
    background: white;
    padding: 22px;
    border-left: 3px solid var(--gold);
}
.quote-grid {
    display: grid;
    gap: 10px;
}
.quote-source {
    background: #f5f4ee;
    padding: 14px;
    min-width: 0;
    border-radius: 5px;
}
.quote-source h3 {
    margin-top: 0;
}
input[type=datetime-local] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #81968b;
    border-radius: 4px;
    font: inherit;
    background: white;
}
.workflow {
    padding: 20px 24px 20px 46px;
    background: white;
    border-left: 3px solid var(--green);
}
.workflow li {
    margin-bottom: 12px;
}
@media (max-width:600px) {
    .check-grid, .case-grid {
        grid-template-columns: 1fr;
    }
}
