/* Shared styles for every page. Page-specific styles stay inline in each page. */

@font-face {
    font-family: 'Font All Caps';
    src: url('fonts/all_caps-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Script';
    src: url('fonts/script-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Script Alt';
    src: url('fonts/script_alt-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Font Script', 'Georgia', serif;
    background-color: #FCF8F1;
    color: #4f4e4e;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: clip;
}

/* Navigation (inner pages) */
.top-navigation {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.nav-links {
    pointer-events: auto;
    display: flex;
    align-items: center;
    background-color: #FCF8F1;
    gap: 2rem;
    padding: 0.4rem 0.9rem;
    border-radius: 3px;
}

.nav-links a {
    font-size: 1.5rem;
    color: #4f4e4e;
    text-decoration: none;
    font-family: 'Font All Caps', 'Georgia', serif;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    text-decoration: underline;
}

/* The logo is the menu's link home */
.logo {
    display: block;
    width: 110px;
}

/* Hero */
.hero {
    position: relative;
    text-align: center;
    padding: 7rem 2rem 3rem;
}

.main-heading {
    font-size: 5rem;
    color: #0223C6;
    font-weight: normal;
    line-height: 1.1;
    font-family: 'Font Script Alt', sans-serif;
}

.hero-sub {
    font-family: 'Font All Caps', 'Georgia', serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

/* Ribbon of stills */
.ribbon {
    overflow: hidden;
    padding: 2rem 0 3rem;
    transform: rotate(-2deg);
    margin: 0 -2rem;
}

.ribbon-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding-right: 1rem;
    animation: drift 90s linear infinite;
}

.ribbon-track img {
    height: 160px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(13, 12, 12, 0.18);
    cursor: default;
}

@keyframes drift {
    to { transform: translateX(-50%); }
}

/* Venue pill */
.venue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1rem 0.1rem 0.7rem;
    border-radius: 999px;
    background-color: #f6a8ea;
    font-family: 'Font All Caps', 'Georgia', serif;
    font-size: 1.2rem;
    color: #0d0c0c;
}

.venue svg {
    width: 18px;
    height: 18px;
    fill: #0d0c0c;
    margin-top: -3px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem 2rem;
    padding: 3rem 2rem;
    text-align: center;
    font-family: 'Font All Caps', 'Georgia', serif;
    font-size: 1.6rem;
}

.footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4f4e4e;
    text-decoration: none;
}

.footer svg {
    width: 24px;
    height: 24px;
    fill: #0223C6;
    flex-shrink: 0;
    margin-top: -3px;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 2.5rem;
    padding-top: 1rem;
}

/* One-line description of the company, under the newsletter signup */
.footer-about {
    max-width: 520px;
    font-family: 'Font Script', 'Georgia', serif;
    font-size: 1.5rem;
    line-height: 1.35;
    color: #4f4e4e;
}

/* Copyright line */
.copyright {
    font-family: 'Font Script', 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #4f4e4e;
    opacity: 0.8;
}

/* The script font draws © high above the line, so use a plain font for it */
.copyright-mark {
    font-family: 'Georgia', serif;
    font-size: 0.85em;
    position: relative;
    top: -0.04em;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.9s ease, translate 0.9s ease;
}

.reveal.in {
    opacity: 1;
    translate: 0 0;
}

/* Film grain over everything */
.grain {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (max-width: 768px) {
    .top-navigation {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .nav-links {
        gap: 1.25rem;
        padding: 0.3rem 0.6rem;
    }

    .hero {
        padding: 6rem 1.5rem 2rem;
    }

    .logo {
        width: 90px;
    }

    .main-heading {
        font-size: 3.5rem;
    }

    .ribbon-track img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .footer {
        font-size: 1.3rem;
        padding-bottom: 5rem;
    }

    .nav-links {
        gap: 0.9rem;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .logo {
        width: 75px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ribbon-track {
        animation: none;
    }

    .reveal {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* Text for screen readers and search engines only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
