/* Public storefront polish. Loaded after the Tailwind CDN so these rules can refine it. */

:root {
    color-scheme: dark;
    --ink: #0b0b0b;
    --ink-raised: #141210;
    --cream: #f4efe6;
    --cream-dim: rgba(244, 239, 230, 0.78);
    --brass: #d4b483;
    --brass-soft: rgba(212, 180, 131, 0.38);
    --line: rgba(244, 239, 230, 0.14);
}

html {
    scroll-padding-top: 6.5rem;
}

body.bg-black {
    font-family: 'Karla', sans-serif;
    background-color: var(--ink);
    background-image: radial-gradient(1100px 520px at 50% -8%, rgba(212, 180, 131, 0.07), transparent 58%);
    color: var(--cream);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    scrollbar-color: #3c342c var(--ink);
}

::selection {
    background: var(--brass);
    color: #1a140c;
}

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display SC', serif;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-wrap: balance;
}

/* The hard outline and load-time fade lived on every heading. Keep a soft
   shadow only where type sits on a photograph. */
.stage :is(h1, h2, h3) {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92), 0 1px 2px rgba(0, 0, 0, 0.85);
}

.page-head > h1::after,
.page-head > div > h1::after,
.welcome h2::after {
    content: "";
    display: block;
    width: 4.25rem;
    height: 1px;
    margin: 0.95rem auto 0;
    background: var(--brass);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 70;
    background: var(--brass);
    color: #1a140c;
    padding: 0.6rem 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.skip-link:focus {
    top: 0.75rem;
}

#content {
    scroll-margin-top: 6.5rem;
}

#content:focus {
    outline: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 11, 11, 0.9);
    border-bottom-color: var(--brass-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: padding 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-condensed {
    background: rgba(11, 11, 11, 0.96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.site-logo {
    border-radius: 2px;
}

nav[aria-label="Main"] a.is-current {
    color: var(--cream);
    box-shadow: inset 0 -2px 0 var(--brass);
}

nav[aria-label="Mobile"] a.is-current {
    color: var(--cream);
    background: rgba(212, 180, 131, 0.1);
    box-shadow: inset 3px 0 0 var(--brass);
}

.site-menu summary {
    border-color: rgba(244, 239, 230, 0.4);
    border-radius: 2px;
    min-height: 2.75rem;
}

.site-menu[open] summary {
    border-color: var(--brass);
    color: var(--cream);
}

.site-menu nav {
    background-color: #0e0d0c;
    border-color: var(--brass-soft);
    border-radius: 2px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
    .site-menu[open] > nav {
        animation: menu-in 180ms ease;
    }
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

/* Guitar frames */
.parallax .content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transform: scale(1.2);
    z-index: 0;
}

.stage {
    border: 4px solid var(--cream);
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--brass-soft), 0 18px 44px rgba(0, 0, 0, 0.38);
}

.stage-inset {
    margin: 0 1rem 2.25rem;
}

@media (min-width: 768px) {
    .stage-inset {
        margin: 0 45px 45px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .stage {
        transition: box-shadow 0.25s ease, transform 0.25s ease;
    }

    .stage:hover {
        box-shadow: 0 0 0 1px rgba(212, 180, 131, 0.8), 0 24px 48px rgba(0, 0, 0, 0.5);
    }

    .card-stage:hover {
        transform: translateY(-3px);
    }
}

.guitar-photo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55));
}

@media (prefers-reduced-motion: no-preference) {
    .guitar-photo {
        transition: transform 0.35s ease;
    }

    .stage:hover .guitar-photo {
        transform: scale(1.03);
    }
}

