/* =========================================================
   INK & IRON TATTOO — Dark Gallery Wall
   Hand-written CSS. No frameworks.
   ========================================================= */

:root {
    --ink: #0C0C0C;
    --surface: #1A1A1A;
    --bone: #E8E0D4;
    --red: #8B0000;
    --dim: #555;

    --display: 'Bebas Neue', Impact, sans-serif;
    --body: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

/* ---------- Reset ---------- */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bone);
    background: var(--ink);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--red);
    color: var(--bone);
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav__wordmark {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: 0.06em;
    color: var(--red);
    line-height: 1;
}

.nav__links {
    display: flex;
    gap: 2.5rem;
}

.nav__links a {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
    opacity: 1;
}

.nav__burger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bone);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav__burger.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__burger.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Mobile Menu ---------- */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-family: var(--display);
    font-size: clamp(2.5rem, 10vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bone);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--red);
}

/* ---------- Visually-hidden (accessible labels / headings) ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Tagline (index) ---------- */

.tagline {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    padding: calc(80px + 1.5rem) clamp(1.5rem, 4vw, 3rem) 1.5rem;
}

/* ---------- Masonry Gallery ---------- */

.masonry {
    column-count: 3;
    column-gap: 12px;
    padding: 0 clamp(1.5rem, 4vw, 3rem) 0;
}

.masonry__item {
    break-inside: avoid;
    margin-bottom: 12px;
    overflow: hidden;
}

.masonry__item img {
    width: 100%;
    display: block;
    filter: grayscale(0.8) contrast(1.05);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.masonry__item:hover img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.02);
}

/* ---------- Closing line (index) ---------- */

.closing {
    font-family: var(--body);
    font-weight: 300;
    font-size: 1rem;
    color: var(--dim);
    text-align: center;
    padding: 4rem clamp(1.5rem, 4vw, 3rem) 5rem;
}

/* ---------- Page layout (artists, booking) ---------- */

.page {
    padding: calc(80px + 3rem) clamp(1.5rem, 4vw, 3rem) 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.page__title {
    font-family: var(--display);
    font-size: clamp(5rem, 14vw, 9rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 0.9;
    color: var(--bone);
    margin-bottom: 3.5rem;
}

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

.artist {
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(232, 224, 212, 0.1);
}

.artist:last-of-type {
    border-bottom: none;
    margin-bottom: 3rem;
    padding-bottom: 0;
}

.artist__name {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--bone);
    margin-bottom: 0.5rem;
}

.artist__meta {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 1rem;
}

.artist__line {
    font-family: var(--body);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--bone);
    opacity: 0.85;
    max-width: 55ch;
    margin-bottom: 2rem;
}

.artist__work {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.artist__work img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    filter: grayscale(0.8) contrast(1.05);
    transition: filter 0.5s ease;
}

.artist__work img:hover {
    filter: grayscale(0) contrast(1);
}

/* ---------- CTA line (artists page) ---------- */

.cta-line {
    font-family: var(--body);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--bone);
    padding-top: 1rem;
}

.cta-line a {
    color: var(--red);
    border-bottom: 1px solid var(--red);
    transition: opacity 0.2s ease;
}

.cta-line a:hover {
    opacity: 0.7;
}

/* ---------- Booking: process ---------- */

.process {
    margin-bottom: 4rem;
}

.process p {
    font-family: var(--body);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--bone);
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 55ch;
}

/* ---------- Booking: aftercare ---------- */

.section-heading {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: 1.5rem;
}

.aftercare {
    margin-bottom: 4rem;
}

.aftercare ul {
    list-style: none;
}

.aftercare li {
    font-family: var(--body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--bone);
    opacity: 0.85;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.aftercare li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--dim);
}

/* ---------- Booking: contact ---------- */

.contact {
    padding-top: 1rem;
}

.contact__email {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
    transition: opacity 0.2s ease;
}

.contact__email:hover {
    opacity: 0.7;
}

.contact address {
    font-style: normal;
    font-family: var(--body);
    font-weight: 300;
    font-size: 1rem;
    color: var(--dim);
    line-height: 1.7;
}

.contact address a {
    color: var(--dim);
    transition: color 0.2s ease;
}

.contact address a:hover {
    color: var(--bone);
}

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

.footer {
    border-top: 1px solid rgba(232, 224, 212, 0.08);
    padding: 2rem clamp(1.5rem, 4vw, 3rem);
}

.footer p {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    text-align: center;
}

.footer a {
    color: var(--red);
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.7;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: flex;
    }

    .masonry {
        column-count: 2;
        column-gap: 8px;
    }

    .masonry__item {
        margin-bottom: 8px;
    }

    .tagline {
        padding-top: calc(70px + 1rem);
    }

    .artist__work {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .masonry {
        column-count: 1;
        column-gap: 0;
    }

    .masonry__item {
        margin-bottom: 6px;
    }

    .artist__work {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .artist__work img:last-child {
        grid-column: 1 / -1;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
