/*
 * Medību Tornis - base styles.
 *
 * Design tokens, fonts, typography, layout primitives, buttons, the site header, the hero and the
 * site footer. Reusable blocks live in components.css, breakpoints in responsive.css and the
 * cookie banner in cookie-consent.css.
 */

/* ---- Fonts -------------------------------------------------------------- */

/* Source Serif 4 and Kalam, both under the SIL Open Font License; see assets/fonts/OFL-NOTICE.txt. */
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-ext-400.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-ext-600.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-ext-700.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Kalam";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/kalam-latin-ext-400.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Kalam";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/kalam-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Georgia scaled to the proportions of Source Serif 4, so text keeps almost the same line breaks
 * while the web font is still on its way and the page does not jump when it arrives.
 */
@font-face {
    font-family: "Source Serif Fallback";
    src: local("Georgia");
    size-adjust: 93%;
    ascent-override: 104%;
    descent-override: 34%;
    line-gap-override: 0%;
}

/* ---- Tokens ------------------------------------------------------------- */

:root {
    --green-950: #08150f;
    --green-900: #0e2118;
    --green-850: #12281d;
    --green-800: #173325;
    --green-700: #214734;
    --cream-50: #fbf8f1;
    --cream-100: #f5efe3;
    --cream-200: #eee5d6;
    --cream-300: #e2d5bf;
    --gold-200: #f3dcb0;
    --gold-300: #ecc98f;
    --gold-400: #dfb370;
    --gold-500: #cb9c56;
    --gold-600: #a87a38;
    --brown-700: #7a4d17;
    --brown-800: #5b3910;
    --ink: #1f1b14;
    --ink-soft: #4d463a;
    --ink-muted: #6b6253;
    --on-dark: #f6efdf;
    --on-dark-soft: #cfd6cd;
    --line-light: rgba(122, 77, 23, 0.16);
    --line-dark: rgba(223, 179, 112, 0.28);

    --font-serif: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;
    --font-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;

    --container: 1240px;
    --gutter: clamp(1rem, 3.5vw, 2rem);
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-card: 0 1px 2px rgba(60, 40, 10, 0.06), 0 6px 18px rgba(60, 40, 10, 0.07);
    --shadow-raised: 0 10px 30px rgba(5, 15, 10, 0.28);
    --header-height: 88px;
    --transition: 180ms ease;
}

/* ---- Base --------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    background: var(--cream-100);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 3px solid var(--gold-300);
    outline-offset: 3px;
    border-radius: 3px;
}

main:focus {
    outline: none;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--gold-300);
    color: var(--ink);
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.icon {
    flex: none;
    width: 1.5em;
    height: 1.5em;
}

/* ---- Layout ------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(900px + 2 * var(--gutter));
}

.section {
    position: relative;
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--tight-bottom {
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section--tight-top {
    padding-top: clamp(1rem, 2vw, 1.5rem);
}

.section--cream {
    background-color: var(--cream-200);
    background-image:
        url("../images/icons/forest-mist.svg"),
        radial-gradient(ellipse at 50% 0%, var(--cream-50) 0%, rgba(251, 248, 241, 0) 60%);
    background-repeat: repeat-x, no-repeat;
    background-position: center bottom, center top;
    background-size: 720px auto, 100% 100%;
}

.section--paper {
    background: var(--cream-50);
    border-block: 1px solid var(--line-light);
}

.section--forest {
    background-color: var(--green-900);
    background-image:
        url("../images/icons/forest-silhouette.svg"),
        linear-gradient(180deg, var(--green-850) 0%, var(--green-950) 100%);
    background-repeat: repeat-x, no-repeat;
    background-position: center bottom, center;
    background-size: 720px auto, 100% 100%;
    color: var(--on-dark);
}

.heading-lg {
    margin-bottom: 0.75rem;
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
}

.text-link {
    color: var(--brown-700);
    font-weight: 600;
}

.text-link:hover {
    color: var(--brown-800);
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.link-button--dark {
    color: var(--brown-700);
    font-weight: 600;
}

.notice {
    padding: 1.25rem 1.5rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    text-align: center;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.7rem 1.35rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn .icon {
    width: 1.25em;
    height: 1.25em;
}

.btn__arrow {
    transition: transform var(--transition);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

.btn--gold {
    background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
    border-color: rgba(122, 77, 23, 0.35);
    color: var(--ink);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.35) inset, 0 4px 12px rgba(0, 0, 0, 0.22);
}

.btn--gold:hover {
    background: linear-gradient(180deg, var(--gold-200) 0%, var(--gold-400) 100%);
    transform: translateY(-1px);
}

.btn--outline {
    background: rgba(8, 21, 15, 0.55);
    border-color: var(--gold-400);
    color: var(--on-dark);
}

.btn--outline:hover {
    background: rgba(223, 179, 112, 0.16);
    border-color: var(--gold-200);
}

.btn--dark {
    background: var(--green-850);
    border-color: var(--green-850);
    color: var(--on-dark);
}

.btn--dark:hover {
    background: var(--green-700);
    border-color: var(--green-700);
}

.btn--text {
    min-height: 44px;
    padding-inline: 0.5rem;
    background: none;
    border-color: transparent;
    color: var(--gold-300);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.3em;
}

.btn--text:hover {
    color: var(--gold-200);
}

/* ---- Site header -------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--green-900) 0%, var(--green-850) 100%);
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
    transition: box-shadow var(--transition);
}

.site-header.is-stuck {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-height: var(--header-height);
}

.site-logo {
    flex: none;
    display: block;
    margin-block: 4px;
}

/* The height is set and the width follows from the picture's own proportions (2.5 : 1). */
.site-logo__image {
    width: auto;
    height: 80px;
    object-fit: contain;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.6vw, 1.25rem);
}

