* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #171620;
    color: #f3e8da;
    font: 17px/1.85 system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #e4b889;
}

a:focus-visible {
    outline: 2px solid #e4b889;
}

header, main, footer {
    max-width: 1200px;
    margin: auto;
    padding: 28px 5%;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid #48404d;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.brand img {
    width: 48px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

.eyebrow, small {
    color: #d8b58a;
    letter-spacing: .12em;
}

h1 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.35;
    margin: 15px 0;
}

h2 {
    font-size: 27px;
    line-height: 1.5;
}

h3 {
    font-size: 20px;
    line-height: 1.5;
}

p {
    color: #ded5d5;
}

.index {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    border-top: 1px solid #514555;
    padding-top: 28px;
}

.studies {
    display: grid;
    gap: 24px;
}

.study {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #514555;
    align-items: start;
}

.study h3 {
    margin: 0;
}

.study p {
    margin: 8px 0;
}

.palette {
    display: flex;
    height: 18px;
    margin-top: 10px;
}

.palette span {
    flex: 1;
}

article.detail {
    max-width: 820px;
    margin: auto;
}

.detail img {
    margin: 28px 0;
}

footer {
    border-top: 1px solid #514555;
    color: #c5b9c5;
}


figure {
    margin: 0;
    min-width: 0;
}
.hero > *, .index > *, .study > * {
    min-width: 0;
}
.study img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #24212d;
}
.topic-nav {
    display: grid;
    gap: 12px;
}
.topic-nav a, .method-steps li {
    padding: 10px 0;
    border-bottom: 1px solid #514555;
}
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    background: #171620;
    padding: 12px;
    z-index: 10;
}
.skip-link:focus {
    top: 12px;
}
#method {
    margin-top: 48px;
}
@media (max-width: 720px) {
    .hero, .index, .study {
        grid-template-columns: minmax(0, 1fr);
    }
    header, main, footer {
        padding: 20px 5%;
    }
    nav {
        gap: 14px;
    }
    .topic-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero {
        gap: 24px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