/* Below-the-fold fade. JS only hides items that start off screen. */
@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-pending {
        opacity: 0;
        transform: translateY(12px);
    }

    .reveal.reveal-pending.is-in {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Buttons */
a.inline-block.border,
a.inline-block.bg-white,
a.bg-white,
button.bg-white,
button.border {
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.inline-block.border {
    border-color: rgba(244, 239, 230, 0.5);
}

a.inline-block.border:hover {
    border-color: var(--brass);
    color: var(--cream);
    background: rgba(212, 180, 131, 0.1);
}

a.inline-block.bg-white,
a.bg-white,
button.bg-white {
    background-color: var(--cream);
    color: #17130e;
}

a.inline-block.bg-white:hover,
a.bg-white:hover,
button.bg-white:hover {
    background-color: var(--brass);
    color: #17130e;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Forms. Field names and structure stay as they are. */
main form.mx-auto.max-w-xl {
    background: rgba(244, 239, 230, 0.03);
    border: 1px solid var(--brass-soft);
    border-radius: 2px;
    padding: 1.75rem 1.5rem 2rem;
}

main .max-w-xl.border {
    border-color: var(--brass-soft);
    border-radius: 2px;
}

main form :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="url"],
    textarea,
    select
):not([tabindex="-1"]) {
    background-color: #1b1814;
    border-color: rgba(212, 180, 131, 0.72);
    color: var(--cream);
    border-radius: 2px;
}

main form :is(input, textarea)::placeholder {
    color: rgba(244, 239, 230, 0.5);
}

main form select option {
    background: var(--ink-raised);
    color: var(--cream);
}

main form label {
    color: rgba(244, 239, 230, 0.86);
}

/* Lift the faintest greys so small print still clears the background. */
.text-white\/40 {
    color: rgba(244, 239, 230, 0.74);
}

.text-white\/50 {
    color: rgba(244, 239, 230, 0.8);
}

main .border-white\/10,
footer .border-white\/10 {
    border-color: var(--line);
}

footer.border-t {
    border-top-color: rgba(212, 180, 131, 0.22);
}

footer h4 {
    font-family: 'Karla', sans-serif;
    text-shadow: none;
    letter-spacing: 0.14em;
}

footer a {
    text-underline-offset: 0.18em;
}

.leading-relaxed a,
.prose a {
    text-decoration-color: rgba(212, 180, 131, 0.75);
    text-underline-offset: 0.18em;
}

.leading-relaxed a:hover,
.prose a:hover {
    color: var(--brass);
}

.description :is(p, ul, ol) + :is(p, ul, ol) {
    margin-top: 1rem;
}

/* Gallery */
.gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--brass-soft);
    border-radius: 0.5rem;
    background: #100e0c;
    color: inherit;
    cursor: zoom-in;
    overflow: hidden;
    text-align: left;
}

.gallery-thumb-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(ellipse at center, rgba(244, 239, 230, 0.05), transparent 70%),
        #100e0c;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
    .gallery-thumb img {
        transition: transform 0.35s ease;
    }

    .gallery-thumb:hover img,
    .gallery-thumb:focus-visible img {
        transform: scale(1.045);
    }
}

.gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.25s ease;
    pointer-events: none;
}

.gallery-zoom svg {
    width: 2rem;
    height: 2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-thumb:hover .gallery-zoom,
.gallery-thumb:focus-visible .gallery-zoom {
    background: rgba(0, 0, 0, 0.28);
}

.gallery-thumb:hover .gallery-zoom svg,
.gallery-thumb:focus-visible .gallery-zoom svg {
    opacity: 1;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 5, 4, 0.94);
    padding: 4.5rem 4.75rem 3.5rem;
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal img {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.gallery-nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--brass-soft);
    background: rgba(14, 13, 12, 0.88);
    color: var(--cream);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-close { top: 1rem; right: 1rem; }
.gallery-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.gallery-nav:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.gallery-counter {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    color: var(--cream-dim);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {
    .gallery-modal {
        padding: 4.25rem 0.75rem 3.25rem;
    }

    .gallery-prev { left: 0.4rem; }
    .gallery-next { right: 0.4rem; }
}

/* Back to top */
.to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--brass-soft);
    background: rgba(11, 11, 11, 0.92);
    color: var(--cream);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.to-top.is-visible {
    opacity: 1;
    transform: none;
}

.to-top:hover {
    background: var(--brass);
    color: #17130e;
}

.to-top[hidden] {
    display: none !important;
}

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

    .site-header,
    .stage,
    .guitar-photo,
    .gallery-thumb img,
    .gallery-zoom,
    .gallery-zoom svg,
    .to-top,
    a.inline-block.border,
    button.bg-white,
    a.bg-white {
        transition: none !important;
        animation: none !important;
    }

    .stage:hover,
    .card-stage:hover,
    .stage:hover .guitar-photo,
    .gallery-thumb:hover img {
        transform: none;
    }

    .parallax-bg {
        transform: none;
        height: 100% !important;
    }
}
