:root {
    --df-ink: #2d2218;
    --df-brown: #7d3f21;
    --df-copper: #b96c37;
    --df-cream: #f7f3ed;
    --df-sand: #efe5d7;
    --df-card: rgba(255, 255, 255, 0.9);
    --df-border: rgba(125, 63, 33, 0.15);
    --df-shadow: 0 1.5rem 3rem rgba(45, 34, 24, 0.08);
}

* {
    box-sizing: border-box;
}

body.site-shell {
    margin: 0;
    color: var(--df-ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(185, 108, 55, 0.18), transparent 30%),
        linear-gradient(180deg, #f8f3eb 0%, #efe7da 45%, #f9f5ef 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--df-brown);
}

.site-header {
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(125, 63, 33, 0.1), transparent 45%),
        radial-gradient(circle at top right, rgba(185, 108, 55, 0.24), transparent 26%);
    pointer-events: none;
}

.navbar {
    padding: 1.25rem 0;
}

.navbar-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
}

.brand-kicker {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--df-copper);
}

.brand-name {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    color: var(--df-ink);
}

.nav-link {
    color: rgba(45, 34, 24, 0.82);
    font-weight: 600;
}

.nav-link.is-active,
.nav-link:hover,
.nav-link:focus {
    color: var(--df-brown);
}

.btn-brand,
.btn-outline-brand:hover,
.btn-outline-brand:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #8b431d, #bc733c);
    border: 0;
}

.btn-brand,
.btn-outline-brand {
    border-radius: 999px;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
}

.btn-outline-brand {
    color: var(--df-brown);
    border: 1px solid rgba(125, 63, 33, 0.25);
    background: rgba(255, 255, 255, 0.6);
}

.hero-band {
    padding: 1rem 0 2.5rem;
}

.hero-card {
    position: relative;
    max-width: 56rem;
    padding: 2.5rem;
    border: 1px solid var(--df-border);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 241, 0.84));
    box-shadow: var(--df-shadow);
    animation: rise-in 0.7s ease both;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 10rem;
    height: 10rem;
    right: -2rem;
    top: -2rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(185, 108, 55, 0.2), transparent 65%);
}

.hero-eyebrow,
.section-label {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--df-copper);
}

.hero-card h1,
.section-heading h2,
.content-card h2,
.content-card h3 {
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.25;
}

.hero-card h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-intro {
    max-width: 42rem;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.site-main {
    padding-bottom: 4rem;
}

.section-stack {
    display: grid;
    gap: 1.5rem;
}

.section-shell {
    animation: rise-in 0.8s ease both;
}

.content-card,
.image-card,
.footer-panel {
    border: 1px solid var(--df-border);
    border-radius: 1.5rem;
    background: var(--df-card);
    box-shadow: var(--df-shadow);
}

.content-card {
    height: 100%;
    padding: 1.75rem;
}

.image-card {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    overflow: hidden;
}

.migrated-image {
    width: auto;
    height: auto;
    max-width: min(100%, var(--source-width));
}

.image-card img {
    margin: 0 auto;
}

.image-card-plain {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.company-background-photo {
    justify-content: flex-end;
}

.feature-card h2,
.callout-card h2 {
    margin-bottom: 1rem;
}

.feature-card p,
.content-card p,
.feature-list li {
    font-size: 1.04rem;
    line-height: 1.7;
}

.feature-list {
    margin: 0;
    padding-left: 1.2rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.image-grid {
    display: grid;
    gap: 1rem;
}

.section-heading {
    margin-bottom: 0.5rem;
}

.team-card img,
.story-card img {
    display: block;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
}

.team-card h3,
.story-card h3 {
    font-size: 1.15rem;
}

.team-photo-height-match {
    max-height: 109px;
    width: auto;
}

.link-arrow {
    font-weight: 700;
    text-decoration: none;
}

.logo-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.logo-mark {
    display: block;
}

.callout-card {
    background: linear-gradient(135deg, rgba(125, 63, 33, 0.95), rgba(185, 108, 55, 0.92));
    color: #fff8f2;
}

.callout-card .section-label,
.callout-card a {
    color: #ffe1ca;
}

.callout-copy {
    font-weight: 700;
    font-size: 1.15rem;
}

.contact-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.contact-label {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--df-copper);
}

.contact-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-panel {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.footer-brand {
    margin: 0 0 0.4rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
}

.footer-copy {
    margin: 0;
    line-height: 1.7;
}

.site-credit {
    margin: 0.9rem 0 0;
    text-align: center;
    font-size: 0.96rem;
    color: var(--df-muted);
}

.site-credit a {
    color: var(--df-accent);
    font-weight: 600;
    text-decoration: none;
}

.site-credit a:hover,
.site-credit a:focus-visible {
    text-decoration: underline;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-cta {
        margin-top: 0.75rem;
    }

    .hero-card {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-band {
        padding-bottom: 1.5rem;
    }

    .hero-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .content-card {
        padding: 1.35rem;
    }

    .contact-value {
        font-size: 1.2rem;
    }

    .company-background-photo {
        justify-content: center;
    }
}
