/* Firefly Pottery: clay cream by day, firefly night after dark.
   Palette from the logo (plate indigo #35378b, firefly gold #f6c445) and the glazes of the studio.
   Every theme colour is a custom property; [data-theme="dark"] on <html> switches them (js/theme.js). */

@font-face {
    font-family: "Fredoka";
    src: url("/fonts/fredoka.woff2") format("woff2");
    font-weight: 300 700;
    font-stretch: 75% 125%;
    font-display: swap;
}

@font-face {
    font-family: "Lexend";
    src: url("/fonts/lexend.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --night: #1b1c4f;
    --night-2: #35378b;
    --night-3: #4a4cb0;
    --gold: #f6c445;
    --gold-soft: #ffe39a;
    --cream: #fbf5ea;
    --lilac: #b9a4f0;
    --coral: #ef7d5e;
    --teal: #49b9aa;
    --pink: #f49ac1;

    --bg: #fbf5ea;
    --surface: #ffffff;
    --surface-2: #f3eadb;
    --text: #23244f;
    --muted: #4f5178;
    --line: #e3d8c4;
    --accent: #35378b;
    --accent-text: #ffffff;
    --link: #35378b;
    --header-bg: rgba(251, 245, 234, 0.86);
    --shadow: 0 18px 40px -22px rgba(27, 28, 79, 0.45);
    --band: #35378b;

    --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
    --text-font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 26px;
    --wrap: 1180px;
}

:root[data-theme="dark"] {
    --bg: #15163d;
    --surface: #1f2156;
    --surface-2: #262968;
    --text: #f6f0e4;
    --muted: #c8c5e8;
    --line: #363a80;
    --accent: #f6c445;
    --accent-text: #15163d;
    --link: #ffd66b;
    --header-bg: rgba(21, 22, 61, 0.86);
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
    --band: #262968;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--text-font);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 350;
    overflow-x: hidden;
}

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

a {
    color: var(--link);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

a:hover {
    text-decoration-thickness: 3px;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    font-weight: 650;
}

h2 {
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
}

h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

p {
    margin: 0 0 1em;
}

strong {
    font-weight: 600;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--night);
    font-weight: 600;
    border-radius: 12px;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--display);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(246, 196, 69, 0.28), 0 0 18px 4px rgba(246, 196, 69, 0.55);
}

.lead {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--muted);
    max-width: 62ch;
}

.note {
    font-size: 0.92rem;
    color: var(--muted);
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 50px;
    padding: 0.7em 1.4em;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--night);
    box-shadow: 0 10px 30px -10px rgba(246, 196, 69, 0.8);
}

.btn-gold:hover {
    background: var(--gold-soft);
}

.btn-ghost {
    border-color: rgba(251, 245, 234, 0.55);
    color: var(--cream);
}

.btn-ghost:hover {
    border-color: var(--cream);
    background: rgba(251, 245, 234, 0.08);
}

.btn-solid {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-line {
    border-color: var(--accent);
    color: var(--link);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.4rem;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-block: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: auto;
    transition: transform 0.4s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-10deg) translateY(-2px);
}

.brand-words .wm {
    width: 168px;
    height: auto;
}

.wm-light {
    display: none;
}

[data-theme="dark"] .wm-ink {
    display: none;
}

[data-theme="dark"] .wm-light {
    display: block;
}

.top-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
}

.top-call:hover {
    filter: brightness(1.1);
}

.theme,
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: 600 1rem var(--display);
    cursor: pointer;
}

.theme[hidden],
.menu-btn[hidden] {
    display: none;
}

.theme svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.theme-moon {
    fill: currentColor !important;
    stroke: none !important;
}

.theme-sun {
    display: none;
}

[data-theme="dark"] .theme-sun {
    display: block;
}

[data-theme="dark"] .theme-moon {
    display: none;
}

.menu-btn {
    padding: 0 14px;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s ease;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-open .menu-bars {
    background: transparent;
}

.menu-open .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    order: 10;
}

.nav a {
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--text);
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
}

.nav a:hover {
    background: var(--surface-2);
}

.nav a[aria-current] {
    background: var(--surface-2);
    box-shadow: inset 0 -3px 0 var(--gold);
}

.nav a[aria-current="page"] {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: none;
}

