:root {
    --ui-space-1: .25rem;
    --ui-space-2: .5rem;
    --ui-space-3: .75rem;
    --ui-space-4: 1rem;
    --ui-space-6: 1.5rem;
    --ui-space-8: 2rem;
    --ui-space-12: 3rem;
    --ui-space-16: 4rem;
    --ui-text: #fff;
    --ui-muted: #b8b8b8;
    --ui-accent: #f89b29;
    --ui-border: rgba(255, 255, 255, .2);
    --ui-focus: #ffb552;
    --ui-radius: .25rem;
}

html { font-size: 100%; }
body { font-family: Inter, sans-serif; line-height: 1.6; }
:where(h1, h2, h3, h4, h5, h6) { line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
:where(p, li) { line-height: 1.6; }
:where(a, button, input, select, textarea):focus-visible {
    outline: .1875rem solid var(--ui-focus) !important;
    outline-offset: .1875rem;
}
:where(button, a, input, select, textarea) { touch-action: manipulation; }
:where(.mugen-menu-btn, .overlay-close, .btn-submit, .card-book-btn) { min-width: 2.75rem; min-height: 2.75rem; }
.mugen-overlay:not(.open) { visibility: hidden; }
.mugen-overlay.open { overflow-y: auto; }
.overlay-nav-links a { color: #b8b8b8 !important; font-size: 2.25rem !important; line-height: 1.2; min-height: 2.75rem; }
.overlay-nav-links a:is(:hover, :focus-visible) { color: #fff !important; }
.overlay-footer, .overlay-footer a { color: #b8b8b8; }
.skip-link { position: fixed; z-index: 1000; top: .5rem; left: .5rem; padding: .75rem 1rem; background: #fff; color: #000; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.contact-form .form-group label, .contact-form .checkbox-group-label { color: #c4c4c4; font-size: .875rem; letter-spacing: 0; }
.contact-form :is(input, textarea, select)::placeholder { color: #b8b8b8; opacity: 1; }
.contact-form :is(input:not([type="checkbox"]), textarea, select) { min-height: 2.75rem; }
.contact-form .field-error { color: #ffb4a9; margin: .5rem 0 0; font-size: .875rem; }
.contact-form [aria-invalid="true"] { border-color: #ffb4a9; }
.contact-form .form-alert { border: 1px solid #ffb4a9; padding: 1rem; margin-bottom: 1.5rem; color: #ffddd8; }
.contact-form .checkbox-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr)); }
.contact-form .checkbox-label { min-height: 2.75rem; }
.info-item a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }

/* Preserve the home wordmark treatment while making editorial content readable. */
main .text-huge, main .hero h1, main h1.text-huge { font-size: 3.5rem !important; line-height: 1.15 !important; letter-spacing: 0 !important; }
main .text-large, main .sec-title, main h2.text-large { font-size: 2.25rem !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
main p { max-width: 75ch; }
.editorial-container .hero p { font-size: 1.125rem !important; line-height: 1.6 !important; }
.editorial-container p[style*="rgba(255,255,255,0.45)"] { color: var(--ui-muted) !important; }
.editorial-container { width: min(100%, 90rem); margin-inline: auto; }
.editorial-container .editorial-section { padding-block: var(--ui-space-16); }
.editorial-container .hero.editorial-section { padding-top: 10rem !important; }

/* Keep process titles intact and give longer words room before stacking the row. */
.editorial-container .approach-item {
    grid-template-columns: 4rem minmax(14.5rem, 1fr) minmax(0, 2fr);
    gap: 2rem;
}
.editorial-container .approach-title {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}
@media (max-width: 56rem) {
    .editorial-container .approach-item { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem 1.5rem; }
    .editorial-container .approach-item .approach-desc { grid-column: 2; }
}
@media (max-width: 30rem) {
    .editorial-container .approach-title { font-size: 1.25rem; }
}

/* Longer narrative statements should complement, not compete with, section titles. */
.bubble-container > h2,
.why-headline h2,
.sec-narrative h3,
.editorial-container h1.section-heading {
    max-width: 30ch;
    font-size: 3rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}
.editorial-container h2.section-heading,
.editorial-container section:has(.contact-grid) .sec-header h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}
.team-text-middle h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 48rem) {
    main .text-huge, main .hero h1, main h1.text-huge { font-size: 2.25rem !important; }
    main .text-large, main .sec-title, main h2.text-large { font-size: 1.75rem !important; }
    .editorial-container .editorial-section { padding-block: var(--ui-space-12); }
    .editorial-container .hero.editorial-section { padding-top: 8rem !important; }
    .bubble-container > h2,
    .why-headline h2,
    .sec-narrative h3,
    .editorial-container h1.section-heading { font-size: 2rem !important; }
    .editorial-container h2.section-heading,
    .editorial-container section:has(.contact-grid) .sec-header h2 { font-size: 1.5rem !important; }
    .team-text-middle h3 { font-size: 1.25rem !important; }
    .contact-form { padding: 1.5rem !important; }
    .mugen-overlay { padding: 5rem 1.5rem 2rem; }
    .overlay-nav-links a { font-size: 2rem !important; line-height: 1.2; }
}
