* {
    box-sizing: border-box;
}

:root {
    --paper: #fcf8f2;
    --ink: #253e37;
    --rose: #a63f60;
    --line: #e0d7cb;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.8 system-ui, "Microsoft YaHei", sans-serif;
}

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

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 4px;
}

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

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

header {
    border-bottom: 1px solid var(--line);
}

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

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

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

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

.hero img {
    width: 100%;
    border-radius: 48% 48% 8px 8px / 30% 30% 8px 8px;
}

h1 {
    font-size: clamp(27px, 4vw, 45px);
    line-height: 1.35;
    margin: 12px 0;
}

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

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

.eyebrow {
    color: var(--rose);
    letter-spacing: .15em;
    font-size: 13px;
    font-weight: 700;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    background: var(--ink);
    color: white;
}

.section {
    padding: 30px 0 48px;
    border-top: 1px solid var(--line);
}

.catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.tile {
    border: 1px solid var(--line);
    background: #fffdf9;
    padding: 16px;
}

.tile img {
    width: 100%;
    aspect-ratio: 2.55;
    object-fit: cover;
}

.tile h3 {
    margin: 12px 0 4px;
}

.tile p {
    margin: 0 0 12px;
}

.notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

main > article {
    max-width: 790px;
    margin: 40px auto;
}

article > img {
    width: 100%;
}

footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    font-size: 14px;
}

small {
    color: #625e57;
}

@media (max-width: 760px) {
    .hero, .notes {
        grid-template-columns: 1fr;
    }
    .catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    nav {
        gap: 12px;
    }
}

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

.tile {
    min-width: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    padding: 8px 16px;
    background: var(--ink);
    color: white;
    z-index: 10;
}

.skip-link:focus {
    top: 1rem;
}

.hero > div {
    min-width: 0;
}
