:root {
    --ink: #261b29;
    --muted: #675966;
    --accent: #812b60;
    --paper: #faf6f2;
    --line: #e0d6dc;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.8 "PingFang SC", "Microsoft YaHei", sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}
a:focus-visible {
    outline: 3px solid #b94a83;
    outline-offset: 4px;
}
img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
figure, h1, h2, h3, p {
    margin: 0;
}
p {
    color: var(--muted);
}
.wrap {
    max-width: 1240px;
    width: 92%;
    margin: auto;
}
.skip {
    position: absolute;
    left: 12px;
    top: -100px;
    background: white;
    padding: 12px;
    z-index: 2;
}
.skip:focus {
    top: 12px;
}
.mast {
    border-bottom: 1px solid var(--line);
    background: #fffaf7;
}
.mast-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.25;
}
.brand img {
    width: 48px;
    height: 48px;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 5px;
}
.mast nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 14px;
}
.hero {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    margin: 42px 0 64px;
    background: #302034;
    color: #fff6ed;
}
.hero-copy {
    padding: clamp(28px, 5vw, 70px);
    align-self: center;
}
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
}
.hero .eyebrow {
    color: #efb7d3;
}
.hero h1 {
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.3;
    margin: 18px 0;
}
.hero p {
    color: #e6d6df;
}
.hero figure {
    position: relative;
    min-height: 350px;
}
.hero figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
figcaption {
    font-size: 12px;
    color: var(--muted);
    padding: 8px 0;
}
.hero figcaption {
    position: absolute;
    bottom: 0;
    background: #27182dd9;
    color: white;
    padding: 8px 16px;
}
.cta {
    display: inline-block;
    padding: 10px 20px;
    background: #f4c9df;
    color: #382039;
    margin-top: 24px;
    font-weight: 700;
}
section {
    margin-bottom: 52px;
}
.section-head {
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}
h2 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.45;
}
h3 {
    font-size: 21px;
    line-height: 1.5;
    margin: 6px 0 10px;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
}
.feature-main {
    background: #fff;
    border: 1px solid var(--line);
}
.feature-main div {
    padding: 24px;
}
small {
    color: var(--accent);
    font-weight: 700;
}
.stack {
    display: grid;
    gap: 20px;
}
.mini {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}
.mini img {
    aspect-ratio: 4/3;
}
.mini p {
    font-size: 14px;
}
.lab {
    background: #efe4eb;
    padding: clamp(20px, 4vw, 42px);
}
.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.lab-grid img {
    margin-bottom: 14px;
}
.index-list {
    margin: 44px 0;
}
.index-list a {
    display: grid;
    grid-template-columns: 130px 1fr 24px;
    align-items: center;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.index-list a span {
    color: var(--accent);
    font-size: 13px;
}
.about {
    border-left: 4px solid var(--accent);
    padding: 8px 24px;
}
.about p {
    margin-top: 12px;
}
.crumb {
    margin: 24px 0;
    font-size: 14px;
    color: var(--muted);
}
.article {
    max-width: 900px;
    margin: auto;
}
.article header {
    padding: 20px 0 30px;
}
.article h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.35;
    margin: 12px 0;
}
.prose {
    max-width: 760px;
    margin: 40px auto;
}
.prose section {
    margin-bottom: 34px;
}
.prose h2 {
    font-size: 25px;
    margin-bottom: 12px;
}
.prose p {
    font-size: 17px;
    line-height: 2;
}
footer {
    background: #302034;
    color: #fff;
    padding: 35px 0;
}
.foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.foot p {
    color: #e1d3df;
    font-size: 14px;
    margin-top: 8px;
}
.foot a:hover {
    color: #f4c9df;
}
@media (max-width: 850px) {
    .mast-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    .hero, .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero figure {
        min-height: 0;
    }
    .hero figure img {
        height: auto;
    }
    .hero {
        margin-top: 24px;
    }
}
@media (max-width: 540px) {
    .lab-grid, .foot {
        grid-template-columns: 1fr;
    }
    .mini {
        grid-template-columns: 1fr;
    }
    .mini img {
        aspect-ratio: 2.2/1;
    }
    .index-list a {
        grid-template-columns: 85px 1fr 18px;
        gap: 8px;
    }
    .mast nav {
        gap: 8px 16px;
    }
}

.mast nav a[aria-current="page"] {
    color: var(--accent);
    font-weight: 700;
}

.hero > *,
.feature-grid > *,
.lab-grid > * {
    min-width: 0;
}