.site-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.site-nav__link {
    display: inline-block;
    padding: 0.6rem 0.15rem;
    border-bottom: 2px solid transparent;
    font-size: 1.0625rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}

.site-nav__link:hover,
.site-nav__item.is-current > .site-nav__link,
.site-nav__item.is-ancestor > .site-nav__link {
    color: var(--gold-300);
    border-bottom-color: var(--gold-400);
}

.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 44px;
    margin-left: 0.1rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gold-300);
}

.site-nav__toggle .icon {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform var(--transition);
}

.site-nav__toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.site-nav__submenu {
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 10;
    min-width: 260px;
    padding: 0.5rem;
    background: var(--green-900);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-raised);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.site-nav__item--parent:hover > .site-nav__submenu,
.site-nav__item--parent:focus-within > .site-nav__submenu,
.site-nav__item--parent.is-open > .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__sublink {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    text-decoration: none;
}

.site-nav__sublink:hover,
.site-nav__sublink[aria-current="page"] {
    background: rgba(223, 179, 112, 0.14);
    color: var(--gold-200);
}

.site-nav__mobile-actions {
    display: none;
}

.site-header__actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__actions .btn {
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    font-size: 1rem;
}

.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-300);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__phone:hover {
    color: var(--gold-200);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 1.5px solid var(--line-dark);
    border-radius: var(--radius);
    background: none;
    color: var(--gold-300);
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(380px, 34vw, 520px);
    background: var(--green-950);
    color: var(--on-dark);
    overflow: hidden;
}

.hero--home {
    min-height: clamp(460px, 40vw, 600px);
}

.hero--product {
    min-height: clamp(460px, 38vw, 580px);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media picture,
.hero__image {
    width: 100%;
    height: 100%;
}

.hero__image {
    object-fit: cover;
    object-position: 72% 50%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 16, 11, 0.9) 0%, rgba(6, 16, 11, 0.72) 30%, rgba(6, 16, 11, 0.28) 56%, rgba(6, 16, 11, 0) 76%),
        linear-gradient(180deg, rgba(6, 16, 11, 0.35) 0%, rgba(6, 16, 11, 0) 22%, rgba(6, 16, 11, 0) 62%, rgba(6, 16, 11, 0.72) 100%);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.hero__content {
    max-width: 640px;
}

.breadcrumbs {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    margin-inline: 0.6rem;
    opacity: 0.7;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--gold-300);
    text-decoration: underline;
}

.hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    margin-bottom: 0.9rem;
    color: var(--gold-200);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__eyebrow li + li::before {
    content: "•";
    margin-inline: 0.75rem;
    opacity: 0.8;
}

