:root {
    --ink: #29332f;
    --ink-soft: #55625c;
    --cream: #fffaf0;
    --paper: rgba(255, 253, 246, 0.94);
    --green: #3f7158;
    --green-dark: #28513d;
    --leaf: #7ca66f;
    --blush: #d98788;
    --gold: #d9ad55;
    --lavender: #8b78aa;
    --shadow: 0 18px 50px rgba(40, 81, 61, 0.14);
    --radius: 1.3rem;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Trebuchet MS", system-ui, sans-serif;
    background:
        radial-gradient(circle at 15% 5%, rgba(217, 173, 85, .18), transparent 24rem),
        radial-gradient(circle at 90% 12%, rgba(139, 120, 170, .18), transparent 28rem),
        linear-gradient(160deg, #f9f3df, #eaf3e6 52%, #eee7f5);
}

a { color: inherit; }

.site-header,
.site-footer,
main {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--green-dark);
    font-family: Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 2px solid var(--leaf);
    border-radius: 50%;
    background: var(--cream);
}

.site-nav {
    display: flex;
    gap: 1.2rem;
}

.site-nav a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--blush);
}

.logout-form {
    margin: 0;
}

.logout-button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.logout-button:hover,
.logout-button:focus-visible {
    color: var(--blush);
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 2rem;
    align-items: center;
    min-height: 31rem;
    padding: clamp(2rem, 7vw, 5rem);
    overflow: hidden;
    border: 1px solid rgba(63, 113, 88, .18);
    border-radius: calc(var(--radius) * 1.5);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 .65rem;
    color: var(--blush);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1, h2 {
    color: var(--green-dark);
    font-family: Georgia, serif;
    line-height: 1.08;
}

h1 {
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 5.7rem);
}

h1 span { color: var(--lavender); }

.hero__lede {
    max-width: 42rem;
    margin: 1.3rem 0 2rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.button {
    display: inline-block;
    padding: .85rem 1.2rem;
    border: 2px solid var(--green);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(40, 81, 61, .16);
}

.button--primary {
    color: white;
    background: var(--green);
}

.button--quiet {
    color: var(--green-dark);
    background: transparent;
}

.hero__emblem {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid rgba(124, 166, 111, .45);
    border-radius: 45% 55% 50% 50%;
    color: var(--green-dark);
    background: linear-gradient(145deg, #f5eabf, #cfe3c9);
    transform: rotate(4deg);
}

.hero__paw {
    font-size: clamp(3rem, 8vw, 6rem);
    transform: rotate(-4deg);
}

.hero__leaf {
    position: absolute;
    top: 4%;
    right: 10%;
    color: var(--green);
    font-size: 3rem;
}

.world-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 5rem clamp(1rem, 5vw, 4rem);
}

.world-intro h2,
.feature-card h2,
.page-card h1 {
    margin: 0 0 .8rem;
    font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.world-intro p,
.feature-card p,
.page-card p {
    color: var(--ink-soft);
    line-height: 1.7;
}

blockquote {
    margin: 0;
    padding: 2rem;
    border-left: .4rem solid var(--gold);
    border-radius: .7rem;
    color: var(--green-dark);
    background: rgba(255, 250, 240, .65);
    font: italic 1.25rem/1.6 Georgia, serif;
}

blockquote cite {
    display: block;
    margin-top: .8rem;
    color: var(--ink-soft);
    font: normal .9rem/1.4 "Trebuchet MS", sans-serif;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 5rem;
}

.feature-card,
.page-card {
    padding: 2rem;
    border: 1px solid rgba(63, 113, 88, .16);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(40, 81, 61, .08);
}

.feature-card__icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: .9rem;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--lavender);
    font-size: 1.35rem;
}

.feature-card h2 { font-size: 1.45rem; }

.narrow-page {
    max-width: 800px;
    padding: 4rem 0 7rem;
}

.page-card h1 { font-size: clamp(2.2rem, 6vw, 4rem); }

.checklist {
    padding: 0;
    margin: 2rem 0;
    list-style: none;
}

.checklist li {
    padding: .75rem .9rem;
    border-bottom: 1px solid rgba(63, 113, 88, .13);
}

.checklist li::before {
    content: "○";
    display: inline-block;
    width: 1.6rem;
    color: var(--blush);
    font-weight: 900;
}

.checklist li.done::before {
    content: "✓";
    color: var(--green);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(63, 113, 88, .2);
    color: var(--ink-soft);
    font-size: .9rem;
}

@media (max-width: 760px) {
    .hero,
    .world-intro,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero__emblem {
        width: min(15rem, 70%);
        justify-self: center;
    }

    .world-intro { padding-block: 3.5rem; }
}

@media (max-width: 480px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav { gap: .8rem; }
    .hero { padding: 2rem 1.3rem; }
}

/* My Pets page */

.pet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.pet-card {
    overflow: hidden;
    padding: 1.4rem;
    border: 1px solid rgba(63, 113, 88, .18);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .72);
    box-shadow: 0 7px 20px rgba(40, 81, 61, .08);
}

.pet-card__colors {
    display: flex;
    gap: .65rem;
    margin-bottom: 1.1rem;
}

.pet-color {
    display: block;
    width: 2.6rem;
    height: 2.6rem;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(40, 81, 61, .18),
        0 3px 8px rgba(40, 81, 61, .13);
}

.pet-card h2 {
    margin: 0;
    color: var(--green-dark);
    font: 700 1.7rem/1.2 Georgia, serif;
}

.pet-card .pet-card__species {
    margin: .35rem 0 1.1rem;
    color: var(--ink-soft);
    font-size: .95rem;
}

.pet-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .55rem 1rem;
    margin: 0;
}

.pet-details dt {
    color: var(--green-dark);
    font-weight: 700;
}

.pet-details dd {
    margin: 0;
    color: var(--ink-soft);
}

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

/* Pet portraits */

.pet-card__portrait,
.pet-card__portrait-placeholder {
    display: block;
    width: min(100%, 18rem);
    aspect-ratio: 1;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius);
}

.pet-card__portrait {
    object-fit: contain;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, .9),
            rgba(220, 238, 226, .65)
        );
}

.pet-card__portrait-placeholder {
    display: grid;
    place-content: center;
    gap: .5rem;
    border: 2px dashed rgba(63, 113, 88, .25);
    background: rgba(220, 238, 226, .35);
    color: var(--ink-soft);
    text-align: center;
}

.pet-card__portrait-placeholder span:first-child {
    font-size: 3rem;
}