/* ==========================================================================
   Falling Piano Studios
   Palette: pavement tan + printer's black. Street-sign type, dashed road lines,
   caution tape.
   ========================================================================== */

:root {
    --tan: #d8c7a1;
    --chalk: #e9dfc6;
    --deep: #b39b6b;
    --ink: #070707;
    --soot: #1b1813;
    --muted: #4a3d24;

    --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
    --text: 'Newsreader', Georgia, 'Times New Roman', serif;

    --wrap: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(3.5rem, 8vw, 6.5rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--tan);
    /* faint paper grain */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .05 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.1875rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img,
svg { max-width: 100%; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 4px; }

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.wrap {
    width: min(100% - (var(--gutter) * 2), var(--wrap));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--ink);
    color: var(--tan);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.2rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */

h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 900;
    text-transform: uppercase;
    line-height: .92;
}

h1 { font-size: clamp(3.3rem, 9vw, 6.75rem); line-height: .87; }
h2 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.lede {
    font-size: clamp(1.25rem, 1.2rem + .5vw, 1.5rem);
    line-height: 1.5;
    max-width: 44ch;
}

.aside-note {
    font-style: italic;
    color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 4px solid var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .9rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

.ico {
    width: 2.1em;
    height: 1.6em;
    fill: currentColor;
    flex: none;
}

.site-nav ul {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    padding-block: .25rem;
    border-bottom: 4px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
    .js .nav-toggle {
        display: inline-block;
        padding: .35rem .9rem;
        border: 3px solid var(--ink);
        background: transparent;
        color: var(--ink);
        font-family: var(--display);
        font-weight: 800;
        font-size: 1.25rem;
        cursor: pointer;
    }
    .header-inner { flex-wrap: wrap; }
    .js .site-nav { display: none; flex-basis: 100%; }
    .js .site-nav.is-open { display: block; }
    .site-nav ul {
        flex-direction: column;
        gap: .25rem;
        padding-top: .75rem;
    }
    .site-nav a { display: inline-block; font-size: 1.75rem; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: .55em 1.15em .5em;
    border: 3px solid var(--ink);
    background: var(--ink);
    color: var(--tan);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.45rem;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: 5px 5px 0 var(--deep);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover {
    text-decoration: none;
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--deep);
}
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--deep); }

.btn-outline {
    background: transparent;
    color: var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
}
.btn-outline:hover { box-shadow: 2px 2px 0 var(--ink); }
.btn-outline:active { box-shadow: 0 0 0 var(--ink); }

.btn-on-dark {
    background: var(--tan);
    color: var(--ink);
    border-color: var(--tan);
    box-shadow: 5px 5px 0 var(--deep);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    margin-top: 2rem;
}

/* ---------- Status tag (caution-stripe marker) ---------- */

.status {
    position: relative;
    display: inline-block;
    padding: .2em .7em .1em 2.2em;
    border: 3px solid currentColor;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: nowrap;
}
.status::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 1.5em;
    border-right: 3px solid currentColor;
    background: repeating-linear-gradient(-45deg, currentColor 0 4px, transparent 4px 8px);
}

/* ---------- Home: hero ---------- */

.hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-art { margin: 0; }

.hero-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

.hero-logo {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-caption {
    margin: 1rem 0 0;
    text-align: center;
    max-width: none;
    font-style: italic;
    color: var(--muted);
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 460px; margin-inline: auto; }
}

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

/* ---------- Caution tape ---------- */

.tape {
    background-color: var(--chalk);
    border-block: 0;
    overflow: hidden;
}
.tape::before,
.tape::after {
    content: "";
    display: block;
    height: 14px;
    background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--chalk) 14px 28px);
}
.tape-row {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-block: .55rem .5rem;
    white-space: nowrap;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.1;
}
.tape-row .ico { width: 1.9em; height: 1.4em; }

/* ---------- Generic sections ---------- */

.section { padding-block: var(--section); }

.section-chalk { background: var(--chalk); }

.section-dark {
    background: var(--ink);
    color: var(--tan);
}
.section-dark a:focus-visible { outline-color: var(--tan); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(1.75rem, 6vw, 5rem);
    align-items: start;
}
@media (max-width: 860px) {
    .split { grid-template-columns: minmax(0, 1fr); }
}

.split + .split { margin-top: clamp(3rem, 7vw, 5rem); }

.text-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.5rem;
}

/* ---------- House rules ---------- */

.rules { margin: 2.5rem 0 0; }

.rule {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 1rem clamp(1.75rem, 6vw, 5rem);
    padding-block: 1.6rem 1.75rem;
    border-top: 4px dashed var(--deep);   /* street center line */
}
.rule:last-child { border-bottom: 4px dashed var(--deep); }

.rule dt {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    line-height: .98;
    text-transform: uppercase;
}
.rule dd { margin: 0; max-width: 52ch; }

