:root {
    --font-heading: 'Lora', serif;
    --font-heading2: "Libre Baskerville", Georgia, serif;
    --font-meny: 'Mulish', sans-serif;
    --font-body: 'Mulish', sans-serif;
    --font-cursive: "Dancing Script", cursive;
    --brand-green: #2f5a3c;
    --brand-green-dark: #174226;
    --brand-gold: #c5a37d;
    --brand-warm-border: #e8ddd2;
    --color-text: #2f2a25;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: auto;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}

h1:focus {
    outline: none;
    box-shadow: none;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #F5F2EC; /* lite tydligare men fortfarande lugn */
}

body::selection {
    background: var(--brand-green);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
    width: 100%;
}

.site-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    background: transparent;
    color: var(--brand-green);
    cursor: pointer;
}

.site-icon-button .material-symbols-outlined {
    font-size: 2rem;
}

.blazor-error-boundary {
    padding: 1rem;
    background: #b32121;
    color: #ffffff;
}

.blazor-error-boundary::after {
    content: "Ett fel har uppstått.";
}

.body-intro {
    overflow: hidden;
    border-radius: 16px;
    background: #fffefa;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
    border: 1px solid rgba(230, 222, 210, 0.75);
}

.body-header {
    padding: 1rem;
    border: 1px solid rgba(230, 222, 210, 0.75);
}

.body-eyebrow {
    margin: 0 0 0.8rem;
    color: var(--brand-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
}

.body-intro h1 {
    margin: 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.16;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.body-intro > p:last-child {
    max-width: 68ch;
    margin: 1.5rem 0 0;
    color: rgba(47, 42, 37, 0.74);
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.82;
}

@media (max-width: 1200px) {
    .page-stack {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