@media (max-width: 859px) {
    .top-call span {
        display: none;
    }

    .top-call {
        padding: 12px;
    }

    .has-menu .nav {
        display: none;
        flex-direction: column;
        padding: 8px 0 14px;
    }

    .has-menu.menu-open .nav {
        display: flex;
    }

    .has-menu .nav a {
        padding: 12px 16px;
        font-size: 1.2rem;
    }
}

@media (max-width: 420px) {
    .brand-words .wm {
        width: 124px;
    }

    .brand-mark {
        width: 40px;
    }

    .top-row {
        gap: 8px 10px;
    }
}

@media (min-width: 860px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .nav {
        width: auto;
        order: 0;
        justify-content: flex-end;
    }

    .brand {
        margin-right: 0;
    }

    .nav {
        margin-left: auto;
    }

    .menu-btn {
        display: none !important;
    }
}

@media (min-width: 860px) and (max-width: 1120px) {
    .top-call span {
        display: none;
    }

    .top-call {
        padding: 12px;
    }

    .nav a {
        padding: 6px 10px;
        font-size: 1rem;
    }
}

/* ---- night: the hero and the bands that share its sky ---- */

.night {
    position: relative;
    isolation: isolate;
    color: var(--cream);
    background:
        radial-gradient(120% 80% at 85% 10%, rgba(185, 164, 240, 0.35), transparent 55%),
        radial-gradient(90% 70% at 5% 100%, rgba(74, 76, 176, 0.6), transparent 60%),
        linear-gradient(160deg, #35378b 0%, #23246a 45%, #15163d 100%);
    overflow: hidden;
}

.night::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 32% 68%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 58% 14%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 76% 44%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 90% 80%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 46% 88%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 6% 56%, rgba(255, 255, 255, 0.5), transparent);
}

.night h1,
.night h2,
.night h3 {
    color: #ffffff;
}

.night p,
.night li,
.night .lead {
    color: #e9e4f7;
}

.night a:not(.btn) {
    color: var(--gold-soft);
}

.night .eyebrow {
    color: var(--gold-soft);
}

.flies {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.fly {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 10px 4px rgba(246, 196, 69, 0.75), 0 0 34px 10px rgba(246, 196, 69, 0.3);
    opacity: 0.9;
}

.fly:nth-child(1) { left: 8%; top: 30%; }
.fly:nth-child(2) { left: 22%; top: 78%; width: 6px; height: 6px; }
.fly:nth-child(3) { left: 46%; top: 12%; width: 7px; height: 7px; }
.fly:nth-child(4) { left: 62%; top: 70%; }
.fly:nth-child(5) { left: 88%; top: 22%; width: 6px; height: 6px; }
.fly:nth-child(6) { left: 94%; top: 62%; width: 7px; height: 7px; }
.fly:nth-child(7) { left: 36%; top: 48%; width: 5px; height: 5px; }

@media (prefers-reduced-motion: no-preference) {
    .fly {
        animation: drift 9s ease-in-out infinite alternate, blink 3.2s ease-in-out infinite;
    }

    .fly:nth-child(2n) { animation-duration: 12s, 4.1s; animation-delay: -3s, -1s; }
    .fly:nth-child(3n) { animation-duration: 10s, 2.6s; animation-delay: -6s, -2s; }

    @keyframes drift {
        0% { translate: 0 0; }
        50% { translate: 26px -18px; }
        100% { translate: -14px 22px; }
    }

    @keyframes blink {
        0%, 100% { opacity: 0.95; }
        45% { opacity: 0.25; }
        60% { opacity: 1; }
    }
}

/* ---- home hero ---- */

.hero {
    padding: clamp(36px, 7vw, 90px) 0 clamp(48px, 8vw, 110px);
}

.hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 8.4vw, 6.2rem);
    line-height: 0.98;
    margin-bottom: 0.35em;
}

