/* Frost Gully Violins – site stylesheet.
   Palette from the logo (moss ink #4f4f24, the red of its flowers) and from the shop's own photos
   (varnish amber, spruce, the dark showroom wall). Libre Caslon Display for headlines, Mona Sans for text,
   Libre Caslon Text italic for quotes. Signature: the four strings of the home page (G D A E), each a
   link, plucked one after another when the page opens. */

@font-face {
    font-family: "Libre Caslon Display";
    src: url("/fonts/libre-caslon-display.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Libre Caslon Text";
    src: url("/fonts/libre-caslon-text-italic.woff2") format("woff2");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Mona Sans";
    src: url("/fonts/mona-sans.woff2") format("woff2");
    font-weight: 200 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --moss: #4f4f24;
    --moss-deep: #363716;
    --night: #24250f;
    --night-2: #2f3015;
    --paper: #eef0e2;
    --card: #fbfbf5;
    --ink: #23240f;
    --muted: #4d4f33;
    --line: #cfd2b8;
    --varnish: #e0a058;
    --varnish-deep: #87460f;
    --cardinal: #a3232c;
    --cardinal-dark: #821a22;
    --on-dark: #f1efe0;
    --on-dark-muted: #c9c8b0;
    --radius: 18px;
    --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
    --text: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --italic: "Libre Caslon Text", Georgia, serif;
    --lb-accent: #e0a058;
    --lb-accent-soft: rgba(224, 160, 88, .25);
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-stretch: 96%;
    /* Libre Caslon has an s-t ligature in liga: too archaic for running text */
    font-variant-ligatures: no-common-ligatures no-discretionary-ligatures no-historical-ligatures;
}

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

a {
    color: var(--varnish-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--cardinal-dark);
}

:focus-visible {
    outline: 3px solid var(--cardinal);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
}

h2 {
    font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
}

h3,
.h3 {
    font-family: var(--text);
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.3;
    margin: 1.6em 0 .4em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrap.narrow {
    max-width: 820px;
}

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--night);
    color: var(--on-dark);
    padding: .6rem 1rem;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
}

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 48px;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    background: var(--cardinal);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
    transition: background-color .2s, transform .2s;
}

.btn:hover {
    background: var(--cardinal-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--on-dark);
    box-shadow: inset 0 0 0 2px rgba(241, 239, 224, .55);
}

.btn-ghost:hover {
    background: rgba(241, 239, 224, .12);
    color: var(--on-dark);
}

.text-link {
    font-weight: 650;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(238, 240, 226, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.brand {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

.brand img {
    width: 186px;
    height: auto;
}

.call {
    order: 3;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: var(--moss);
    color: var(--on-dark);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--night);
    color: var(--on-dark);
}

.nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .2rem;
    margin-left: auto;
}

.nav a {
    padding: .5rem .7rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 550;
    text-decoration: none;
}

.nav a:hover {
    background: rgba(79, 79, 36, .12);
    color: var(--ink);
}

.nav a[aria-current] {
    background: var(--moss);
    color: var(--on-dark);
}

@media (max-width: 980px) {
    .nav {
        order: 4;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
    .call {
        order: 2;
    }
}

@media (max-width: 520px) {
    .brand img {
        width: 150px;
    }
    .call {
        padding: .4rem .8rem;
        font-size: .95rem;
    }
    .nav {
        gap: .1rem;
    }
    .nav a {
        padding: .4rem .55rem;
        font-size: .95rem;
    }
}

/* ---- bands ---- */

.band {
    padding: clamp(3rem, 2rem + 4vw, 6rem) 0;
}

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

.band:not(.paper):not(.moss):not(.night) {
    background: var(--card);
}

.band.moss {
    background: var(--moss);
    color: var(--on-dark);
}

.band.night {
    background: radial-gradient(120% 140% at 0% 0%, #3b3d1b 0%, var(--night) 60%);
    color: var(--on-dark);
}

.band.moss a {
    color: #f7d7a8;
}

.band.night a:not(.btn) {
    color: var(--varnish);
}

.band.moss a:hover,
.band.night a:not(.btn):hover {
    color: #fff;
}

.section-title {
    max-width: 22ch;
}

.intro {
    font-size: 1.2rem;
    line-height: 1.55;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: center;
}

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

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

.framed a {
    display: block;
}

.framed img {
    border-radius: var(--radius);
    box-shadow: 0 24px 50px -24px rgba(36, 37, 15, .55);
}

figure {
    margin: 0;
}

.checks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
}

.checks li {
    position: relative;
    padding: .55rem 0 .55rem 2rem;
    border-top: 1px solid var(--line);
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.2rem;
    width: 1.2rem;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cardinal), var(--varnish-deep));
}

