/*
Theme Name: Noarootsi Rodeo
Description: Minimalist one-pager theme for Noarootsi Rodeo
Version: 1.0
*/

:root {
    --bg-color: #f9f9f9;
    --text-color: #1a1a1a;
    --nav-height: 70px;
    --grain-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; color: var(--text-color); background: var(--bg-color); line-height: 1.6; scroll-behavior: smooth; }

header {
    display: none;
}
header nav { display: flex; gap: 30px; }
header nav a { text-decoration: none; color: var(--text-color); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }

main { padding-top: 0; }
section {
    width: min(100% - 2rem, 1000px);
    padding: 80px 20px;
    margin: 0 auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    isolation: isolate;
    background: var(--bg-color);
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: inherit;
    z-index: -1;
    pointer-events: none;
}

#programm::before,
#pulli-saab::before,
#majutus::before,
#kontakt::before {
    background-image: var(--grain-texture);
    background-repeat: repeat;
    background-size: 200px 200px;
    background-blend-mode: overlay;
}

h2 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    display: inline-block;
    font-family: Zodiak-VariableItalic;
    line-height: 25px;
    letter-spacing: 0px;
    font-weight: 600;
}
h3 { font-size: 1.5rem; margin: 2rem 0 1rem 0; }
h1,
h3 {
    font-family: "Alfa Slab One", Georgia, "Times New Roman", serif;
}

#tutvustus h2 {
    display: block;
    max-width: 900px;
    margin-bottom: 2rem;
    font-size: clamp(2.4rem, 6.6vw, 5rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.02em;
}

/* Hero Section Specifics */
#hero {
    width: min(100% - 2rem, 1000px);
    margin: 0 auto 0;
    height: auto;
    min-height: 820px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: clamp(34px, 6vh, 64px);
    background: none;
    padding: 40px 42px 64px;
    color: #efdba0;
}

#hero::before {
    background-image:
        var(--grain-texture),
        linear-gradient(150deg, rgba(5, 5, 5, 0.95) 100%, rgba(40, 40, 37, 0.95) 4%, rgba(26, 27, 21, 0.96) 90%),
        url("https://imagedelivery.net/NYz-2vHFqLAZVXv3jgdQ2Q/f81073c1-cdbe-4baa-b631-685ff21d3b00/w=800");
    background-size: 200px 200px, cover, cover;
    background-position: 0 0, center, center;
    background-repeat: repeat, no-repeat, no-repeat;
    background-blend-mode: overlay, normal, normal;
    color: #efdba0
}

.hero-heading-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 8px;
    text-align: center;
}

.hero-top {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
    text-align: center;
}

.hero-lineup-divider {
    display: flex;
    align-items: center;
    width: min(100%, 320px);
    color: #efdba0;
}

.hero-lineup-divider::before,
.hero-lineup-divider::after {
    content: "";
    flex: 1;
    height: 4px;
    background: currentColor;
}

