@font-face {
    font-family: "Berlin Display";
    src: url("./assets/fonts/Berlin X-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Berlin";
    src: url("./assets/fonts/Berlin.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: light;
    --background: #ffffff;
    --foreground: #191919;
    --muted: #666666;
    --rule: #e7e7e7;
    --page-gutter: clamp(24px, 5vw, 84px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--foreground);
    font-family: Arial, Helvetica, sans-serif;
}

header {
    min-height: 310px;
    display: flex;
    align-items: center;
    gap: clamp(48px, 8vw, 140px);
    padding: 34px var(--page-gutter);
}

.site-logo {
    flex: 0 0 auto;
    display: block;
    width: clamp(126px, 13.5vw, 191px);
    transform: translateX(clamp(12px, 1.5vw, 24px));
    line-height: 0;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-logo {
    color: var(--foreground);
    text-decoration: none;
}

.logo-name {
    display: block;
    margin-top: 0.45em;
    font-family: "Berlin", Arial, Helvetica, sans-serif;
    font-size: clamp(11.2px, 1.2vw, 17px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

nav {
    flex: 1 1 auto;
    min-width: 0;
    transform: translateX(clamp(-84px, -5vw, -48px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 12px;
}

nav a {
    color: var(--foreground);
    font-size: clamp(0.68rem, 0.86vw, 0.86rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

nav a:hover {
    color: var(--muted);
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

section {
    padding: clamp(88px, 12vw, 176px) var(--page-gutter);
    border-bottom: 1px solid var(--rule);
    scroll-margin-top: 16px;
}

#home {
    min-height: calc(100svh - 310px);
    padding: clamp(38px, 6vh, 64px) clamp(24px, 8vw, 140px) 56px;
}

.hero-content {
    width: min(100%, calc(var(--hero-title-size) * 3.8));
    margin-right: auto;
    margin-left: auto;
    --hero-title-size: clamp(8.58rem, 26.4vw, 27.72rem);
    --hero-intro-gap: 24px;
    --hero-outro-gap: clamp(-56px, -2.8vw, -28px);
}

.eyebrow {
    width: 100%;
    max-width: none;
    margin: 0 0 var(--hero-intro-gap);
    color: var(--foreground);
    font-size: clamp(1.2rem, 4.05vw, 4.2rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: center;
    text-align-last: center;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    font-family: "Berlin Display", Arial, Helvetica, sans-serif;
    font-size: var(--hero-title-size);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.76;
}

/* DR UMS: tight letters inside each group, a visible gap between R and U.
   Change --drums-gap to make the gap bigger or smaller. */
h1 {
    --drums-gap: 0.07em;
    white-space: nowrap;
}

.drums-ums {
    margin-left: var(--drums-gap);
}

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

.hero-statement {
    width: 100%;
    max-width: 100%;
    margin-top: var(--hero-outro-gap);
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    font-size: clamp(1rem, 1.9vw, 2rem);
    letter-spacing: 0.11em;
    line-height: 1.25;
    text-align: center;
    text-align-last: center;
}

section:not(#home) {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 8vw, 140px);
}

h2 {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-content {
    max-width: 720px;
}

.section-content p {
    margin-bottom: 0;
    font-size: clamp(1.65rem, 3.25vw, 3.7rem);
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.section-content .pull-quote {
    margin-top: clamp(54px, 8vw, 120px);
    color: var(--muted);
    font-size: clamp(1.2rem, 2vw, 2.1rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.performing-image {
    display: block;
    width: 100%;
    height: auto;
}

.performing-statement {
    margin-top: clamp(24px, 4vw, 48px);
}

.pillar-link {
    display: inline-block;
    margin-top: clamp(20px, 3vw, 32px);
    color: var(--foreground);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-decoration: none;
}

.pillar-link:hover {
    color: var(--muted);
}

nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

/* Subpages (performing.html, recording.html, teaching.html) */

.subpage .page-label {
    width: auto;
    margin: 0;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
}

.section-content .story-lead {
    margin-bottom: clamp(48px, 7vw, 96px);
}

.section-content .story-body p {
    max-width: 38em;
    margin-bottom: 1.25em;
    font-size: clamp(1.05rem, 1.25vw, 1.25rem);
    letter-spacing: normal;
    line-height: 1.65;
}

/* Photos inside the subpage stories */
.story-body .story-figure {
    margin: clamp(40px, 6vw, 72px) 0;
}

.story-body .story-figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* Upright photos stay narrower so they don't fill a whole screen */
.story-body .story-figure--portrait {
    max-width: 440px;
}

.story-body .story-subhead {
    margin: clamp(48px, 6vw, 80px) 0 16px;
    color: var(--foreground);
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.section-content .story-body p:last-child {
    margin-bottom: 0;
}

#recording {
    min-height: 64vh;
    align-content: center;
}

#contact {
    min-height: 30vh;
}

/* Short introduction under each pillar statement on the homepage */
.section-content .pillar-intro {
    max-width: 34em;
    margin-top: clamp(20px, 3vw, 32px);
    color: var(--muted);
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    letter-spacing: -0.01em;
    line-height: 1.45;
}

.pillar-intro + .pillar-link {
    margin-top: 20px;
}

/* Contact heading: "Let's talk drums." */
.section-content .contact-title {
    font-family: "Berlin Display", Arial, Helvetica, sans-serif;
    font-size: clamp(2.4rem, 5.4vw, 6.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.section-content .contact-intro {
    margin-top: clamp(20px, 3vw, 36px);
    font-size: clamp(1.15rem, 1.8vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Contact form */

.contact-form {
    margin-top: clamp(40px, 6vw, 72px);
}

.form-field {
    margin-bottom: 32px;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--foreground);
    border-radius: 0;
    background: transparent;
    color: var(--foreground);
    font: inherit;
    font-size: 1.1rem;
    line-height: 1.5;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
    outline: none;
    border-bottom-width: 2px;
}

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

.form-submit {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.form-submit:disabled {
    color: var(--muted);
    cursor: default;
}

.section-content .form-status {
    min-height: 1.5em;
    margin-top: 20px;
    font-size: 1rem;
    letter-spacing: normal;
    line-height: 1.5;
}

@media (max-width: 900px) {
    header {
        min-height: 250px;
        gap: clamp(28px, 5vw, 56px);
    }

    .site-logo {
        width: clamp(113px, 16.875vw, 155px);
    }

    .logo-name {
        font-size: clamp(10px, 1.5vw, 13.8px);
    }

    nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 22px;
    }

    #home {
        min-height: auto;
        padding: 48px 7vw 96px;
    }

    .eyebrow {
        font-size: clamp(1.5rem, 4vw, 2.25rem);
    }

    .hero-content {
        --hero-title-size: clamp(7.92rem, 26.4vw, 15.84rem);
        --hero-outro-gap: 12px;
    }

    .hero-statement {
        font-size: clamp(1rem, 2.2vw, 1.3rem);
    }

    nav a {
        padding: 10px 0;
    }
}

@media (max-width: 600px) {
    header {
        min-height: auto;
        display: block;
        padding: 28px 24px 24px;
    }

    .site-logo {
        width: 112px;
        margin-bottom: 26px;
    }

    .logo-name {
        font-size: 10px;
    }

    nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        transform: none;
        justify-items: start;
        gap: 0 8px;
    }

    /* Bigger text and taller tap area for fingers */
    nav a {
        padding: 12px 0;
        font-size: 0.78rem;
        letter-spacing: 0.07em;
    }

    #home {
        min-height: auto;
        padding: 40px 24px 72px;
    }

    /* Wider letter spacing so the line is almost as wide as DRUMS */
    .eyebrow {
        font-size: clamp(0.82rem, 3.9vw, 1.4rem);
        letter-spacing: 0.2em;
    }

    .hero-content {
        --hero-title-size: clamp(6.6rem, 29.04vw, 10.56rem);
        --hero-intro-gap: 14px;
        --hero-outro-gap: -14px;
    }

    h1 {
        letter-spacing: -0.055em;
        line-height: 0.8;
    }

    .hero-statement {
        font-size: clamp(0.82rem, 3.7vw, 1rem);
        line-height: 1.35;
        text-align-last: center;
    }

    section:not(#home) {
        display: block;
        padding: 64px 24px;
    }

    h2 {
        margin-bottom: 28px;
    }

    #recording {
        min-height: auto;
    }

    /* Taller tap area for links and the send button */
    .pillar-link {
        padding: 12px 0;
    }

    .pillar-intro + .pillar-link {
        margin-top: 8px;
    }
}

/* Footer on every page */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 40px var(--page-gutter);
    border-top: 1px solid var(--rule);
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Reset the main menu styles that would otherwise apply to this small nav */
.site-footer .footer-links {
    position: static;
    display: flex;
    gap: 24px;
    padding: 0;
    background: none;
    transform: none;
}

.site-footer .footer-links a {
    padding: 10px 0;
    color: var(--foreground);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Menu button: hidden on desktop */
.menu-toggle {
    display: none;
}

/* Phones and tablets: one-row header with a menu button, full-screen menu */
@media (max-width: 900px) {
    header {
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 24px;
    }

    .site-logo {
        position: relative;
        z-index: 11;
        width: 104px;
        margin: 0;
        transform: none;
    }

    .logo-name {
        font-size: 9.4px;
    }

    .menu-toggle {
        position: relative;
        z-index: 11;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        width: 44px;
        height: 44px;
        padding: 0 8px;
        border: 0;
        background: none;
        color: var(--foreground);
        cursor: pointer;
    }

    .menu-toggle-bar {
        display: block;
        height: 2px;
        background: currentColor;
        transition: transform 0.2s ease;
    }

    body.menu-open .menu-toggle-bar:first-child {
        transform: translateY(4.5px) rotate(45deg);
    }

    body.menu-open .menu-toggle-bar:nth-child(2) {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    nav {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open nav {
        position: fixed;
        inset: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        padding: 120px 32px 48px;
        background: var(--background);
        transform: none;
    }

    body.menu-open nav a {
        padding: 6px 0;
        font-family: "Berlin Display", Arial, Helvetica, sans-serif;
        font-size: clamp(2.2rem, 9vw, 3.4rem);
        font-weight: 900;
        letter-spacing: -0.02em;
        line-height: 1.1;
    }
}

/* Phones: smaller mark, bigger name, so the name is as wide as the mark */
@media (max-width: 600px) {
    .site-logo {
        width: 90px;
    }

    .logo-name {
        font-size: 10.8px;
    }
}

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