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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-4));
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html.nav-open { overflow: hidden; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    /* A long address or URL breaks instead of widening the page. */
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-body {
    font-size: 1.0625rem;
    line-height: 1.65;
}

img, svg, video, iframe {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea { font-family: inherit; }

ul, ol {
    list-style: none;
}

[hidden] { display: none !important; }

:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 3px;
}

.hero :focus-visible,
.venue-band :focus-visible,
.section-band--dark :focus-visible,
.site-header--overlay:not(.is-scrolled) :focus-visible {
    outline-color: var(--color-white);
}

main:focus { outline: none; }

.skip-link {
    position: fixed;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 300;
    padding: var(--space-3) var(--space-5);
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-white);
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform 200ms var(--ease-out);
}

.skip-link:focus { transform: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

.font-display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }

h3 {
    font-size: var(--text-lg);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

p {
    color: var(--color-text-soft);
    text-wrap: pretty;
}

.site-body p { color: var(--color-text-mid); }

.measure { max-width: 64ch; }

.label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow-ruby { color: var(--color-live); }
/* Text needs the deeper brass; --color-highlight is for rules and icons. */
.eyebrow-brass { color: var(--color-highlight-deep); }
.section-band--dark .eyebrow-brass,
.venue-band .eyebrow-brass { color: var(--color-highlight-light); }
/* Deeper mix: plain sage drops to 4.4:1 on the tinted bands. */
.eyebrow-sage { color: var(--color-primary-dark); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
}

.flex {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-9) var(--space-6);
}

.section--tight {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section-band {
    background: var(--color-soft);
}

.section-band--dark {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.section-band--dark p,
.site-body .section-band--dark p {
    color: rgba(255, 255, 255, 0.9);
}

.section-band--dark h1,
.section-band--dark h2,
.section-band--dark h3 {
    color: var(--color-white);
}

.section-head {
    max-width: 640px;
    margin-bottom: var(--space-7);
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head .label {
    margin-bottom: var(--space-3);
}

.section-head p {
    margin-top: var(--space-4);
    font-size: var(--text-lg);
    line-height: 1.55;
}

.section-head--inline {
    margin-bottom: 0;
}

.subhead {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

/* No nowrap: at the larger text sizes the accessibility panel offers, a long
   heading would otherwise push the page sideways on a phone. */
.subhead h3 { font-size: var(--text-xl); }

.subhead::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.subhead + .grid-3,
.subhead + .grid-2 {
    margin-bottom: var(--space-8);
}

.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-8);
    align-items: center;
}

.text-center { text-align: center; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.hidden { display: none; }

/* Without scroll timelines the content simply shows. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal-up linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 22%;
        }
    }
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(28px); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 860px) {
    .grid-3,
    .grid-2,
    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }

    .section {
        padding: var(--space-8) var(--space-5);
    }
}

/* Desktop reads heavy at weight 600 on a wide screen, so public h1 and h2
   go one step lighter there. Phones keep 600, where the bolder type helps.
   :where() keeps this at element weight, so a component's own heading style
   (card titles, the accessibility panel) still wins. */
@media (min-width: 1081px) {
    :where(.site-body) :is(h1, h2) { font-weight: 500; }

    .site-body .btn { font-weight: 500; }
}
