/* Change these values to match your firm's branding. */
:root {
    --red: #b90000;
    --cream: #E1CEAD;
    --ink: #1a1c1b;
    --muted: #1a1c1b;
    --line: #dedfd7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

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

a {
    color: white;
    background-color: var(--red);
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid #b38532;
    outline-offset: 6px;
}

a:hover {
    text-decoration: underline;
}

#control {
    color: var(--red);
    background-color: white;
    text-decoration: none;
    font-size: 20px;

}
#control:hover {
    background-color: #b38532;
    color: white;
}

.container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 20px;
    padding: 12px 20px;
    background: white;
    z-index: 10;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    background: var(--red);
    color: white;
    border-bottom: 1px solid var(--line);
    padding-block: 30px;

}

.header-inner {
    min-height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand-logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 60px Georgia, serif;
    color: white;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.brand-subtitle {
    display: block;
    font: 20px Georgia, serif;
    letter-spacing: 4px;
    margin-top: 5px;

}

nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
}

nav a {
    padding: 10px 20px;
    border: 1px solid var(--red);
    border-radius: 3px;
}

nav a:first-child {
    align-self: center;
}

.intro {
    padding-block: 75px 66px;
}

h1 {
    font: normal clamp(42px, 5.4vw, 70px)/1.08 Georgia, 'Times New Roman', serif;
    letter-spacing: -2px;
    margin: 0 0 24px;
    color: var(--red);
}

.intro-text {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

.listings {
    padding-bottom: 78px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 27px;
    padding-bottom: 27px;
}

h2 {
    font: normal 28px Georgia, serif;
    margin: 0;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
}

.property {
    background: white;
    border: 1px solid #e0e3dc;
    border-radius: 6px;
    overflow: hidden;
}

.property:hover {
    border: 5px solid var(--red);
}

.photo {
    position: relative;
    aspect-ratio: 1.48;
    overflow: hidden;
    background: #e0e3dc;
}

.photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: #fffffff0;
    color: var(--red);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

.sold-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 16px;
    background: var(--red);
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 3px;
    border: 2px solid white;
}

.property-body {
    padding: 23px;
}

.price {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 600;
    color: var(--red);
}

.price span {
    font-size: 10px;
    color: var(--muted);
    font-weight: normal;
    margin-left: 5px;
}

h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 3px;
}

.location {
    color: var(--ink);
    margin: 0;
    font-size: 13px;
}

.details {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 20px 0 0;
    padding-top: 17px;
    border-top: 1px solid #eceee8;
}

.details dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.details dd {
    margin: 0;
    font-size: 12px;
    color: var(--ink);
}

.site-footer {
    background: var(--red);
    color: #f5f5ee;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding-block: 48px;
}

.footer-brand {
    font: 30px Georgia, serif;
}

.footer-top p {
    color: #ccd6ce;
    font-size: 16px;
    margin: 12px 0 0;
}

.footer-top h2 {
    font-size: 24px;
}

.portrait,
.contact-portrait {
    align-self: center;
    padding: 12px;
}

.contact-name {
    font: 24px Georgia, serif;
}

.footer-bottom {
    padding-block: 22px;
    border-top: 1px solid #ffffff30;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #ccd6ce;
}
.footer-logo {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-top: 20px;
    margin-left: auto;
}
.property-link,
.property-link:hover {
    display: block;
    color: var(--ink);
    background: transparent;
    text-decoration: none;
}

.property-link .property {
    height: 100%;
}

@media (max-width: 950px) {
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 36px);
    }
    .header-inner {
        min-height: 90px;
        gap: 16px;
    }
    .brand {
        font-size: 21px;
        gap: 8px;
    }
    nav {
        gap: 14px;
        font-size: 12px;
    }
    nav a:last-child {
        padding: 8px 10px;
    }
    .intro {
        padding-block: 50px 44px;
    }
    h1 {
        letter-spacing: -1px;
    }
    .desktop-break {
        display: none;
    }
    .property-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .section-heading h2 {
        font-size: 24px;
    }
    .footer-top {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
