:root {
    color-scheme: light;
    --paper: #f5f1e8;
    --ink: #272923;
    --accent: #a43f2e;
    --accent-hover: #843123;
    --line: #8b8b80;
    --focus: #245b73;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
main:focus { outline: none; }

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 14px 18px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.site-shell {
    width: min(100% - 96px, 1240px);
    min-height: 100vh;
    min-height: 100svh;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 38px 22px;
}
.brand {
    display: inline-flex;
    flex-direction: column;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.13;
    text-decoration: none;
}
.location { font-size: 16px; }
.home-main { display: flex; flex: 1; }
.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    width: 100%;
    padding-block: 24px 36px;
}
.hero-copy { position: relative; z-index: 1; padding-block: 22px; }
.eyebrow {
    margin: 0 0 26px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .15em;
    line-height: 1.5;
    text-transform: uppercase;
}
h1 {
    margin: 0;
    font-size: clamp(48px, 5.9vw, 78px);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.06;
}
.intro {
    max-width: 440px;
    margin: 30px 0 24px;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.5;
}
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.phone-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 15px 30px;
    border: 2px solid var(--accent);
    border-radius: 2px;
    color: #fff;
    background: var(--accent);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
}
.phone-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.email-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; }
.roof-figure { position: relative; min-width: 0; margin: 0; }
.roof-image { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; mix-blend-mode: multiply; }
.image-credit { position: absolute; right: 4px; bottom: 36px; z-index: 2; }
.image-credit details { position: relative; }
.image-credit summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    list-style: none;
}
.image-credit summary::-webkit-details-marker { display: none; }
.image-credit summary span { font-family: Georgia, serif; font-size: 18px; font-weight: 700; font-style: italic; }
.image-credit summary:hover, .image-credit details[open] summary { border-color: var(--ink); background: #e8e0d2; }
.image-credit p {
    position: absolute;
    right: 54px;
    bottom: 0;
    width: max-content;
    max-width: calc(100vw - 128px);
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    background: var(--paper);
    font-size: 14px;
    line-height: 1.4;
}
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding-block: 22px 26px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
}
.site-footer address { font-style: normal; }
.footer-email { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }

.legal-main { flex: 1; width: min(100%, 820px); margin: 42px auto 70px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 28px; }
.legal-content { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-content h1 { margin-block: 0 32px; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.12; }
.legal-content h2 { margin-block: 36px 12px; font-size: 27px; line-height: 1.3; letter-spacing: -.025em; }
.legal-content h3 { margin-block: 28px 10px; font-size: 21px; line-height: 1.4; }
.legal-content h4 { font-size: 18px; }
.legal-content p, .legal-content ul, .legal-content ol { margin-block: 0 18px; }
.legal-content ul, .legal-content ol { padding-left: 24px; }
.legal-content li + li { margin-top: 8px; }
.legal-content table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.legal-content td, .legal-content th { padding: 10px; border: 1px solid var(--line); text-align: left; }

@media (max-width: 1000px) {
    .site-shell { width: calc(100% - 64px); }
    .hero { grid-template-columns: 1.12fr 1fr; }
    .eyebrow { font-size: 12px; letter-spacing: .12em; }
    .intro { max-width: 360px; }
    .site-footer { gap: 12px 20px; }
    .legal-nav { gap: 8px 20px; }
}

@media (max-width: 700px) {
    .site-shell { width: calc(100% - 40px); }
    .site-header { padding-block: 24px 12px; gap: 12px; }
    .brand { font-size: clamp(17px, 4.7vw, 22px); }
    .location { font-size: 13px; }
    .hero { grid-template-columns: 1fr; padding-block: 0 32px; }
    .roof-figure { grid-row: 1; width: 100%; margin: 0 auto; }
    .roof-image {
        height: 210px;
        width: 100%;
        object-fit: cover;
        object-position: center 14%;
        -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
        mask-image: linear-gradient(to bottom, #000 80%, transparent);
    }
    .image-credit { right: 0; bottom: 8px; }
    .hero-copy { padding: 24px 0 0; }
    .eyebrow { margin-bottom: 18px; font-size: 12px; }
    h1 { font-size: clamp(39px, 10.8vw, 64px); letter-spacing: -.05em; }
    .intro { max-width: 480px; margin-block: 20px; font-size: 17px; }
    .contact-actions { align-items: stretch; gap: 8px; }
    .phone-button { min-height: 56px; font-size: 24px; padding-inline: 18px; }
    .email-link { justify-content: center; font-size: 17px; }
    .site-footer { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 18px; }
    .legal-nav { justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
    .legal-main { margin-block: 24px 48px; }
    .legal-content { font-size: 17px; }
    .legal-content h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
    .phone-button { transition: background-color 120ms ease, border-color 120ms ease; }
}

@media (forced-colors: active) {
    .phone-button, .image-credit summary { border: 2px solid ButtonText; }
}