/* ---- home: hero and the four strings ---- */

.hero {
    position: relative;
    background:
        radial-gradient(70% 90% at 85% 10%, rgba(194, 122, 44, .28), transparent 65%),
        linear-gradient(160deg, #343617 0%, var(--night) 55%, #1d1e0c 100%);
    color: var(--on-dark);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(1.5rem, 1rem + 3vw, 4rem);
    align-items: end;
    padding-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.hero-kicker {
    font-family: var(--italic);
    font-style: italic;
    font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
    color: var(--varnish);
    margin-bottom: 1rem;
}

.hero h1 {
    max-width: 13ch;
    margin-bottom: .35em;
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.hero .lead {
    max-width: 34rem;
    font-size: 1.2rem;
    color: var(--on-dark-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.6rem;
    padding-bottom: 1rem;
}

.hero-photo {
    align-self: stretch;
    max-height: 470px;
}

.hero-photo a,
.hero-photo img {
    height: 100%;
    width: 100%;
}

.hero-photo img {
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 48% 48% 20px 20px / 26% 26% 20px 20px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

.strings {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.strings ul {
    list-style: none;
    margin: 0 auto;
}

.string a {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 15rem) minmax(3rem, 1fr);
    align-items: center;
    gap: 1rem;
    padding: .4rem 0;
    color: var(--on-dark);
    text-decoration: none;
}

.note {
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1;
    color: var(--varnish);
    text-align: center;
}

.string-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 650;
}

.string-text small {
    display: block;
    font-size: .92rem;
    color: var(--on-dark-muted);
}

.wire {
    position: relative;
    height: var(--gauge, 2px);
    border-radius: 2px;
    background: linear-gradient(180deg, #f3f1e4, #9c9a86);
}

.string-g .wire,
.string-d .wire {
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #e7d6b5, #8f7c58);
}

.string-g { --gauge: 5px; }
.string-d { --gauge: 4px; }
.string-a { --gauge: 3px; }
.string-e { --gauge: 2px; }

.wire::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(240, 190, 120, .85), rgba(224, 160, 88, .25) 60%, rgba(224, 160, 88, 0) 100%);
    opacity: 0;
    transform: scaleY(0);
    animation: pluck 1.6s cubic-bezier(.3, .6, .4, 1) calc(.7s + var(--i) * .32s) both;
}

.string a:hover .wire::after,
.string a:focus-visible .wire::after {
    animation: pluck-again 1.3s cubic-bezier(.3, .6, .4, 1) both;
}

.string a:hover .string-text strong,
.string a:focus-visible .string-text strong {
    color: var(--varnish);
}

@keyframes pluck {
    0% { opacity: 0; transform: scaleY(0); }
    8% { opacity: 1; transform: scaleY(1); }
    20% { transform: scaleY(-.75); }
    34% { transform: scaleY(.55); }
    50% { transform: scaleY(-.35); }
    68% { opacity: .7; transform: scaleY(.18); }
    100% { opacity: 0; transform: scaleY(0); }
}

@keyframes pluck-again {
    0% { opacity: 0; transform: scaleY(0); }
    8% { opacity: 1; transform: scaleY(1); }
    20% { transform: scaleY(-.75); }
    34% { transform: scaleY(.55); }
    50% { transform: scaleY(-.35); }
    68% { opacity: .7; transform: scaleY(.18); }
    100% { opacity: 0; transform: scaleY(0); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-photo {
        max-height: 300px;
    }
    .hero-photo img {
        border-radius: 40% 40% 18px 18px / 30% 30% 18px 18px;
    }
    .strings {
        margin-top: 1.5rem;
    }
    .string a {
        grid-template-columns: 2.2rem minmax(0, 1fr);
        row-gap: .35rem;
        padding: .7rem 0;
    }
    .wire {
        grid-column: 1 / -1;
    }
}

/* ---- home: bento of the three services ---- */

.bento {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
    margin-top: 2rem;
}

.tile {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
}

.tile:hover {
    color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -26px rgba(36, 37, 15, .6);
}

.tile img {
    border-radius: 12px;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.tile-big {
    grid-row: span 2;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    background: var(--night);
    color: var(--on-dark);
    border-color: var(--night);
}

.tile-big:hover {
    color: var(--on-dark);
}

.tile-big img {
    aspect-ratio: 4 / 3;
    object-position: 50% 35%;
}

.tile-body strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: .4rem;
}

.tile-big .tile-body strong {
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
    color: var(--varnish);
}

.tile-body span {
    display: block;
}

.tile-big .tile-body {
    padding: .3rem .4rem .6rem;
    color: var(--on-dark-muted);
}

@media (max-width: 820px) {
    .bento {
        grid-template-columns: minmax(0, 1fr);
    }
    .tile-big {
        grid-row: auto;
    }
}

@media (max-width: 520px) {
    .tile {
        grid-template-columns: minmax(0, 1fr);
    }
    .tile img {
        aspect-ratio: 16 / 10;
    }
}

/* ---- quotes ---- */

.quote {
    position: relative;
    margin: 0;
    max-width: 52rem;
    padding-left: clamp(0rem, 4vw, 4rem);
}

.quote p {
    font-family: var(--italic);
    font-style: italic;
    font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
    line-height: 1.45;
}

.quote footer {
    font-weight: 600;
    color: var(--on-dark-muted);
}

.quote footer::before {
    content: "";
    display: inline-block;
    width: 2.5rem;
    height: 2px;
    margin-right: .8rem;
    vertical-align: middle;
    background: var(--varnish);
}

.quote-small {
    padding: 1.6rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .18);
}

.quote-small p {
    font-size: 1.2rem;
}

/* ---- community cards ---- */

.community {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.8rem;
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    border-top: 5px solid var(--cardinal);
    transition: transform .25s;
}

.community:hover {
    color: var(--ink);
    transform: translateY(-4px);
}

.community strong {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.1;
}

.community .text-link {
    margin-top: auto;
    color: var(--varnish-deep);
    text-decoration: underline;
}

/* ---- visit band ---- */

.visit-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    align-items: center;
}

.visit-photo img {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.visit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.visit-list dt {
    font-weight: 700;
    font-size: .95rem;
    color: var(--varnish);
}

.paper .visit-list dt {
    color: var(--varnish-deep);
}

.visit-list dd {
    margin: .2rem 0 0;
    overflow-wrap: anywhere;
}

.big-phone {
    font-family: var(--display);
    font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

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

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

/* ---- inner pages ---- */

.page-hero {
    position: relative;
    padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(194, 122, 44, .25), transparent 60%),
        linear-gradient(160deg, #343617 0%, var(--night) 70%);
    color: var(--on-dark);
    overflow: hidden;
}

.page-hero::after {
    /* four strings across the foot of every page header */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.2rem;
    height: 34px;
    background:
        linear-gradient(#d8c8a6, #d8c8a6) 0 0 / 100% 4px no-repeat,
        linear-gradient(#cfc4a8, #cfc4a8) 0 10px / 100% 3px no-repeat,
        linear-gradient(#e2e0d2, #e2e0d2) 0 20px / 100% 2px no-repeat,
        linear-gradient(#efeee3, #efeee3) 0 29px / 100% 1px no-repeat;
    opacity: .35;
}

.page-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
}

.page-hero .lead {
    max-width: 40rem;
    font-size: 1.2rem;
    color: var(--on-dark-muted);
    margin: 0;
}

.maker {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--night);
    color: var(--on-dark);
}

.maker h2 {
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
    color: var(--varnish);
}

.maker a:not(.btn) {
    color: var(--varnish);
}

.maker a:not(.btn):hover {
    color: #fff;
}

.credit {
    margin-top: 1.5rem;
    font-size: .95rem;
    color: var(--muted);
}

/* story */

.story {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: start;
}

.story-text p:first-of-type::first-letter {
    float: left;
    font-family: var(--display);
    font-size: 4.4rem;
    line-height: .85;
    margin: .3rem .6rem 0 0;
    color: var(--cardinal);
}

.trail {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.6rem;
    border-left: 3px solid var(--moss);
    counter-reset: none;
}

.trail li {
    position: relative;
    padding: 0 0 1.4rem;
}

.trail li::before {
    content: "";
    position: absolute;
    left: calc(-1.6rem - 9px);
    top: .4rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--cardinal);
}

.trail strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.15;
}

.trail span {
    color: var(--muted);
}

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

.photo-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 1rem;
}

.photo-row img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}

@media (max-width: 820px) {
    .photo-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .photo-row img {
        height: 180px;
    }
}

/* galleries: a masonry of columns */

.gallery {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    columns: 3 240px;
    column-gap: 1rem;
}

.gallery li {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
}

.gallery img {
    width: 100%;
    transition: transform .4s;
}

.gallery a:hover img {
    transform: scale(1.04);
}

/* rental contract and FAQ */

.contract {
    padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.contract h3:first-of-type {
    margin-top: 1.2em;
}

.faq {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    position: relative;
    padding: 1.1rem 2.5rem 1.1rem 0;
    cursor: pointer;
    font-weight: 650;
    font-size: 1.1rem;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: .4rem;
    top: .7rem;
    font-family: var(--display);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--cardinal);
    transition: transform .25s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin: 0 0 1.2rem;
    max-width: 62ch;
}

/* teachers */

.teachers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
    gap: 1rem;
}

.teachers li {
    padding: 1.2rem 1.3rem;
    border-radius: 14px;
    background: var(--paper);
    border-left: 4px solid var(--moss);
}

.teachers h2 {
    font-family: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .2rem;
}

.teachers p {
    margin: 0;
    overflow-wrap: anywhere;
}

.t-plays {
    font-family: var(--italic);
    font-style: italic;
    color: var(--cardinal-dark);
}

.t-studio,
.t-area {
    color: var(--muted);
}

.t-contact {
    margin-top: .5rem !important;
    font-size: .92rem;
}

/* organizations */

.orgs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 1rem;
}

