:root {
    --text: #2b2a28;
    --muted: #5f5b55;
    --bg: #ffffff;
    --cream: #f8f5f0;
    --sand: #ece3d5;
    --sky: #dce7f3;
    --surface: #f8f5f0;
    --border: #e6e0d6;
    --accent: #1d71b8;
    --accent-hover: #175c96;
    --orange: #f39200;
    --orange-hover: #d98200;
    --orange-text: #b86e00;
    --ink: #2b2a28;
    --success-bg: #e6f4ea;
    --success-text: #1b5e20;
    --error: #b00020;
    --radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 12px;
}

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

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow-orange {
    color: var(--orange-text);
}

.eyebrow-blue {
    color: var(--accent);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo img {
    width: 207px;
    height: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 28px;
}

.site-nav a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
}

.site-nav .nav-contact {
    color: var(--accent);
}

/* Main content */

main {
    flex: 1;
}

.page-body {
    padding-top: 48px;
    padding-bottom: 48px;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 28px;
}

.empty {
    color: var(--muted);
}

.content-section {
    margin-bottom: 48px;
}

.content-section.has-image {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 32px;
    align-items: start;
}

.content-section img {
    border-radius: var(--radius);
}

.content-text p:first-child {
    margin-top: 0;
}

/* Buttons */

.button {
    display: inline-block;
    padding: 10px 24px;
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
}

.button:hover {
    color: #fff;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button-outline {
    color: var(--text);
    background: transparent;
    border-color: var(--text);
}

.button-outline:hover {
    color: #fff;
    background: var(--text);
    border-color: var(--text);
}

.button-dark {
    background: var(--ink);
    border-color: var(--ink);
}

.button-dark:hover {
    background: #000;
    border-color: #000;
}

.button-accent {
    color: var(--ink);
    background: var(--orange);
    border-color: var(--orange);
}

.button-accent:hover {
    color: var(--ink);
    background: var(--orange-hover);
    border-color: var(--orange-hover);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Home: hero */

.hero {
    background: var(--cream);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 20px;
}

.lead {
    max-width: 30em;
    margin: 0 0 28px;
    font-size: 1.1rem;
    color: var(--muted);
}

.hero-art {
    display: block;
    width: 100%;
    max-width: 440px;
    justify-self: end;
}

/* Home: page bands */

.band {
    padding: 64px 0;
}

.band-cream {
    background: var(--cream);
}

/* Blank image slots, swapped for real images later */
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    aspect-ratio: 16 / 10;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--sand);
}

.placeholder-sky {
    color: #36506b;
    background: var(--sky);
}

.placeholder-ink {
    color: #e9e4dc;
    background: var(--ink);
}

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

.service-card {
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    scroll-margin-top: 96px;
}

.service-body {
    padding: 20px 20px 24px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.service-card p:last-child {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.feature-media {
    border-radius: var(--radius);
}

.feature-text h2 {
    font-size: 1.75rem;
}

.feature-text p:not(.eyebrow) {
    margin: 0 0 24px;
    color: var(--muted);
}

.cta {
    padding: 48px 0;
    color: #fff;
    background: var(--accent);
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.cta h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.cta p {
    margin: 0;
}

/* Cards and grids */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.card {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

.card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card figcaption,
.card-body {
    padding: 16px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.video-frame {
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--muted);
}

.featured {
    margin-top: 56px;
}

.featured:first-child {
    margin-top: 0;
}

.featured-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
}

.featured-header h2 {
    margin: 0;
}

/* Contact form */

.form-panel {
    max-width: 560px;
    padding: 28px;
    margin-bottom: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.contact-form .errorlist {
    color: var(--error);
    padding-left: 0;
    margin: 0 0 4px;
    list-style: none;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
    color: var(--accent);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.content-text .badge {
    margin-bottom: 8px;
}

/* Visually hidden spam trap on the subscribe form */
.contact-form .turnstile {
    margin-bottom: 16px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.nav-form {
    display: inline;
    margin: 0;
}

.nav-form button {
    padding: 4px 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.nav-form button:hover {
    color: var(--text);
}

.notice {
    padding: 12px 16px;
    border-radius: 6px;
}

.notice-success {
    background: var(--success-bg);
    color: var(--success-text);
    font-weight: 700;
}

/* Footer */

.site-footer {
    padding: 32px 0;
    color: #d9d4cc;
    background: var(--ink);
    font-size: 0.85rem;
}

.site-footer a {
    color: #d9d4cc;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.footer-subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    max-width: 440px;
    margin-bottom: 28px;
}

.footer-subscribe + .footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #45423e;
}

.footer-subscribe label {
    flex-basis: 100%;
    margin-bottom: 0;
    color: #fff;
}

.footer-subscribe input {
    flex: 1;
    width: auto;
    min-width: 0;
    border-color: #45423e;
}

.footer-subscribe .errorlist {
    flex-basis: 100%;
    color: #ff8a80;
}

.footer-subscribe .turnstile {
    flex-basis: 100%;
    margin: 0;
}

/* Small screens */

@media (max-width: 860px) {
    .hero-inner,
    .feature {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 360px;
        justify-self: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .logo img {
        width: 170px;
    }

    .site-nav {
        gap: 4px 18px;
    }

    .hero-inner {
        padding-top: 40px;
    }

    .band {
        padding: 48px 0;
    }

    .content-section.has-image {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid-wide {
        grid-template-columns: 1fr;
    }

    .form-panel {
        padding: 20px;
    }
}