.hero h1 .glow {
    display: block;
    color: var(--gold);
    text-shadow: 0 0 28px rgba(246, 196, 69, 0.55);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-facts li {
    padding: 6px 14px;
    border: 1px solid rgba(251, 245, 234, 0.3);
    border-radius: 999px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
}

.hero-art {
    position: relative;
    width: min(100%, 560px);
    margin-inline: auto;
}

.plate-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.plate-spin {
    transform-origin: 300px 290px;
}

.glaze {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plate-fly {
    filter: drop-shadow(0 0 8px rgba(246, 196, 69, 0.9));
}

@media (prefers-reduced-motion: no-preference) {
    .plate-spin {
        animation: spin 60s linear infinite;
    }

    .glaze {
        stroke-dasharray: var(--len) var(--len);
        stroke-dashoffset: var(--len);
        animation: paint 1.6s cubic-bezier(0.6, 0, 0.3, 1) forwards;
        animation-delay: var(--d, 0.3s);
    }

    .dot {
        transform-box: fill-box;
        transform-origin: center;
        scale: 0;
        animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
        animation-delay: var(--d, 1.6s);
    }

    .plate-fly {
        animation: hover 4s ease-in-out infinite alternate;
    }

    .hero-copy > * {
        animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
    .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
    .hero-copy > :nth-child(5) { animation-delay: 0.32s; }

    @keyframes spin {
        to { rotate: 360deg; }
    }

    @keyframes paint {
        to { stroke-dashoffset: 0; }
    }

    @keyframes pop {
        to { scale: 1; }
    }

    @keyframes hover {
        from { translate: 0 0; }
        to { translate: 0 -14px; }
    }

    @keyframes rise {
        from { opacity: 0; translate: 0 24px; }
        to { opacity: 1; translate: 0 0; }
    }
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.08fr 1fr;
    }
}

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

.section {
    padding: clamp(56px, 8vw, 110px) 0;
}

.section-tight {
    padding: clamp(36px, 5vw, 64px) 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.alt {
    background: var(--surface-2);
}

/* reveal as the visitor scrolls; the finished state without support */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 5% cover 28%;
        }
    }
}

/* ---- how it works: a numbered trail ---- */

.trail {
    display: grid;
    gap: 18px;
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
}

.trail li {
    position: relative;
    padding: 26px 24px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.trail li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    font: 700 2rem/1 var(--display);
    color: var(--night);
    background: var(--c, var(--gold));
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

.trail li:nth-child(2) { --c: var(--lilac); }
.trail li:nth-child(3) { --c: var(--coral); }
.trail li:nth-child(4) { --c: var(--teal); }

.trail h3 {
    margin-bottom: 0.3em;
}

.trail p {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 720px) {
    .trail {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1040px) {
    .trail {
        grid-template-columns: repeat(4, 1fr);
    }

    .trail li:nth-child(even) {
        translate: 0 34px;
    }
}

/* ---- bento of what we make ---- */

.bento {
    display: grid;
    gap: 16px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 22px;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    text-decoration: none;
    background: var(--night);
    box-shadow: var(--shadow);
}

.tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.6s ease;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(21, 22, 61, 0) 30%, rgba(21, 22, 61, 0.92) 100%);
}

.tile:hover img {
    scale: 1.05;
}

.tile h3 {
    margin: 0 0 0.2em;
    color: #ffffff;
}

.tile p {
    margin: 0;
    color: #ece8f8;
    font-size: 0.98rem;
}

.tile .tag {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--night);
    font: 600 0.85rem var(--display);
}

.tile-text {
    background: var(--night-2);
    justify-content: space-between;
}

.tile-text::after {
    display: none;
}

.tile-text .big {
    font: 650 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display);
    color: var(--gold);
}

@media (min-width: 720px) {
    .bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 240px;
    }

    .tile {
        min-height: 0;
        grid-column: span 2;
    }

    .tile:nth-child(1) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .tile:nth-child(2) {
        grid-column: span 3;
    }

    .tile:nth-child(3) {
        grid-column: span 3;
    }
}

/* ---- the seasonal strip: sideways ---- */

.strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 78%);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    margin: 0;
    list-style: none;
    scrollbar-color: var(--gold) transparent;
}

.strip > li {
    scroll-snap-align: start;
}