.orgs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    height: 100%;
    padding: 1.3rem 1rem;
    border-radius: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    text-align: center;
    font-weight: 650;
    text-decoration: none;
    transition: transform .25s;
}

.orgs a:hover {
    color: var(--ink);
    transform: translateY(-3px);
}

.orgs img {
    width: 110px;
    height: 110px;
    padding: 12px;
    border-radius: 50%;
    background: #fff;
}

.orgs .on-dark img {
    background: var(--moss-deep);
}

/* contact */

.contact-card,
.form-card {
    padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
    border-radius: var(--radius);
    background: var(--card);
}

.contact-card .visit-list {
    margin-top: 1rem;
}

.big-phone-line {
    margin-bottom: .5rem;
}

.contact-form label {
    display: block;
    font-weight: 650;
    margin-bottom: .3rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1.5px solid #a9ac8c;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form textarea {
    min-height: 10rem;
}

.contact-form > div {
    margin-bottom: 1rem;
}

.contact-form ::placeholder {
    color: #6c6e52;
}

.form-hint {
    margin-top: .8rem;
    font-size: .92rem;
    color: var(--muted);
}

.contact-sent {
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    background: #e3ecd2;
    border-left: 4px solid var(--moss);
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */

.foot {
    background: var(--night);
    color: var(--on-dark-muted);
    padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.5rem;
}

.foot a {
    color: var(--on-dark);
}

.foot a:hover {
    color: var(--varnish);
}

.foot h2 {
    font-family: var(--text);
    font-size: 1rem;
    font-weight: 700;
    color: var(--varnish);
    margin-bottom: .8rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.foot-label {
    /* the logo on a paper label, like the maker's label inside an instrument */
    align-self: start;
    padding: 1.2rem 1.3rem 1rem;
    background: var(--paper);
    color: var(--ink);
    border-radius: 6px;
    outline: 1px solid var(--moss);
    outline-offset: -7px;
    box-shadow: 0 0 0 1px var(--line);
}

.foot-label img {
    width: 100%;
    max-width: 240px;
}

.label-line {
    font-family: var(--italic);
    font-style: italic;
    margin: .7rem 0 .3rem;
    line-height: 1.4;
}

.label-small {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
}

.foot address {
    font-style: normal;
}

.hours {
    margin: 1rem 0 0;
}

.hours dt {
    color: var(--on-dark);
    font-weight: 600;
}

.hours dd {
    margin: 0 0 .5rem;
}

.foot-phone {
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.foot p {
    overflow-wrap: anywhere;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
}

.foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot-links li {
    margin-bottom: .35rem;
}

.foot-bottom {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(241, 239, 224, .18);
    font-size: .92rem;
}

.foot-bottom p {
    margin: 0;
}

@media (max-width: 980px) {
    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 20px;
    text-align: center;
}

.not-found > div {
    max-width: 34rem;
}

.not-found img {
    margin: 0 auto 2rem;
    width: 274px;
}

.not-found h1 {
    font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
}

/* ---- motion ---- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .tile,
        .community,
        .teachers li,
        .gallery li {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 35%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
