/*
 * Festivalpass Sverige – grundstilar.
 */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background-color: var(--fp-paper);
    color: var(--fp-ink);
    font-family: var(--fp-font-text);
    font-size: var(--fp-text-base);
    line-height: var(--fp-leading-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--fp-font-display);
    font-weight: 400;
    line-height: var(--fp-leading-tight);
    letter-spacing: var(--fp-tracking-display);
    text-transform: uppercase;
    margin: 0 0 var(--fp-space-4);
    text-wrap: balance;
}

h1 { font-size: var(--fp-text-2xl); }
h2 { font-size: var(--fp-text-xl); }
h3 { font-size: var(--fp-text-md); }

h4 {
    font-family: var(--fp-font-cond);
    font-size: var(--fp-text-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 var(--fp-space-3);
}

p, ul, ol { margin: 0 0 var(--fp-space-4); }

p { max-width: var(--fp-measure); text-wrap: pretty; }

a {
    color: var(--fp-ink);
    text-decoration-color: var(--fp-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    transition: color var(--fp-duration) var(--fp-ease);
}

a:hover { color: var(--fp-gold); }

:focus-visible {
    outline: 3px solid var(--fp-gold);
    outline-offset: 2px;
}

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

hr { border: 0; border-top: var(--fp-border); margin: var(--fp-space-7) 0; }

table { width: 100%; border-collapse: collapse; font-size: var(--fp-text-sm); }

th {
    text-align: left;
    font-family: var(--fp-font-cond);
    font-size: var(--fp-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fp-ink-soft);
    padding: var(--fp-space-3) var(--fp-space-3) var(--fp-space-3) 0;
    border-bottom: 2px solid var(--fp-ink);
}

td {
    padding: var(--fp-space-3) var(--fp-space-3) var(--fp-space-3) 0;
    border-bottom: var(--fp-border);
}

input, select, textarea, button { font: inherit; color: inherit; }

blockquote {
    margin: var(--fp-space-6) 0;
    padding-left: var(--fp-space-5);
    border-left: 3px solid var(--fp-gold);
    font-size: var(--fp-text-md);
}

.fp-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: var(--fp-space-3) var(--fp-space-4);
    background: var(--fp-gold);
    color: var(--fp-navy);
    font-weight: 700;
}

.fp-skip-link:focus { left: 0; }

.fp-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;
}

/* Etikett i versaler – återkommer genom hela gränssnittet. */
.fp-eyebrow {
    font-family: var(--fp-font-cond);
    font-size: var(--fp-text-sm);
    font-weight: 600;
    letter-spacing: var(--fp-tracking-label);
    text-transform: uppercase;
    color: var(--fp-gold);
    margin: 0 0 var(--fp-space-4);
}

.fp-lead {
    font-size: var(--fp-text-md);
    color: var(--fp-ink-soft);
}
