/* Vestrom Holding AB — plain company information page.
   Shared by index.html (sv) and en/index.html (en). */

:root {
    --paper: #f7f6f3;
    --ink: #1b1d1f;
    --muted: #6a6c68;
    --link: #2f4a3f;
    --rule: rgba(27, 29, 31, 0.13);
    --font-body: 'IBM Plex Sans', -apple-system, 'Helvetica Neue', Arial,
        sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
p {
    margin: 0;
}

a {
    color: var(--link);
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: 1px solid var(--link);
    outline-offset: 3px;
}

.page {
    max-width: 40rem;
    margin-inline: auto;
    padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 6vw, 2.5rem)
        clamp(2.5rem, 6vw, 4rem);
}

/* ---- Language toggle ---------------------------------------------- */

.lang {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* Padding/negative-margin pair enlarges the tap target to ~24px without
   changing the visual size or the spacing around it. */
.lang a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.3rem 0.2rem;
    margin: -0.3rem -0.2rem;
    transition: color 0.25s ease;
}

.lang a:hover {
    color: var(--link);
}

.lang .current {
    color: var(--ink);
}

.lang .sep {
    color: var(--rule);
}

/* ---- Intro --------------------------------------------------------- */

.mark {
    display: block;
    width: 3.4rem;
    margin-bottom: 1.7rem;
}

.intro h1 {
    font-size: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
    font-weight: 500;
    letter-spacing: -0.011em;
    line-height: 1.25;
}

.intro p {
    margin-top: 1.1rem;
    color: var(--muted);
    max-width: 36rem;
}

/* ---- Footer -------------------------------------------------------- */

/* Flush at both ends with equal gaps between the three fields. */
footer {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: clamp(3rem, 8vw, 4.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

footer a {
    color: inherit;
    text-decoration-color: var(--rule);
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

footer a:hover {
    color: var(--link);
    text-decoration-color: currentColor;
}

/* ---- Responsive ---------------------------------------------------- */

@media (max-width: 34rem) {
    footer {
        flex-direction: column;
        gap: 0.4rem;
    }
}
