* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #493b38;
    background: #fff8f0;
    line-height: 1.85;
}

a {
    color: #875044;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid #53755b;
    outline-offset: 4px;
}

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

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 5%;
    background: #fffdf8;
    border-bottom: 1px solid #ead6c8;
}

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

small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
}

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

.wrap {
    max-width: 1240px;
    margin: auto;
    padding: 36px 22px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 36px;
    background: #f8e3d6;
    padding: 38px;
    border-radius: 8px 80px 8px 8px;
}

h1 {
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1.35;
    margin: 12px 0 20px;
}

h2 {
    font-size: 26px;
    line-height: 1.4;
}

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

.eyebrow {
    color: #59755c;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
}

figure {
    margin: 0;
    background: #fffdf8;
    padding: 12px;
}

.hero figure {
    transform: rotate(2deg);
    box-shadow: 0 8px 25px #79503b19;
}

figure img {
    width: 100%;
}

figcaption {
    font-size: 13px;
    text-align: center;
    padding: 8px;
}

.cta {
    display: inline-block;
    padding: 10px 22px;
    background: #825046;
    color: white;
    border-radius: 4px;
}

#themes {
    margin: 45px 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tabs a {
    background: #fff;
    border: 1px solid #e6cfc1;
    padding: 8px 16px;
    border-radius: 20px;
}

.editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
}

.stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.story {
    background: #fffdf9;
    border: 1px solid #ead8cb;
    border-radius: 6px;
    overflow: hidden;
}

.story img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}

.copy {
    padding: 18px;
}

.story h3 {
    margin: 5px 0;
}

.tag {
    font-size: 12px;
    color: #476b50;
}

aside {
    background: #e7eddf;
    padding: 22px;
    border-radius: 4px 30px 4px 4px;
}

.articlepage {
    max-width: 820px;
    margin: auto;
    padding: 32px 22px;
}

.articlepage figure {
    max-width: 540px;
}

.lead {
    font-size: 19px;
}

footer {
    text-align: center;
    background: #f0dfd2;
    padding: 32px 20px;
    font-size: 14px;
}

@media (max-width: 760px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero, .editorial {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 24px;
        gap: 24px;
    }

    .hero figure {
        transform: none;
    }
}

@media (max-width: 480px) {
    .stories {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 12px;
    }
}

/* Accessibility and responsive layout */
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    background: white;
    padding: 12px;
    z-index: 10;
}
.skip-link:focus {
    top: 12px;
}
.hero > div, .editorial > section {
    min-width: 0;
}
.story:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
@media (max-width: 480px) {
    .story:last-child:nth-child(odd) {
        grid-template-columns: 1fr;
    }
    .hero {
        border-radius: 8px 36px 8px 8px;
    }
}