@media (min-width: 720px) {
    .strip {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
    }
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

a.card:hover {
    transform: translateY(-4px) rotate(-0.4deg);
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-body {
    padding: 18px 20px 22px;
}

.card-body h3 {
    margin-bottom: 0.25em;
    color: var(--text);
}

.card-body p {
    margin: 0;
    color: var(--muted);
}

.card .price {
    display: inline-block;
    margin-bottom: 8px;
    font: 600 1rem var(--display);
    color: var(--link);
}

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

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

.band {
    border-radius: calc(var(--radius) + 10px);
    padding: clamp(28px, 5vw, 56px);
}

.band-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

@media (min-width: 860px) {
    .band-grid {
        grid-template-columns: 1.3fr 1fr;
    }
}

.band-phone {
    font: 650 clamp(2rem, 6vw, 3.6rem)/1 var(--display);
    color: var(--gold) !important;
    text-decoration: none;
    white-space: nowrap;
}

.band-phone:hover {
    text-shadow: 0 0 24px rgba(246, 196, 69, 0.6);
}

.gift {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 4vw, 44px);
    border-radius: calc(var(--radius) + 10px);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(244, 154, 193, 0.35), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.gift-logo {
    width: min(100%, 293px);
    border-radius: 22px;
    rotate: -3deg;
    box-shadow: 0 20px 40px -18px rgba(27, 28, 79, 0.7);
}

@media (min-width: 760px) {
    .gift {
        grid-template-columns: auto 1fr;
    }
}

/* ---- hours ---- */

.hours {
    display: grid;
    gap: 6px;
    margin: 0;
}

.hours div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.hours dt {
    font-weight: 500;
}

.hours dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.hours .late {
    box-shadow: inset 4px 0 0 var(--gold);
}

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

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

.quote {
    position: relative;
    margin: 0;
    padding: 28px 24px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.quote::before {
    content: "“";
    position: absolute;
    top: -18px;
    left: 18px;
    font: 700 4.5rem/1 var(--display);
    color: var(--gold);
    text-shadow: 0 2px 0 var(--night-2);
}

.quote p {
    margin: 0 0 12px;
}

.quote cite {
    font: 600 1rem var(--display);
    font-style: normal;
    color: var(--link);
}

.quotes-masonry {
    display: block;
    columns: 3 300px;
    column-gap: 18px;
}

.quotes-masonry .quote {
    break-inside: avoid;
    margin: 0 0 30px;
}

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

.page-hero {
    padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 76px);
}

.page-hero .lead {
    color: #e9e4f7;
}

.page-hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.page-hero-img {
    border-radius: var(--radius);
    box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.7);
    rotate: 2deg;
    max-height: 420px;
    width: auto;
    margin-inline: auto;
    object-fit: cover;
    border: 6px solid rgba(251, 245, 234, 0.9);
}

@media (min-width: 860px) {
    .page-hero-grid.has-img {
        grid-template-columns: 1.4fr 1fr;
    }
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #e9e4f7;
}

.crumbs a {
    color: var(--gold-soft);
}

.prose {
    max-width: 70ch;
}

.prose h2 {
    margin-top: 1.6em;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: 0.35em;
}

.prose li::marker {
    color: var(--coral);
}

.split {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1.15fr 1fr;
    }

    .split-rev {
        grid-template-columns: 1fr 1.15fr;
    }
}

.panel {
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.panel > :last-child {
    margin-bottom: 0;
}

.panel-gold {
    background: linear-gradient(140deg, #fff3c9, #ffe08a);
    color: #23244f;
    border-color: transparent;
}

.panel-gold h2,
.panel-gold h3,
.panel-gold p,
.panel-gold li {
    color: #23244f;
}

.panel-gold a {
    color: #23244f;
}

.kicker-price {
    font: 650 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display);
    color: var(--link);
    margin-bottom: 0.2em;
}

.panel-gold .kicker-price {
    color: #35378b;
}

/* price table */

.prices {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 1.4rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
}

.prices th,
.prices td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.prices tr:last-child th,
.prices tr:last-child td {
    border-bottom: 0;
}

.prices thead th {
    background: var(--surface-2);
    font: 600 0.95rem var(--display);
    letter-spacing: 0.02em;
}

.prices td.num {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.table-wrap {
    overflow-x: auto;
}

/* pictures */

.pic {
    margin: 0;
}

.pic a {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-2);
}

.pic img {
    width: 100%;
    transition: scale 0.4s ease;
}

.pic a:hover img {
    scale: 1.04;
}

.pic figcaption {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--muted);
}

.grid-pics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.grid-pics .pic img {
    aspect-ratio: 1;
    object-fit: cover;
}