.hero-lineup-divider::before {
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.hero-lineup-divider::after {
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.hero-lineup-divider span {
    padding: 0 12px;
    font-size: 0.85rem;
    line-height: 1;
}

.hero-lineup-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-lineup-sub {
    margin-top: 0.15rem;
}

.hero-lineup-main,
.hero-lineup-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-lineup-main .hero-lineup-line,
.hero-lineup-sub .hero-lineup-line {
    line-height: 0.88;
    margin-block: -0.02em;
}

.hero-lineup-sub .hero-lineup-line-5 {
    line-height: 25px;
}

.hero-heading-group > h1 {
    width: 100%;
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-align: center;
    text-transform: uppercase;
    color: #efdba0;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-wrap: balance;
}

.hero-heading-group > h1:first-of-type {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    line-height: 1;
}

.hero-heading-group > h1:nth-of-type(2) {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    line-height: 0.95;
}

.hero-date {
    width: 100%;
    max-width: 500px;
    margin-top: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: center;
    gap: 16px;
    padding: 0;
}

.hero-date-label {
    font-family: "Zodiak-Variable", Georgia, "Times New Roman", serif;
    font-size: clamp(1.125rem, 2.6vw, 1.75rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-align: left;
    color: #efdba0;
}

.hero-date-copy {
    font-family: "Zodiak-Variable", Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.28;
    letter-spacing: 0;
    color: #efdba0;
}

.hero-closing {
    max-width: none;
    flex-direction: column;
    gap: 0;
}

.hero-closing .hero-lineup-line {
    display: block;
    line-height: 0.88;
    margin-block: -0.02em;
}

.hero-lineup-line {
    margin: 0;
    padding: 0 0.04em;
    font-family: "Rye", Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #efdba0;
}

.hero-lineup-line-1 {
    font-size: 8rem;
    font-weight: 900;
}

.hero-lineup-line-2 {
    font-size: 5.5rem;
    font-weight: 900;
}

.hero-lineup-line-3 {
    font-size: 3.25rem;
    font-weight: 900;
}

.hero-lineup-line-4 {
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.005em;
    font-weight: 900;
    text-transform: capitalize;
}

.hero-lineup-line-5 {
    font-size: 1.5rem; 
    font-weight: 900;
    line-height: 25px;
    text-transform: capitalize;
}


@media (max-width: 1024px) {
    #hero {
        min-height: 80vh;
        padding: 36px 30px 54px;
        gap: clamp(28px, 5vh, 48px);
    }

    .hero-lineup-line-1 { font-size: 6.4rem; }
    .hero-lineup-line-2 { font-size: 4.4rem; }
    .hero-lineup-line-3 { font-size: 2.6rem; }
    .hero-lineup-line-4 { font-size: 1.4rem; }
    .hero-lineup-line-5 { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    #hero {
        min-height: 80vh;
        padding: 32px 20px 40px;
        gap: 28px;
    }

    .hero-heading-group {
        gap: 6px;
    }

    .hero-date {
        max-width: 470px;
        margin-top: 8px;
        gap: 12px;
    }

    .hero-lineup-line {
        line-height: 0.98;
    }

    .hero-lineup-line-1 { font-size: 5.2rem; }
    .hero-lineup-line-2 { font-size: 3.6rem; }
    .hero-lineup-line-3 { font-size: 2.1rem; }
    .hero-lineup-line-4 { font-size: 1.14rem; }
    .hero-lineup-line-5 { font-size: 0.98rem; }
}

@media (max-width: 480px) {
    #hero {
        min-height: 80vh;
        padding: 24px 16px 32px;
        gap: 22px;
    }

    .hero-date {
        max-width: 100%;
        margin-top: 4px;
        gap: 10px;
    }

    .hero-lineup-line-1 { font-size: 3.84rem; }
    .hero-lineup-line-2 { font-size: 2.64rem; }
    .hero-lineup-line-3 { font-size: 1.56rem; }
    .hero-lineup-line-4 { font-size: 0.84rem; }
    .hero-lineup-line-5 { font-size: 0.72rem; }
}

/* Tutvustus & Pulli saab Layout */
.tutvustus-content,
.pulli-content,
.majutus-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
}

.tutvustus-intro,
.pulli-intro {
    font-size: 1rem;
    font-style: italic;
    max-width: 350px;
    line-height: 1.4;
    margin: 0;
}

.tutvustus-main {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 400;
    max-width: 342px;
    line-height: 1.28;
    letter-spacing: 0;
    color: #000;
    margin: 0;
}

.majutus-content > p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 400;
    max-width: 292px;
    line-height: 1.28;
    letter-spacing: 0;
    color: #000;
    margin: 0;
}

/* Content Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.embed-container iframe, .embed-container div { width: 100%; height: 450px; border: none; background: #e0e0e0; display: flex; align-items: center; justify-content: center; color: #666; text-transform: uppercase; font-weight: bold; }

/* Image Placeholders */
.majutus-image-placeholder {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 832 / 400;
}

.majutus-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 65%;
    background: #000;
}

.hero-video-wrapper {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 806 / 400;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #000;
}

.pulli-video-wrapper {
    width: 100%;
    align-self: flex-start;
    box-sizing: border-box;
    overflow: hidden;
    aspect-ratio: 806 / 400;
}

.pulli-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 40%;
    background: #000;
}

#pulli-saab .pulli-video-wrapper,
#majutus .majutus-image-placeholder {
    margin: 1rem 0;
}

#pulli-saab .pulli-content,
#majutus .majutus-content {
    gap: 0;
    padding: 0 20px;
}

/* Program List */
#programm {
    background: #ced0c8;
}

#pulli-saab {
    background: #eebc4e;
}

#pulli-saab .hero-heading-group {
    align-items: flex-start;
    text-align: left;
    padding: 2rem 20px 0;
    margin: 0;
}

#pulli-saab .hero-heading-group > h1,
#pulli-saab .hero-date-label {
    text-align: left;
    color: #000;
}

#majutus {
    background: #b8b5a8;
}

#majutus .hero-heading-group {
    align-items: flex-start;
    text-align: left;
    padding: 2rem 20px 0;
    margin: 0;
}

#majutus .hero-heading-group > h1,
#majutus .hero-date-label {
    text-align: left;
    color: #000;
}

.program-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 3rem 0 2rem;
    color: #000;
}

