:root {
    --bg: #EBD9D7;
    --bg-warm: #E3E0CF;
    --bg-soft: #F6F3F4;
    --bg-blue: #DFE3EA;
    --ink: #252122;
    --ink-light: #333333;
    --ink-pale: #666666;
    --accent: #4a6175;
    --accent-light: #BDC5CF;
    --cream: #F8F8EC;
    --text-body: #252122;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

p {
    font-size: 16px;
    line-height: 1.7;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    padding: 0.35rem 3rem;
    background: var(--bg-soft);
    backdrop-filter: none;
    transition: background-color 0.25s ease;
}

nav a {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
    transform: scaleX(1);
}

/* HERO */
.hero {
    min-height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-soft);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* NY background:
      radial-gradient(ellipse 60% 50% at 20% 80%, rgba(184,129,58,0.12) 0%, transparent 70%),
      radial-gradient(ellipse 50% 60% at 80% 20%, rgba(122,26,46,0.08) 0%, transparent 70%); */
    pointer-events: none;
}

.rings-svg {
    width: 120px;
    height: auto;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.2s forwards;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeUp 1s 0.4s forwards;
}

.hero h1 .amp {
    display: inline-block;
    font-size: 1.2em;
    margin-inline: -0.04em;
    line-height: 0.8;
    vertical-align: -0.08em;
    font-style: italic;
    color: var(--accent);
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ink-light);
    margin-top: 1rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards;
}

.hero-place {
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-pale);
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.75s forwards;
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 2.5rem auto;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
}

.hero-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-body);
    max-width: 520px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 1s 1.1s forwards;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    animation: fadeIn 1s 1.8s forwards;
}

.scroll-hint span {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-pale);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollAnim 1.5s 2.5s infinite;
}

/* SECTIONS */
section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    text-align: center;
}

/* PROGRAM */
#program {
    background: var(--bg-blue);
    max-width: 100%;
    padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

#program .inner {
    max-width: 900px;
    margin: 0 auto;
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
}

.program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2.5rem;
    border: 0.5px solid rgba(3, 3, 3, 0.2);
    background: var(--bg-blue);
    text-align: center;
}



.program-card .illus {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 24px;
}

.program-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
    padding: 0.5rem 0;
}

.program-card .time-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    margin-bottom: 8px;
}

.program-card p {
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.program-card a {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border: 0.5px solid rgba(3, 3, 3, 0.4);
    transition: background 0.2s, color 0.2s;
}

.program-card a:hover {
    background: var(--ink);
    color: var(--cream);
}

.program-card-icon {
    max-height: 150px;
    height: auto;
}

/* SCHEMA */
#schema {
    background: var(--bg-soft);
    max-width: 100%;
    padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

#schema .inner {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    margin-top: 3rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    /*background: linear-gradient(to bottom, var(--accent), rgba(184, 129, 58, 0.1));*/
}

.timeline-item {
    position: relative;
    padding: 0 0 2.5rem 2rem;
}

.timeline-item h4::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 4px);
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 0;
    box-shadow: none;
}

.timeline-item .t-time {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 400;
}

.timeline-item h4 {
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0.2rem 0 0.3rem;
}

.timeline-item p {
    color: var(--text-body);
}

/* KLÄDKOD */
/*NY*/
#kladkod {
    background: var(--bg-soft);
    max-width: 100%;
    padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
    position: relative;
    overflow: hidden;
}

/* NY#kladkod::after {
    content: 'KAVAJ';
    position: absolute;
    right: -2rem;
    bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    font-weight: 600;
    color: rgba(3, 3, 3, 0.05);
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
} */

#kladkod .kladkod-text,
#kladkod .section-label,
#kladkod .section-title,
#kladkod .kladkod-text p {
    text-align: left;
}

#kladkod .inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.kladkod-text p {
    color: var(--text-body);
    margin-top: 1.5rem;
}



.kladkod-illus {
    display: flex;
    justify-content: center;
}

.kladkod-icon {
    width: auto;
    height: 250px;
}

/* BOENDE & TRANSPORT */
#praktiskt {
    max-width: 100%;
    padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;

}

#praktiskt .inner {
    max-width: 900px;
    margin: 0 auto;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    margin-top: 3rem;
}

.info-card {
    padding: 1.5rem 0 0;
    border: 0;

}


.info-card .ic-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    color: var(--accent);
}

/*NY*/

.info-card-icon {
    width: 55px;
    height: 50px;
    max-height: 50px;
    max-width: 55px;
    object-fit: contain;
    object-position: left center;
}

.transport-icon {
    width: 100px;
    max-width: 100px;
    height: 50px;
}