.masonry {
    columns: 4 200px;
    column-gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.masonry > li {
    break-inside: avoid;
    margin-bottom: 14px;
}

/* documents */

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

.doc {
    margin: 0;
    padding: 12px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.doc a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.doc img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #ffffff;
}

.doc-wide img {
    aspect-ratio: 4 / 3;
}

.doc figcaption {
    padding: 10px 6px 4px;
    font-size: 0.95rem;
}

.doc figcaption strong {
    display: block;
    font-family: var(--display);
    font-size: 1.08rem;
}

/* sub-page siblings */

.siblings {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.siblings a {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: 500 1.02rem var(--display);
    text-decoration: none;
}

.siblings a:hover {
    border-color: var(--accent);
}

/* events */

.events {
    display: grid;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.event {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.event-when {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--night-2);
    color: #ffffff;
    font: 600 0.95rem var(--display);
}

.event h3 {
    margin-bottom: 0.35em;
}

.event p {
    color: var(--muted);
}

.event .pic img {
    aspect-ratio: auto;
}

@media (min-width: 760px) {
    .event {
        grid-template-columns: 280px 1fr;
        align-items: center;
    }
}

/* video */

.video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

.video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.video:hover img {
    opacity: 1;
}

.video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-play {
    position: absolute;
    inset: auto auto 16px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--night);
    font: 600 1rem var(--display);
}

.videos {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.videos figure {
    margin: 0;
}

.videos figcaption {
    margin-top: 8px;
    font: 500 1.05rem var(--display);
}

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

.links-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-weight: 450;
}

.links-list a::before {
    content: "";
    flex: none;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--coral);
}

.links-list a:hover {
    border-color: var(--accent);
}

/* contact */

.contact-list {
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
    display: grid;
    gap: 10px;
}

.contact-list a {
    font-weight: 500;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(246, 196, 69, 0.4);
}

.contact-form button {
    justify-self: start;
    cursor: pointer;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.contact-sent {
    padding: 16px 18px;
    border-radius: 16px;
    background: #d9f3ec;
    color: #12443c;
    margin-bottom: 16px;
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 1.1em;
    color: #b3261e;
}

[data-theme="dark"] .contact-form ul {
    color: #ffb4a8;
}

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

.foot {
    position: relative;
    overflow: hidden;
    margin-top: clamp(40px, 6vw, 80px);
    padding: clamp(48px, 6vw, 80px) 0 24px;
    background: linear-gradient(180deg, #23246a 0%, #15163d 100%);
    color: #e9e4f7;
}

.foot-glow {
    position: absolute;
    inset: -40% -10% auto auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 196, 69, 0.22), transparent 65%);
    pointer-events: none;
}

.foot-grid {
    position: relative;
    display: grid;
    gap: 34px;
}

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: 1.1fr 1fr 1fr 1fr;
    }
}

.foot h2 {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.8em;
}

.foot a {
    color: #ffffff;
}

.foot-logo {
    width: 170px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.foot address {
    font-style: normal;
}

.foot-phone {
    font: 600 1.3rem var(--display);
}

.foot-hours {
    margin: 0 0 10px;
    display: grid;
    gap: 2px;
}

.foot-hours div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 240px;
}

.foot-hours dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.foot-note {
    font-size: 0.9rem;
    color: #d6d1ee;
}

.foot-links,
.social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
}

.social a:hover {
    border-color: var(--gold);
}

.foot-bottom {
    position: relative;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

.not-found img {
    width: min(70vw, 293px);
    margin: 0 auto 24px;
    border-radius: 22px;
}

.not-found .btn-row {
    justify-content: center;
}
/* ---- 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;
    }
}

.lightbox {
    --lb-bg: rgba(14, 15, 44, 0.96);
    --lb-text: #fbf5ea;
    --lb-accent: #f6c445;
    --lb-accent-soft: rgba(246, 196, 69, 0.22);
}

.panel-gold .band-phone {
    color: #35378b !important;
}

@media (min-width: 1040px) {
    .trail:has(> li:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }

    .trail:has(> li:nth-child(3):last-child) li:nth-child(even) {
        translate: none;
    }
}

.shirt .kicker-price {
    font-size: 1.8rem;
}

.shirt h2 {
    font-size: 1.4rem;
}

.shirt summary {
    cursor: pointer;
    font: 600 1rem var(--display);
    color: var(--link);
}

.shirt details ul {
    padding-left: 1.1em;
    font-size: 0.95rem;
}

.tutorials-more {
    margin-top: 2rem;
}

.hours-light div {
    background: var(--surface-2);
}

.contact-gift {
    margin-top: 18px;
}

.contact-list .band-phone {
    color: var(--link) !important;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.panel-gold .btn-solid {
    background: #35378b;
    color: #ffffff;
}

.panel-gold .btn-line {
    border-color: #35378b;
    color: #35378b;
}
