* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --ink: #293c35;
    --paper: #fffaf2;
    --green: #45665b;
    --peach: #f4ad91;
}

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;
}

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

.wrap {
    width: min(1180px, 92%);
    margin: auto;
}

header {
    border-bottom: 1px solid #ded7c9;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
}

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

nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: center;
    padding: 54px 0;
}

.kicker {
    font-size: 13px;
    letter-spacing: .15em;
    font-weight: 700;
    color: #80503e;
}

h1,h2,h3 {
    line-height: 1.35;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(30px,4vw,50px);
    letter-spacing: -.035em;
}

h2 {
    font-size: clamp(24px,3vw,34px);
}

p {
    margin: 0 0 18px;
}

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

.hero figure {
    margin: 0;
    background: white;
    padding: 14px;
    box-shadow: 0 12px 32px #463a2514;
    transform: rotate(1deg);
}

.hero figure img {
    width: 100%;
}

figcaption {
    font-size: 13px;
    padding: 8px 0 0;
    color: #51635a;
}

.button {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
}

.shelf {
    padding: 36px 0 56px;
}

.entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    border-top: 1px solid #ded7c9;
    padding: 28px 0;
}

.entry:nth-of-type(even) .picture {
    order: 2;
}

.picture img {
    width: 100%;
    border-radius: 20px 4px 20px 4px;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.entry h3 {
    font-size: 25px;
}

.note {
    background: #e1e9dd;
    padding: 36px;
    border-radius: 4px 40px 4px 40px;
    margin-bottom: 48px;
}

.article {
    max-width: 820px;
    padding: 36px 0 56px;
}

.article figure {
    margin: 24px 0;
}

.article figure img {
    width: 100%;
    border-radius: 14px;
}

.article section {
    margin: 32px 0;
}

footer {
    background: #293c35;
    color: #fffaf2;
    padding: 32px 0;
}

footer p {
    margin: 8px 0;
}

@media (max-width: 700px) {
    .hero,.entry {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero {
        padding: 32px 0;
    }
    .entry:nth-of-type(even) .picture {
        order: 0;
    }
    .hero figure {
        transform: none;
    }
    .note {
        padding: 24px;
    }
    nav {
        gap: 12px;
    }
}

/* Navigation and narrow viewport safeguards */
.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    transform: translateY(-200%);
    background: white;
    padding: 8px 16px;
    z-index: 10;
}

.skip-link:focus {
    transform: none;
}

nav a[aria-current="page"] {
    text-decoration: underline;
    font-weight: 700;
}

.hero > *, .entry > * {
    min-width: 0;
}

.site-scope {
    font-size: 14px;
    color: #51635a;
}

@media (max-width: 700px) {
    .hero h1 {
        font-size: clamp(26px, 6vw, 34px);
        overflow-wrap: anywhere;
    }
}
