:root {
    --brand: #ff914d;
    --brand-dark: #d96b2b;
    --cream: #fdf6f0;
    --cream-strong: #ffe5d0;
    --ink: #333;
    --white: #fff;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.header {
    background-color: var(--brand);
    padding: 10px clamp(12px, 3vw, 32px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
}

.logo,
.header-dog {
    width: clamp(72px, 13vw, 150px);
    height: clamp(72px, 13vw, 150px);
    object-fit: cover;
}

.header-dog {
    border-radius: 50%;
    border: 3px solid var(--white);
}

.header-text {
    text-align: center;
    color: var(--white);
}

.header-text h1 {
    margin: 0;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.05;
}

.header-text p {
    margin: 4px 0 0;
    font-size: clamp(14px, 2.5vw, 18px);
}

nav {
    background: var(--ink);
    padding: 10px;
    text-align: center;
    position: sticky;
    top: calc(clamp(72px, 13vw, 150px) + 20px);
    z-index: 900;
}

nav a {
    color: var(--white);
    display: inline-block;
    margin: 4px 12px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover,
nav a:focus-visible {
    text-decoration: underline;
}

.hero {
    padding: clamp(28px, 6vw, 56px) 20px;
    text-align: center;
    background: var(--cream-strong);
}

.hero h2,
.section h2 {
    margin: 0 0 12px;
}

.hero p {
    margin: 0 auto;
    max-width: 720px;
}

.section {
    padding: clamp(32px, 6vw, 56px) 20px;
    text-align: center;
}

.dogs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 250px));
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.dog-card {
    background: var(--white);
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.dog-card:hover,
.dog-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.dog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.dog-card h3 {
    margin: 12px 0 5px;
}

.dog-card p {
    margin: 8px 0;
}

.contact a {
    color: var(--brand-dark);
    font-weight: bold;
}

.detail-main {
    padding: clamp(28px, 6vw, 56px) 20px;
}

.detail-card {
    background: var(--white);
    border-radius: 8px;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--shadow);
    text-align: center;
}

.detail-card img {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 20px;
}

.button {
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
    color: var(--white);
    background: var(--brand);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.button:hover,
.button:focus-visible {
    background: var(--brand-dark);
}

footer {
    background: var(--ink);
    color: var(--white);
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 0;
}

@media (max-width: 620px) {
    .logo-container {
        align-items: center;
    }

    .header-text h1 {
        font-size: 30px;
    }

    .header-text p {
        max-width: 160px;
    }

    nav {
        top: calc(clamp(72px, 13vw, 150px) + 20px);
    }

    nav a {
        margin: 4px 8px;
        font-size: 14px;
    }
}