.twisted {
    object-position: center;
    transform: translateX(4px) rotate(-30deg);
}

.info-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-body);
}

/* OSA */
#osa {
    background: #5B1534;
    max-width: 100%;
    padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
    position: relative;
    overflow: hidden;
}

#osa::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 0% 100%, rgba(189, 197, 207, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 100% 0%, rgba(189, 197, 207, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

#osa .inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

#osa .section-label {
    color: #BDC5CF;
}

#osa .section-title {
    color: var(--bg-soft);
}

.osa-deadline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--bg-soft);
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bg-soft);
    margin-bottom: 0.6rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(245, 239, 230, 0.07);
    border: 1px solid var(--bg-soft);
    color: var(--cream);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--bg-soft);
    background-color: rgba(245, 239, 230, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(246, 243, 244, 0.7);
}

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

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--bg-blue);
    border: 1px solid var(--bg-blue);
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--accent-light);
    color: var(--ink);
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.form-success .check-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-light);
}

.form-success h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--cream);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-soft);
    border-top: 0.5px solid rgba(3, 3, 3, 0.1);
}

footer p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--ink-pale);
}

footer .footer-names {
    font-size: 1.4rem;
    color: var(--ink);
    margin-top: 0.25rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.7;
    }
}

@keyframes scrollAnim {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }

    100% {
        opacity: 0;
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* RESPONSIVE */
@media (max-width: 680px) {
    nav {
        gap: 1.2rem;
        padding: 1rem 1.5rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #kladkod .inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    #kladkod::after {
        display: none;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Clear controls and a consistent section rhythm. */
section {
    scroll-margin-top: 5rem;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

.program-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1.2;
    border: 1px solid var(--accent);
    font-weight: 500;
}

.program-card-icon {
    display: block;
    max-width: 100%;
    margin: 0 auto 1.5rem;
}

.timeline {
    max-width: 640px;
    margin: 3rem auto 0;
    padding-left: 0;
}

.timeline-item {
    padding-left: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline::before {
    display: block;
    top: var(--timeline-line-top, 0px);
    bottom: auto;
    height: var(--timeline-line-height, 0px);
    left: 0;
    width: 1px;
    transform: translateX(-50%);
    background: var(--accent);
}

.info-card-icon {
    display: block;
    margin-bottom: 1rem;
}

.info-note {
    margin-top: 2.5rem;
    padding-top: 2rem;
}

.info-card p {
    max-width: 42ch;
}

.info-note p {
    max-width: 70ch;
}

.osa-deadline {
    text-align: center;
    font-size: 1.25rem;
}

.form-label {
    font-weight: 500;
    letter-spacing: 0.12em;
}

.form-input,
.form-select {
    min-height: 52px;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23F8F8EC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
}

.form-textarea {
    min-height: 120px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.btn-submit:focus-visible {
    outline-color: var(--cream);
}

.btn-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 680px) {
    nav {
        justify-content: center;
        gap: clamp(0.5rem, 3vw, 1.2rem);
        padding: 0.2rem 0.75rem;
    }

    nav a {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    section,
    #program,
    #schema,
    #kladkod,
    #praktiskt,
    #osa {
        padding: 3.5rem 1.25rem;
    }

    .hero {
        min-height: 100svh;
        padding: 7rem 1.25rem 7rem;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 11vw, 5rem);
    }

    .rings-svg {
        width: 100px;
        margin-bottom: 2rem;
    }

    .program-grid,
    .info-cards {
        margin-top: 2rem;
        gap: 2rem;
    }

    .program-card {
        padding: 2rem 1.25rem;
    }

    .section-label {
        letter-spacing: 0.2em;
    }

    .kladkod-icon {
        height: 210px;
        max-width: 100%;
        object-fit: contain;
    }

    .timeline {
        margin-top: 2rem;
        margin-left: 0.25rem;
    }

    .form-row {
        gap: 0;
    }

    footer {
        padding: 2.5rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    nav a,
    nav a::after {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .hero h1,
    .rings-svg,
    .hero-date,
    .hero-place,
    .divider,
    .hero-intro,
    .scroll-hint {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .scroll-line {
        animation: none;
    }
}
nav.on-dark a { color: var(--cream); }
nav.on-dark a:hover, nav.on-dark a:focus-visible { color: var(--accent-light); }
nav.on-dark a:focus-visible { outline-color: var(--cream); }
@media (prefers-reduced-motion: reduce) {
    nav { transition: none; }
}

.schema-music-icon {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 3rem auto 0;
}

.hotel-link,
.phone-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}
.hotel-link:hover, .phone-link:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
    .hotel-link,
.phone-link { transition: none; }
}

.osa-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.cf-turnstile { margin-bottom: 1rem; }
