:root {
    --paper: #f3f5f4;
    --paper-deep: #e5eae7;
    --ink: #1d2927;
    --forest: #24463f;
    --forest-deep: #18332e;
    --sage: #6f8d84;
    --copper: #a87945;
    --line: #c8d1cd;
    --white: #ffffff;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --body: Aptos, "Segoe UI", Arial, sans-serif;
    --utility: Consolas, "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

a:focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 20;
    padding: 10px 16px;
    background: var(--white);
    color: var(--forest-deep);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--forest);
    color: var(--forest);
    font-family: var(--display);
    font-size: 1.05rem;
}

.brand-name {
    font-size: 0.86rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

nav {
    display: flex;
    gap: clamp(22px, 4vw, 52px);
}

nav a {
    position: relative;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--copper);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
    transform: scaleX(1);
}

main,
footer {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: clamp(48px, 9vw, 130px);
    min-height: 690px;
    padding: clamp(72px, 10vw, 150px) 0 100px;
}

.hero-copy {
    align-self: center;
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--sage);
    font-family: var(--utility);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.9;
}

h1 {
    max-width: 760px;
    color: var(--forest-deep);
    font-size: clamp(4.4rem, 10vw, 9.2rem);
}

.hero-intro {
    max-width: 640px;
    margin: 42px 0 30px;
    font-size: clamp(1.12rem, 1.7vw, 1.42rem);
    line-height: 1.65;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.hero-contact a {
    color: var(--forest);
    font-size: 0.96rem;
    font-weight: 700;
}

.identity-panel {
    position: relative;
    align-self: stretch;
    min-height: 510px;
    overflow: hidden;
    background: var(--forest);
    color: var(--paper);
}

.identity-l,
.identity-r {
    position: absolute;
    font-family: var(--display);
    font-size: clamp(15rem, 28vw, 28rem);
    font-weight: 400;
    line-height: 1;
}

.identity-l {
    top: -38px;
    left: -12px;
    color: rgba(255, 255, 255, 0.08);
}

.identity-r {
    right: -18px;
    bottom: -72px;
    color: rgba(243, 245, 244, 0.92);
}

.identity-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.22);
}

.line-a {
    top: 20%;
    bottom: 13%;
    left: 34%;
    width: 1px;
}

.line-b {
    right: 12%;
    bottom: 31%;
    left: 12%;
    height: 1px;
}

.identity-caption {
    position: absolute;
    bottom: 24px;
    left: 28px;
    font-family: var(--utility);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.company-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(48px, 8vw, 130px);
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.section-title h2,
.legal-title h2 {
    max-width: 580px;
    color: var(--forest-deep);
    font-size: clamp(3.2rem, 6vw, 6.2rem);
}

.company-intro {
    align-self: end;
    max-width: 620px;
    font-size: 1.2rem;
}

.company-facts {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
    margin: 38px 0 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.company-facts div {
    min-height: 180px;
    padding: 28px 24px;
    border-right: 1px solid var(--line);
}

.company-facts div:first-child {
    padding-left: 0;
}

.company-facts div:last-child {
    padding-right: 0;
    border-right: 0;
}

dt {
    margin-bottom: 14px;
    color: var(--sage);
    font-family: var(--utility);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

dd {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
}

.featured-residence {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    min-height: 610px;
    background: var(--forest-deep);
    color: var(--paper);
}

.residence-copy {
    padding: clamp(64px, 8vw, 108px);
}

.eyebrow-light {
    color: #adc2bb;
}

.featured-residence h2 {
    max-width: 760px;
    font-size: clamp(3.4rem, 6vw, 6.5rem);
}

.residence-copy > p:not(.eyebrow) {
    max-width: 650px;
    margin: 38px 0;
    color: #d8e0dd;
    font-size: 1.12rem;
}

.booking-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 52px;
    min-width: min(100%, 360px);
    padding: 18px 0;
    border-top: 1px solid var(--copper);
    border-bottom: 1px solid var(--copper);
    color: var(--white);
    font-weight: 750;
    text-decoration: none;
    transition: color 180ms ease, padding 180ms ease;
}

.booking-link:hover {
    padding-right: 10px;
    color: #e4c298;
}

.residence-address {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px;
    background: var(--paper-deep);
    color: var(--forest-deep);
}

.address-number {
    font-family: var(--display);
    font-size: clamp(12rem, 22vw, 22rem);
    line-height: 0.72;
}

.residence-address p {
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--forest);
    font-family: var(--utility);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    line-height: 1.8;
    text-transform: uppercase;
}

.legal-section {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(54px, 8vw, 128px);
    padding: 130px 0 110px;
}

.legal-title {
    align-self: start;
}

.legal-title > p:last-child {
    margin-top: 28px;
    color: var(--sage);
    font-family: var(--utility);
    font-size: 0.7rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 42px;
}

.legal-grid article {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.legal-grid h3 {
    margin: 0 0 20px;
    color: var(--forest);
    font-family: var(--body);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-grid p,
.legal-grid li {
    font-size: 0.91rem;
    line-height: 1.75;
}

.legal-grid ul {
    margin: 20px 0;
    padding-left: 20px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--sage);
    font-family: var(--utility);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

footer p {
    margin: 0;
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr 0.8fr;
        gap: 38px;
    }

    .company-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-facts div {
        min-height: 150px;
        border-bottom: 1px solid var(--line);
    }

    .company-facts div:nth-child(2n) {
        border-right: 0;
    }

    .company-facts div:first-child,
    .company-facts div:last-child {
        padding-right: 24px;
        padding-left: 24px;
    }

    .legal-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .site-header,
    main,
    footer {
        width: min(100% - 36px, 1240px);
    }

    .site-header {
        align-items: flex-start;
        padding: 20px 0;
    }

    .brand-name {
        display: none;
    }

    nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 18px;
        max-width: 260px;
    }

    nav a {
        font-size: 0.74rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 72px 0;
    }

    h1 {
        font-size: clamp(4.5rem, 23vw, 7.2rem);
    }

    .identity-panel {
        min-height: 390px;
    }

    .company-section {
        grid-template-columns: 1fr;
        padding: 82px 0;
    }

    .company-facts {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .company-facts div,
    .company-facts div:first-child,
    .company-facts div:last-child {
        min-height: 0;
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .featured-residence {
        grid-template-columns: 1fr;
    }

    .residence-copy {
        padding: 58px 30px 70px;
    }

    .residence-address {
        min-height: 390px;
        padding: 36px;
    }

    .address-number {
        font-size: 14rem;
    }

    .legal-section {
        padding: 92px 0 72px;
    }

    .legal-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    footer {
        align-items: flex-start;
        gap: 20px;
    }
}

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

    * {
        transition: none !important;
    }
}
