:root {
    --background: #f8f7f4;
    --text: #292522;
    --muted: #6d6660;
    --line: #ded9d2;
    --accent: #500000;
    --accent-hover: #700f19;
    --panel: #eee9e2;
}

[data-theme="dark"] {
    --background: #211d1b;
    --text: #f4eee8;
    --muted: #c4b9af;
    --line: #514842;
    --accent: #d78c75;
    --accent-hover: #edaa91;
    --panel: #302925;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #a85c42;
    outline-offset: 5px;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
    background: #e4dfd8;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h1 {
    margin: 18px 0 24px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.1;
}

h2 {
    margin: 12px 0 20px;
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.2;
}

h3 {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.3;
}

p {
    margin-top: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10;
    padding: 12px 18px;
    background: white;
    color: var(--accent);
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: relative;
    min-height: 108px;
    padding: 24px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.brand {
    flex-shrink: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.2;
}

.brand span {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
}

.site-nav a {
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.menu-toggle {
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.menu-toggle[hidden] {
    display: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #382b28;
    color: white;
}

.hero > img,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero > img {
    object-position: 65% center;
}

.hero-shade {
    background: linear-gradient(
        90deg,
        rgba(26, 18, 17, 0.8),
        rgba(26, 18, 17, 0.45) 55%,
        rgba(26, 18, 17, 0.12)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 7%;
    padding: 90px 0;
}

.hero-content > p:not(.eyebrow) {
    max-width: 440px;
    margin-bottom: 30px;
    color: #f4eee8;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.button {
    display: inline-block;
    padding: 14px 26px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-align: center;
    transition: background-color 180ms ease;
}

.button:hover {
    background: var(--accent-hover);
}

.button-light {
    background: var(--background);
    color: var(--text);
}

.button-light:hover {
    background: #e9dfd5;
}

.section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 85px 7%;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 38px;
}

.section-heading > p:not(.eyebrow),
.page-heading > p:not(.eyebrow),
.card p,
.split > div > p:not(.eyebrow),
.guide p,
.contact-layout > div > p {
    color: var(--muted);
}

.page-heading {
    max-width: 1050px;
    margin: 0 auto;
    padding: 85px 7% 40px;
    text-align: center;
}

.page-heading > p:not(.eyebrow) {
    max-width: 600px;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    padding: 30px;
    border: 1px solid var(--line);
}

.card p:last-child {
    margin-bottom: 0;
}

.callout {
    padding: 75px 7%;
    background: var(--panel);
    text-align: center;
}

.callout > p:not(.eyebrow) {
    max-width: 590px;
    margin: 0 auto 26px;
    color: var(--muted);
}

.text-link {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.text-link:hover,
.email-link:hover,
.site-footer a:hover {
    color: var(--accent);
}

.split,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 65px;
    align-items: center;
}

.portrait {
    height: auto;
    aspect-ratio: 4 / 5;
}

.split .button {
    margin-top: 12px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 24px;
    padding-top: 40px;
}

figure {
    min-width: 0;
    margin: 0;
}

.gallery img {
    height: auto;
    aspect-ratio: 4 / 5;
}

figcaption {
    padding-top: 16px;
}

figcaption h2 {
    margin: 0 0 7px;
    font-size: 24px;
    line-height: 1.3;
}

figcaption p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.03em;
}

.guide {
    max-width: 1000px;
    padding-top: 30px;
}

.guide article {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.guide h2 {
    font-size: 30px;
}

.contact-layout {
    align-items: start;
}

.contact-layout .card h2 {
    font-size: 30px;
}

.email-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 20px 0;
    overflow-wrap: anywhere;
    font-size: 15px;
}

.small-note {
    margin-top: 26px;
    font-size: 13px;
}

.inquiry-list {
    margin-bottom: 0;
    padding-left: 20px;
    color: var(--muted);
}

.inquiry-list li {
    margin-bottom: 10px;
}

.error-page {
    min-height: 65vh;
    padding-bottom: 90px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
}

.site-footer {
    padding: 28px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    overflow-wrap: anywhere;
}

@media (min-width: 761px) {
    .menu-toggle {
        display: none;
    }

    .theme-toggle {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 950px) {
    .site-header {
        padding-inline: 5%;
    }

    .site-nav {
        gap: 16px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .contact-layout {
        gap: 35px;
    }
}

@media (max-width: 760px) {
    .site-header {
        flex-wrap: wrap;
        padding: 22px 6%;
    }

    .theme-toggle {
        position: static;
        margin-left: auto;
        transform: none;
    }

    .brand {
        font-size: 25px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 14px 22px;
    }

    .site-nav.nav-ready {
        display: none;
    }

    .site-nav.nav-ready.is-open {
        display: flex;
    }

    .hero {
        min-height: 590px;
    }

    .hero-shade {
        background: rgba(26, 18, 17, 0.6);
    }

    .hero-content {
        margin: 0 6%;
        padding: 70px 0;
    }

    .hero .eyebrow {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .section {
        padding: 60px 6%;
    }

    .page-heading {
        padding: 60px 6% 25px;
    }

    .cards,
    .split,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .callout {
        padding: 60px 6%;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