.hero__title {
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero--home .hero__title {
    font-size: clamp(2rem, 3.7vw, 3.1rem);
    line-height: 1.08;
}

.hero__subtitle {
    margin: 0.6rem 0 0;
    font-size: clamp(1.25rem, 2.1vw, 1.7rem);
    font-weight: 600;
    line-height: 1.22;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero__lead {
    max-width: 34em;
    margin: 0.9rem 0 0;
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.price-badge {
    display: inline-grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
    margin: 1.25rem 0 0;
    padding: 0.6rem 1.5rem 0.7rem 1.1rem;
    background: rgba(8, 21, 15, 0.78);
    border: 1.5px solid var(--gold-400);
    border-radius: var(--radius);
}

.price-badge__icon {
    grid-row: 1 / 3;
    width: 2rem;
    height: 2rem;
    color: var(--gold-300);
}

.price-badge__label {
    font-size: 0.95rem;
}

.price-badge__value {
    font-size: 1.9rem;
    line-height: 1;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.highlights__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 15em;
    font-size: 1rem;
    line-height: 1.3;
}

.highlights__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--gold-300);
    border-radius: 50%;
    background: rgba(8, 21, 15, 0.45);
    color: var(--gold-200);
}

.highlights__icon .icon {
    width: 1.75rem;
    height: 1.75rem;
    stroke-width: 2;
}

.hero--product .hero__inner {
    justify-content: flex-end;
}

/*
 * Photos whose subject stands in the middle: the picture is shown a little wider than the hero
 * and anchored left, which moves the subject out from under the text. The widest file is 1920 px,
 * so the picture is never drawn noticeably larger than it is.
 */
.hero--shift .hero__media picture {
    width: 118%;
    max-width: none;
}

.hero--shift .hero__content {
    max-width: 560px;
}

.hero--not-found {
    min-height: clamp(420px, 60vh, 640px);
}

/* ---- Site footer -------------------------------------------------------- */

.site-footer {
    background-color: var(--green-950);
    background-image: url("../images/icons/forest-silhouette.svg");
    background-repeat: repeat-x;
    background-position: center bottom 3.25rem;
    background-size: 720px auto;
    color: var(--on-dark-soft);
    font-size: 0.975rem;
    line-height: 1.55;
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(170px, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.site-footer__logo-image {
    width: 230px;
    height: auto;
    object-fit: contain;
}

.site-footer__heading {
    margin-bottom: 0.75rem;
    color: var(--on-dark);
    font-size: 1.125rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--on-dark);
    overflow-wrap: anywhere;
}

.contact-list .icon {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--gold-300);
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--gold-300);
    text-decoration: underline;
}

.site-footer__links li {
    margin-bottom: 0.4rem;
}

.site-footer__map {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.25rem;
}

.latvia-map--outline {
    width: 100%;
    max-width: 190px;
}

.latvia-map--outline .latvia-map__land {
    fill: none;
    stroke: var(--gold-400);
    stroke-width: 3;
    stroke-linejoin: round;
}

.latvia-map--outline .latvia-map__pin {
    fill: var(--green-950);
    stroke: var(--gold-300);
    stroke-width: 3;
}

.latvia-map--outline .latvia-map__pin-dot {
    fill: var(--gold-300);
}

.site-footer__note {
    margin: 0;
    color: var(--gold-200);
    font-family: var(--font-hand);
    font-size: 1.45rem;
    line-height: 1.15;
    text-align: center;
    transform: rotate(-6deg);
}

.site-footer__bar {
    background: rgba(4, 12, 8, 0.6);
    border-top: 1px solid var(--line-dark);
    font-size: 0.9rem;
}

/* Three parts in one row: the copyright at the left edge, the legal links in the middle of the
   room that is left, the developer credit at the right edge. */
.site-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    min-height: 3.25rem;
    padding-block: 0.5rem;
}

.site-footer__copyright {
    margin: 0;
}

.site-footer__legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

/* The word and the logo share one line; the logo keeps its own proportions (260 : 77). In the
   reference the credit stops a little short of the column's right edge. */
.site-footer__credit {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding-right: 0.875rem;
}

.site-footer__credit-link {
    display: block;
    line-height: 0;
}

.site-footer__credit-logo {
    width: 113px;
    height: auto;
}

.site-footer__legal li + li::before {
    content: "|";
    margin-inline: 0.9rem;
    opacity: 0.5;
}

.site-footer__legal .link-button {
    min-height: 24px;
    text-decoration: none;
}

.site-footer__legal .link-button:hover {
    color: var(--gold-300);
    text-decoration: underline;
}
