@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #000;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* Screen-reader-only utility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Links */
a,
a:focus,
a:hover {
    color: #fff;
}

/*
 * Base structure
 */

html,
body {
    height: 100%;
    background-color: #333;
}

body {
    display: flex;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    font-family: 'Lora', Georgia, serif;
    color: #fff;
    text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
    box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
}

h1,
h2 {
    font-family: 'Playfair Display', Georgia, serif;
}

.cover-container {
    width: 100%;
}

.page-home .cover-container {
    max-width: 100%;
}

body.page-home {
    background: #080808;
    background: radial-gradient(ellipse at center, #191919 0%, #060606 75%);
}

.noir-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.noir-year {
    font-size: 0.75rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 0;
}

.noir-rule {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 1.1rem auto;
}

.noir-title {
    font-size: clamp(3.2rem, 10vw, 7rem);
    line-height: 1.05;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.06);
    letter-spacing: 0.01em;
}

.noir-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #b8b8b8;
    font-style: italic;
    margin-bottom: 2.5rem;
}

.noir-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.noir-btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.noir-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.noir-btn-ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: #b8b8b8;
}

.noir-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.gallery-content {
    width: 100%;
    margin-bottom: 2rem;
}

/* About page */
.page-about .cover-container {
    max-width: 860px;
}

.about-main {
    padding: 1rem 0 4rem;
}

.about-hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2.5rem;
}

.about-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.about-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.about-tagline {
    font-size: 0.9rem;
    color: #b8b8b8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.about-vitals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.vital {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.vital-term {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #a0a0a0;
}

.vital-detail {
    font-size: 0.88rem;
    color: #e8e8e8;
    margin: 0;
}

.about-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.about-poster {
    width: 100%;
    filter: sepia(30%) contrast(1.05) brightness(0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h2 {
    font-size: 0.75rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #c2c2c2;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.about-section p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #d8d8d8;
    margin-bottom: 1rem;
}

.about-quote {
    font-family: 'Playfair Display', Georgia, serif;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    margin: 0 0 2.5rem;
    font-size: 1rem;
    font-style: italic;
    color: #b8b8b8;
}

.about-quote footer {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.6rem;
    color: #a0a0a0;
    font-style: normal;
}

.about-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem 2rem;
}

.cast-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cast-actor {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.cast-role {
    font-size: 0.8rem;
    color: #b8b8b8;
    font-style: italic;
    margin: 0;
}

@media (max-width: 600px) {
    .about-body {
        grid-template-columns: 1fr;
    }

    .about-poster {
        max-width: 160px;
        margin: 0 auto;
        display: block;
    }
}

/* Theater watch page */
body.page-watch {
    background-image: url('../img/poster.jpg');
    background-size: cover;
    background-position: center top;
    background-color: #000;
}

body.page-watch::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

body.page-watch .cover-container {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.theater-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem 2rem;
}

.theater-label {
    font-size: 0.75rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 1.25rem;
}

.theater-screen {
    width: min(82vw, 960px);
    position: relative;
}

.theater-screen::before {
    content: '';
    position: absolute;
    inset: -60px -100px;
    background: radial-gradient(ellipse at center, rgba(255, 210, 120, 0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.theater-meta {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.theater-footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.75rem;
    color: #b8b8b8;
}

/* Film strip gallery */
.page-gallery .cover-container {
    max-width: 100%;
}

.film-reel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.film-strip {
    background: #0f0f0f;
    overflow-x: auto;
}

.film-strip:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.sprockets {
    height: 24px;
    background: #0f0f0f;
    position: relative;
}

.sprockets::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 14px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 6px,
        rgba(255, 255, 255, 0.14) 6px,
        rgba(255, 255, 255, 0.14) 20px,
        transparent 20px,
        transparent 30px
    );
}

.film-frames {
    display: flex;
    gap: 4px;
    background: #000;
    padding: 6px 4px;
    min-width: min-content;
}

.frame {
    position: relative;
    flex: 1 0 calc(25% - 3px);
    min-width: 180px;
    text-decoration: none;
    overflow: hidden;
}

.frame-figure {
    margin: 0;
}

.frame img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    filter: sepia(55%) contrast(1.1) brightness(0.88);
    transition: filter 0.5s ease, transform 0.4s ease;
}

.frame:hover img {
    filter: sepia(0%) contrast(1.05) brightness(1.0);
    transform: scale(1.03);
}

.frame-caption {
    display: block;
    padding: 0.5rem 0.6rem 0.7rem;
    font-size: 0.75rem;
    color: #d8d8d8;
    line-height: 1.4;
    background: #111;
}

.frame-num {
    position: absolute;
    bottom: 5px;
    right: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.1em;
    pointer-events: none;
}

/*
 * Header
 */
.masthead {
    margin-bottom: 2rem;
}

.masthead-brand {
    margin-bottom: 0;
    text-decoration: none;
    line-height: 1;
}

.site-logo {
    display: block;
    height: 32px;
    width: auto;
}

.masthead .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-masthead {
    gap: 1.5rem;
}

.nav-masthead .nav-link {
    padding: 0.6rem 0;
    font-weight: 700;
    color: #b8b8b8;
    background-color: transparent;
    border-bottom: .2rem solid transparent;
    transition: color .15s ease-in-out, border-color .15s ease-in-out;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .active {
    color: #fff;
    border-bottom-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .frame img {
        transition: none;
    }

    .frame:hover img {
        transform: none;
    }
}