@media (max-width: 860px) {
    .rule { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Format / project rows ---------- */

.rows { margin-top: 2.5rem; }

.row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(1.75rem, 6vw, 5rem);
    row-gap: 1rem;
    align-items: start;
    padding-block: 1.75rem;
    border-top: 4px solid var(--ink);
}
.row > .row-title { grid-column: 1; grid-row: 1 / span 2; }
.row > .row-body { grid-column: 2; grid-row: 1; }
.row > .status { grid-column: 2; grid-row: 2; justify-self: start; }
.row:last-child { border-bottom: 4px solid var(--ink); }

.row-title {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(2.6rem, 6.4vw, 5.25rem);
    line-height: .88;
    text-transform: uppercase;
}
.row-title.is-compact { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }

.row-kind {
    display: block;
    margin-top: .5rem;
    font-family: var(--text);
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: none;
    color: var(--muted);
}

.row-body p { margin: 0; }
.row-body .row-link { display: inline-block; margin-top: .6rem; font-weight: 600; }

@media (max-width: 860px) {
    .row { grid-template-columns: minmax(0, 1fr); }
    .row > .row-title,
    .row > .row-body,
    .row > .status { grid-column: 1; grid-row: auto; }
}

/* ---------- Call to action + skyline ---------- */

.cta {
    --sky-bg: var(--tan);
    padding-block: var(--section) 3rem;
}
.cta h2 { max-width: 20ch; }
.cta .lede { margin-top: 1.5rem; }

.skyline {
    display: block;
    width: 100%;
    height: clamp(120px, 17vw, 230px);
    --sky-bg: var(--tan);
}
.sk-ink { fill: var(--ink); }
.sk-win { fill: var(--sky-bg, var(--tan)); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: var(--tan);
}
.site-footer a { text-decoration-color: var(--deep); }
.site-footer a:focus-visible { outline-color: var(--tan); }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: 2.5rem 3rem;
}

.footer-brand p { margin-top: 1.1rem; max-width: 36ch; }

.site-footer h2 {
    margin-bottom: .75rem;
    font-size: 1.7rem;
    color: var(--deep);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: .3rem; }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 2rem;
    padding-block: 1.25rem 1.75rem;
    border-top: 4px dashed #2e2820;
    font-size: 1rem;
    color: var(--deep);
}
.footer-base p { margin: 0; max-width: none; }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* ---------- Inner pages ---------- */

.page-head {
    padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
    border-bottom: 4px dashed var(--ink);
}
.page-head h1 { max-width: 16ch; }
.page-head .lede { margin-top: 1.75rem; }

.about-figure {
    margin: 2rem 0 0;
    max-width: 440px;
}
.about-figure img { display: block; width: 100%; height: auto; }
.about-figure figcaption {
    margin-top: .5rem;
    font-style: italic;
    color: var(--muted);
    font-size: 1.05rem;
}

.facts { margin: 2.25rem 0 0; }
.fact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: .5rem 2rem;
    padding-block: 1.1rem;
    border-top: 4px dashed var(--deep);
}
.fact:last-child { border-bottom: 4px dashed var(--deep); }
.fact dt {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.05;
    text-transform: uppercase;
}
.fact dd { margin: 0; }
@media (max-width: 640px) {
    .fact { grid-template-columns: minmax(0, 1fr); }
}

.warning-panel {
    margin-top: 3rem;
    border: 4px solid var(--ink);
    background: var(--chalk);
}
.warning-panel::before {
    content: "";
    display: block;
    height: 16px;
    background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--chalk) 14px 28px);
    border-bottom: 4px solid var(--ink);
}
.warning-panel .inner { padding: 1.5rem 1.75rem 1.75rem; }
.warning-panel h3 { margin-bottom: .6rem; }

/* ---------- Contact form ---------- */

.form { display: grid; gap: 1.4rem; }

.field label {
    display: block;
    margin-bottom: .35rem;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.35rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 3px solid var(--ink);
    border-radius: 0;
    background: var(--chalk);
    color: var(--ink);
    font: inherit;
    font-size: 1.1rem;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    background: #f3ecd8;
}

.field .hint { margin: .35rem 0 0; font-size: 1rem; color: var(--muted); }

/* Honeypot: real people never see this. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    margin-bottom: 1.75rem;
    border: 4px solid var(--ink);
    background: var(--chalk);
}
.notice::before {
    content: "";
    display: block;
    height: 12px;
    background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--chalk) 12px 24px);
    border-bottom: 4px solid var(--ink);
}
.notice .inner { padding: 1rem 1.25rem 1.2rem; }
.notice h2 { font-size: 1.9rem; margin-bottom: .4rem; }
.notice ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.notice p { margin: 0; }

.contact-details { margin-top: 2rem; }
.contact-details a { font-weight: 600; }

/* ---------- 404 ---------- */

.lost { padding-block: var(--section); }
.lost h1 { max-width: 10ch; margin-bottom: 1.5rem; }

.rows-flush { margin-top: 0; }
.note-spaced { margin-top: 2rem; }
