:root {
    color-scheme: light;
    --paper: #f7f6f2;
    --surface: #fffefa;
    --ink: #292b27;
    --muted: #77796f;
    --line: #deded4;
    --accent: #a18b5d;
    --deep: #353a31;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Aptos", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 10;
    padding: .7rem 1rem;
    background: var(--deep);
    color: white;
}
.skip-link:focus { top: 1rem; }
.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 254, 250, .94);
}
.header-inner {
    width: min(1160px, calc(100% - 48px));
    min-height: 106px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex-shrink: 0; }
.brand-name, .footer-brand {
    font-family: var(--serif);
    font-size: 1.72rem;
    letter-spacing: .16em;
    font-weight: 600;
}
.brand-tagline { margin-top: 9px; color: var(--muted); font-size: .62rem; letter-spacing: .2em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 25px; }
.main-nav a { padding: 8px 0; color: #55574f; font-size: .88rem; text-decoration: none; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav .nav-current { color: var(--accent); }
.main-nav .nav-current { box-shadow: inset 0 -1px var(--accent); }
.menu-toggle { display: none; }
main { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.intro { padding: clamp(70px, 11vw, 130px) 0 52px; text-align: center; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .19em; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
.intro h1 { margin: 0; font-size: clamp(2.65rem, 6vw, 4.75rem); letter-spacing: -.035em; }
.intro-copy { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.intro-rule { display: block; width: 42px; height: 1px; margin: 34px auto 0; background: var(--accent); }
.home-carousel {
    position: relative;
    left: 50%;
    width: 100vw;
    height: calc(100svh - 106px);
    min-height: 540px;
    max-height: 900px;
    margin: 0 0 0;
    overflow: hidden;
    transform: translateX(-50%);
    isolation: isolate;
    background: #252721;
}
.carousel-track, .carousel-slide { position: absolute; inset: 0; }
.carousel-slide { display: grid; place-items: center; overflow: hidden; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.carousel-slide::before, .carousel-slide::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.carousel-slide::before { z-index: -2; background-image: var(--slide-image); background-position: center var(--slide-focus-y, 68%); background-size: cover; filter: blur(22px) brightness(.48); transform: scale(1.08); }
.carousel-slide::after { z-index: 0; background: linear-gradient(90deg, rgba(17, 19, 16, .68) 0%, rgba(17, 19, 16, .34) 42%, rgba(17, 19, 16, .08) 100%), linear-gradient(0deg, rgba(17, 19, 16, .36), transparent 30%); }
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-slide .carousel-image { position: relative; z-index: -1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center 68%; }
.carousel-copy { position: absolute; z-index: 1; top: 50%; left: max(8vw, calc((100vw - 1160px) / 2)); max-width: 700px; color: #fff; transform: translateY(-50%); pointer-events: none; }
.carousel-eyebrow { margin: 0 0 18px; color: #e1d2b2; font-size: .76rem; font-weight: 700; letter-spacing: .22em; }
.carousel-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(4rem, 9vw, 8.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .96; text-shadow: 0 3px 28px rgba(0, 0, 0, .18); }
.carousel-tagline { margin: 26px 0 0; font-size: clamp(.8rem, 1.5vw, 1.05rem); letter-spacing: .12em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.carousel-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(41, 43, 39, .36);
    color: white;
    font: inherit;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}
.carousel-control:hover, .carousel-control:focus-visible { background: rgba(41, 43, 39, .72); }
.carousel-control:active { transform: translateY(-50%) scale(.96); }
.carousel-control span { margin-top: -5px; font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.carousel-previous { left: clamp(16px, 4vw, 56px); }
.carousel-next { right: clamp(16px, 4vw, 56px); }
.carousel-footer {
    position: absolute;
    z-index: 2;
    right: clamp(20px, 5vw, 72px);
    bottom: 24px;
    left: clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.carousel-counter { font-size: .78rem; letter-spacing: .12em; }
.carousel-dots { display: flex; align-items: center; gap: 9px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: 1px solid white; border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.carousel-dot.is-active { background: white; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) {
    .carousel-slide, .carousel-control, .carousel-dot { transition: none; }
}
.news-cover {
    min-height: 220px;
    max-height: 440px;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eeede6;
}
.news-cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 440px; object-fit: contain; }
.news-section { min-height: 270px; }
.empty-state {
    min-height: 300px;
    padding: 42px 24px 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.empty-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 25px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 1.05rem;
    letter-spacing: .08em;
}
.empty-state .eyebrow { margin-bottom: 8px; }
.empty-state h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.empty-copy { max-width: 440px; margin: 13px auto 20px; color: var(--muted); }
.contact-link { color: var(--deep); font-size: .9rem; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.contact-link span { margin-left: 5px; color: var(--accent); }
.news-list { display: grid; gap: 24px; padding: 10px 0 54px; }
.news-card { overflow: hidden; display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; border: 1px solid var(--line); background: var(--surface); }
.news-image { width: 100%; height: 100%; min-height: 260px; object-fit: contain; background: #eeede6; }
.news-content { padding: clamp(24px, 4vw, 48px); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .78rem; }
.news-meta span { color: var(--accent); }
.news-content h2 { margin: 12px 0; font-size: clamp(1.65rem, 3.5vw, 2.45rem); }
.news-excerpt { color: var(--muted); font-size: 1.05rem; }
.page-feature {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) 1.1fr;
    align-items: stretch;
    margin: 8px 0 70px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.feature-image { width: 100%; height: 100%; min-height: 360px; max-height: 560px; object-fit: contain; background: #eeede6; }
.feature-copy { padding: clamp(28px, 5vw, 62px); align-self: center; }
.feature-copy h2 { margin: 0 0 20px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.feature-copy > p:last-child { color: #55574f; white-space: normal; }
.home-introduction { max-width: 800px; margin: 0 auto; padding: clamp(68px, 9vw, 112px) 24px clamp(60px, 8vw, 96px); text-align: center; }
.home-introduction h2, .section-heading h2, .home-next-steps h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.035em; }
.home-introduction > p:not(.eyebrow) { max-width: 700px; margin: 20px auto 0; color: #64665e; font-size: 1.04rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); font-size: .92rem; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.home-introduction .text-link { margin-top: 26px; }
.text-link span, .home-feature-link span { color: var(--accent); }
.home-discover { margin: 0 0 clamp(60px, 9vw, 110px); }
.section-heading { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.home-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-feature-card { overflow: hidden; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.home-feature-card:hover, .home-feature-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 36px #292b2718; }
.home-feature-image { height: 230px; display: grid; place-items: center; overflow: hidden; padding: 12px; background: #eeede6; }
.home-feature-image img { width: 100%; height: 100%; object-fit: contain; }
.home-feature-placeholder { color: var(--accent); font-family: var(--serif); font-size: 1.25rem; letter-spacing: .16em; }
.home-feature-copy { min-height: 244px; padding: 22px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.home-feature-copy .eyebrow { margin-bottom: 9px; font-size: .62rem; }
.home-feature-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.17; }
.home-feature-description { margin-top: 12px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.home-feature-link { margin-top: auto; padding-top: 20px; color: var(--deep); font-size: .85rem; }
.home-next-steps { margin: 0 0 28px; padding: clamp(28px, 5vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #eeede6; }
.home-next-steps h2 { max-width: 560px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.home-next-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.home-newsletter, .page-copy, .profile-details {
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--line);
    background: var(--surface);
}
.home-newsletter { margin: 0 0 70px; text-align: center; }
.home-newsletter h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.home-newsletter p { color: var(--muted); }
.button-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--deep); color: #fff; text-decoration: none; transition: background .2s ease; }
.button-link:hover, .button-link:focus-visible { background: #4a5145; }
.dog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 10px 0 70px; }
.dog-card { position: relative; overflow: hidden; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.dog-card:hover, .dog-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 28px #292b2716; }
.dog-card-image { height: 210px; display: grid; place-items: center; padding: 10px; background: #eeede6; }
.dog-card-image img { width: 100%; height: 100%; object-fit: contain; }
.dog-card-title { min-height: 64px; padding: 15px 38px 15px 16px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; }
.dog-card-arrow { position: absolute; right: 14px; bottom: 17px; color: var(--accent); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 25px; align-items: start; margin: 0 0 28px; }
.profile-gallery, .page-gallery, .archive-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.profile-gallery a, .page-gallery a, .archive-gallery a { min-height: 180px; display: grid; place-items: center; padding: 8px; background: #eeede6; }
.profile-gallery img, .page-gallery img, .archive-gallery img { width: 100%; height: 100%; max-height: 360px; object-fit: contain; }
.profile-gallery a:first-child { grid-column: 1 / -1; }
.profile-details { overflow-wrap: anywhere; }
.profile-details p, .page-copy p { margin: 0 0 18px; white-space: normal; }
.profile-details p:last-child, .page-copy p:last-child { margin-bottom: 0; }
.back-link { margin: 0 0 62px; }
.back-link a { color: var(--deep); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.content-layout { margin: 0 0 70px; }
.page-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.page-copy { white-space: normal; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.related-links a { padding: 12px 15px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.related-links a span { float: right; color: var(--accent); }
.news-archive { display: grid; gap: 12px; margin: 0 0 30px; }
.archive-entry { padding: clamp(17px, 3vw, 28px); border: 1px solid var(--line); background: var(--surface); }
.archive-entry p { margin: 0; white-space: normal; }
.archive-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 70px; }
.site-footer { overflow-wrap: anywhere; }
.contact-strip {
    margin: 10px 0 76px;
    padding: 36px clamp(24px, 5vw, 58px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #eeede6;
}
.contact-strip .eyebrow { margin-bottom: 5px; }
.contact-strip h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.contact-actions a { color: var(--deep); font-size: .92rem; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.site-footer {
    padding: 30px 24px 38px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: .8rem;
}
.footer-brand { color: var(--ink); font-size: 1.15rem; text-decoration: none; }
.site-footer p { margin: 8px 0 0; }

@media (max-width: 900px) {
    .header-inner { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 17px; }
    .main-nav { justify-content: flex-start; gap: 4px 20px; }
    .dog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-layout { grid-template-columns: 1fr; }
    .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-feature-image { height: 260px; }
}
@media (max-width: 620px) {
    .header-inner, main { width: min(100% - 32px, 1080px); }
    .header-inner { position: relative; min-height: 0; padding: 16px 0; align-items: center; flex-direction: row; flex-wrap: wrap; gap: 0; }
    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 11px 9px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--line);
        border-radius: 3px;
        background: var(--surface);
        color: var(--deep);
        cursor: pointer;
    }
    .menu-toggle span { width: 22px; height: 2px; display: block; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .main-nav { width: 100%; margin-top: 14px; padding-top: 8px; display: none; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
    .main-nav .nav-current { box-shadow: inset 3px 0 var(--accent); padding-left: 12px; }
    .intro { padding: 72px 0 34px; }
    .intro-copy { font-size: .96rem; }
    .home-carousel { height: calc(100svh - 144px); min-height: 500px; max-height: 760px; margin-bottom: 0; }
    .carousel-copy { top: auto; right: 28px; bottom: 88px; left: 28px; transform: none; }
    .carousel-eyebrow { margin-bottom: 12px; font-size: .65rem; }
    .carousel-copy h1 { font-size: clamp(3.5rem, 15vw, 5.4rem); }
    .carousel-tagline { margin-top: 17px; font-size: .76rem; letter-spacing: .06em; }
    .carousel-slide::after { background: linear-gradient(0deg, rgba(17, 19, 16, .66), rgba(17, 19, 16, .08) 75%); }
    .carousel-control { width: 42px; height: 42px; }
    .carousel-footer { bottom: 16px; }
    .carousel-dots { gap: 7px; }
    .carousel-dot { width: 8px; height: 8px; }
    .home-introduction { padding: 62px 4px 58px; }
    .home-introduction h2, .section-heading h2 { font-size: clamp(2rem, 9vw, 2.7rem); }
    .home-introduction > p:not(.eyebrow) { font-size: .96rem; }
    .section-heading { margin-bottom: 24px; }
    .home-feature-grid { grid-template-columns: 1fr; gap: 14px; }
    .home-feature-card { display: grid; grid-template-columns: minmax(115px, .8fr) 1.2fr; }
    .home-feature-image { height: 100%; min-height: 220px; padding: 8px; }
    .home-feature-copy { min-height: 0; padding: 18px 15px; }
    .home-feature-title { font-size: 1.25rem; }
    .home-feature-description { margin-top: 8px; font-size: .82rem; }
    .home-feature-link { padding-top: 14px; font-size: .8rem; }
    .home-next-steps { align-items: flex-start; flex-direction: column; gap: 22px; }
    .home-next-steps h2 { font-size: 1.9rem; }
    .home-next-links { align-items: flex-start; flex-direction: column; gap: 17px; }
    .empty-state { min-height: 280px; padding: 28px 8px 45px; }
    .news-card { grid-template-columns: 1fr; }
    .news-image { height: 230px; min-height: 0; }
    .page-feature { grid-template-columns: 1fr; }
    .feature-image { height: auto; min-height: 0; max-height: min(70vh, 400px); aspect-ratio: 4 / 3; }
    .dog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dog-card-image { height: 150px; }
    .dog-card-title { min-height: 72px; padding: 12px 30px 12px 11px; font-size: .94rem; }
    .dog-card-arrow { right: 10px; bottom: 13px; }
    .profile-gallery, .page-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-gallery a, .page-gallery a, .archive-gallery a { min-height: 140px; }
    .archive-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-links { grid-template-columns: 1fr; }
    .contact-strip { margin-bottom: 50px; align-items: flex-start; flex-direction: column; }
    .contact-actions { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