.program-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

.program-row:last-child {
    border-bottom: none;
}

.program-artist {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.5px;
    flex: 0 0 60%;
    padding-right: 20px;
}

.program-desc {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    flex: 0 0 40%;
    padding-top: 5px;
}

.program-schedule {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 2rem 0 0;
    color: #000;
}

.program-schedule h2,
#pulli-saab .pulli-content h2,
#majutus .majutus-content h2 {
    margin: 0.5rem 0 0;
    max-width: 741px;
    width: 100%;
    font-size: clamp(22px, calc(22px + (100vw - 414px) * 0.0648), 60px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: clamp(-3.1px, calc(0.6px + (100vw - 414px) * -0.0063), 0.6px);
}

.program-schedule h2 {
    padding: 0 20px;
}

.program-schedule .hero-date-copy,
#pulli-saab .pulli-main,
#majutus .majutus-main {
    display: block;
    max-width: 715px;
    width: 100%;
    margin: 1rem 0 50px;
    color: #000;
    font-family: "Zodiak-Variable", Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.28;
    letter-spacing: 0;
}

.program-schedule .hero-date-copy {
    padding: 0 20px;
}

.program-schedule .hero-heading-group {
    align-items: flex-start;
    text-align: left;
    padding: 2rem 20px 0;
    margin: 0;
}

.program-kicker {
    font-family: "Zodiak-Variable", Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #000;
    margin: 0;
    padding: 2rem 20px 0;
}

.program-kicker + .hero-heading-group {
    padding-top: 0.5rem;
}

.program-schedule .hero-heading-group > h1,
.program-schedule .hero-date-label {
    text-align: left;
    color: #000;
}

#pulli-saab .hero-heading-group,
#majutus .hero-heading-group,
#hero .hero-heading-group,
.program-schedule .hero-heading-group,
#kontakt .hero-heading-group {
    gap: 4.75px;
}

#pulli-saab .hero-heading-group > h1:first-of-type,
#majutus .hero-heading-group > h1:first-of-type,
#hero .hero-heading-group > h1:first-of-type,
.program-schedule .hero-heading-group > h1:first-of-type,
#kontakt .hero-heading-group > h1:first-of-type {
    font-size: clamp(1.039rem, 1.593vw, 1.385rem);
}

#pulli-saab .hero-heading-group > h1:nth-of-type(2),
#majutus .hero-heading-group > h1:nth-of-type(2),
#hero .hero-heading-group > h1:nth-of-type(2),
.program-schedule .hero-heading-group > h1:nth-of-type(2),
#kontakt .hero-heading-group > h1:nth-of-type(2) {
    font-size: clamp(1.905rem, 3.463vw, 3.116rem);
}

#pulli-saab .hero-date-label,
#majutus .hero-date-label,
#hero .hero-date-label,
.program-schedule .hero-date-label,
#kontakt .hero-date-label {
    font-size: clamp(0.779rem, 1.8vw, 1.212rem);
}

.program-slot {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.program-time {
    font-size: clamp(2.5rem, 12vw, 81px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.program-event-title {
    font-size: clamp(1.25rem, 5vw, 28px);
    font-weight: 700;
    line-height: 27px;
    max-width: 286px;
    width: 100%;
}

.program-event-desc {
    font-family: "Zodiak-Bold", Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    max-width: 245px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.program-event-desc-separator {
    display: block;
    width: 100%;
    max-width: 245px;
    height: 1px;
    background: #0000003c;
    margin: 5px 0;
}

.program-closing {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.95rem, 1.7vw, 1.25rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.3;
    max-width: 640px;
    color: #00000047;
    margin: 0.75rem 20px 1.5rem;
    padding: 0;
}

/* Pulli saab Layout */
.pulli-content {
    width: 100%;
}

.pulli-content .activities {
    font-size: 2.2rem; 
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
    max-width: 800px;
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}

.pulli-content .activities li {
    margin-bottom: 0.5rem;
}

footer {
    position: relative;
    isolation: isolate;
    background: #1a1a1a;
    color: #fff;
    text-align: left;
    padding: 60px max(36px, calc((100vw - 1000px) / 2 + 20px));
}

#kontakt .hero-heading-group {
    align-items: flex-start;
    text-align: left;
    padding: 0;
    margin: 0 0 1rem 0;
}

#kontakt .hero-heading-group > h1,
#kontakt .hero-date-label {
    text-align: left;
    color: #fff;
}

footer p {
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    max-width: 286px;
    width: 100%;
    color: #fff;
    font-style: normal;
    letter-spacing: normal;
    margin: 0 0 -6px 0;
    padding: 0;
}
