:root {
    --background: #f7f5f0;
    --surface: #ffffff;
    --surface-soft: #efeee8;
    --text: #24302d;
    --muted: #66716d;
    --line: #d8ddd9;
    --accent: #49675f;
    --accent-strong: #304b44;
    --focus: #8aa69e;
    --radius: 1.25rem;
    --shadow: 0 1rem 2.5rem rgba(36, 48, 45, 0.08);
    --content-width: 74rem;
    --reading-width: 48rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    font-weight: 400;
    font-synthesis: none;
}

a {
    color: var(--accent-strong);
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.2rem;
}

.site-shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(216, 221, 217, 0.85);
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(0.8rem);
}

.header-inner {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.brand-symbol {
    display: block;
    width: 3.6rem;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 0.6rem 0.9rem;
    font: inherit;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
}


.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 650;
}


.site-nav a:hover {
    color: var(--accent);
}

main {
    padding-block: 3rem 5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    gap: 2rem;
    align-items: center;
    padding-block: 3.5rem 4rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-header h1,
.article h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.hero-copy {
    max-width: 41rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.hero-note {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-note p {
    margin: 0;
    font-size: 1.1rem;
}

.section-heading {
    max-width: 44rem;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin-bottom: 0.4rem;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-card {
    min-height: 15rem;
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.portal-card:hover {
    transform: translateY(-0.2rem);
    border-color: var(--focus);
    box-shadow: var(--shadow);
}

.portal-card.is-planned {
    background: transparent;
}

.portal-index {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    aspect-ratio: 1;
    margin-bottom: 2rem;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--accent-strong);
    font-weight: 800;
}

.portal-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.portal-card p {
    margin: 0.65rem 0 1.5rem;
    color: var(--muted);
}

.portal-status {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 750;
}

.portal-card.is-foundation {
    border-color: rgba(73, 103, 95, 0.55);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 238, 232, 0.8));
}

.foundation-panel {
    display: grid;
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    margin-top: 1rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.foundation-symbol-wrap {
    min-width: 0;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: calc(var(--radius) - 0.35rem);
    background: var(--surface-soft);
    text-align: center;
}

.foundation-symbol {
    display: block;
    width: 100%;
    max-width: 32rem;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

.symbol-caption {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.foundation-copy h2 {
    margin: 0 0 1rem;
    line-height: 1.12;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.03em;
}

.foundation-copy h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.15rem;
}

.foundation-copy p {
    max-width: 62ch;
}

.foundation-lead {
    color: var(--accent-strong);
    font-size: clamp(1.08rem, 2.4vw, 1.25rem);
    font-weight: 650;
}

.foundation-connections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.foundation-connections li {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 0.92rem;
}

.foundation-rule {
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border-left: 0.3rem solid var(--accent);
    background: var(--surface-soft);
}

.foundation-rule p {
    margin: 0.35rem 0 0;
}

.topics-section {
    margin-top: 2.5rem;
}

.page-header {
    max-width: var(--reading-width);
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.page-header p {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.12rem;
}

.topic-list {
    display: grid;
    gap: 0.75rem;
    max-width: var(--reading-width);
    padding: 0;
    list-style: none;
}

.topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.topic-item a {
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.topic-item a:hover {
    color: var(--accent);
}

.topic-state {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: inherit;
}

.article {
    width: min(100%, var(--reading-width));
    max-width: 100%;
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.article h1 {
    margin-bottom: 1.75rem;
    font-size: clamp(2.15rem, 5vw, 3.65rem);
    font-weight: 760;
}

.article h2 {
    margin-top: 2.6rem;
    margin-bottom: 0.85rem;
    line-height: 1.22;
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    font-weight: 730;
}

.article p,
.article li {
    max-width: 68ch;
    font-weight: 400 !important;
    font-style: normal;
}

.article p {
    margin-block: 0 1.15rem;
}

.article ul,
.article ol {
    margin-block: 0.75rem 1.4rem;
    padding-left: 1.5rem;
}

.article li + li {
    margin-top: 0.28rem;
}

.article strong {
    font-weight: 700 !important;
}

.article blockquote {
    margin: 2rem 0;
    padding: 0.2rem 0 0.2rem 1.25rem;
    border-left: 0.25rem solid var(--accent);
    color: var(--accent-strong);
    font-size: 1.12rem;
}

.article hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.notice {
    max-width: var(--reading-width);
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface-soft);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 2rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-shell {
        width: min(calc(100% - 1.25rem), var(--content-width));
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0.625rem;
        right: 0.625rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .foundation-panel {
        grid-template-columns: 1fr;
    }

    .brand-symbol {
        width: 3rem;
    }

    main {
        padding-block: 2rem 3.5rem;
    }

    .hero {
        padding-block: 2rem 3rem;
    }

    .article {
        padding: 1.2rem;
        border-radius: 1rem;
    }

    .article h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }
}


.notice-preview {
    border-style: dashed;
}

/* v11.9: enotna tipografija citatov na vseh vsebinskih straneh. */
.article blockquote,
.article blockquote p {
    font-weight: 400 !important;
}

.article blockquote strong {
    font-weight: 650 !important;
}


/* v11.10: stabilna začetna tipografija brez preklopa na nebundlano pisavo Inter. */
html, body {
    font-synthesis: none;
}

/* v11.16: naslovna stran sLOVEnija — Delamo z Ljubeznijo. */
:root {
    --home-navy: #0f315d;
    --home-gold: #a7740b;
    --home-gold-dark: #7f5700;
    --home-cream: #fffaf1;
}

.brand span {
    color: var(--home-gold-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.015em;
}

.site-nav a {
    color: var(--home-navy);
}

.home-hero {
    position: relative;
    min-height: 36rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 1.2rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid rgba(167, 116, 11, 0.26);
    border-radius: 0 0 1.8rem 1.8rem;
    background-image:
        linear-gradient(90deg, rgba(255, 250, 241, 0.55), rgba(255, 250, 241, 0.88) 28%, rgba(255, 250, 241, 0.94) 50%, rgba(255, 250, 241, 0.88) 72%, rgba(255, 250, 241, 0.48)),
        url('../images/slovenija-ljubezen-home-hero.jpg');
    background-position: center;
    background-size: cover;
    box-shadow: 0 1.4rem 3.5rem rgba(15, 49, 93, 0.13);
    isolation: isolate;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 24%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(255, 250, 241, 0), rgba(255, 250, 241, 0.3));
    pointer-events: none;
}

.home-hero-content {
    width: min(100%, 47rem);
    padding: clamp(1.6rem, 4.5vw, 3.2rem);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    background: rgba(255, 252, 246, 0.88);
    box-shadow: 0 1rem 3rem rgba(15, 49, 93, 0.12);
    text-align: center;
    backdrop-filter: blur(0.45rem);
}

.slovenia-wordmark {
    margin: 0;
    color: var(--home-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.1rem, 9vw, 6.7rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.slovenia-love {
    color: var(--home-gold);
}

.home-hero h1 {
    margin: 1rem 0 0;
    color: var(--home-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.65rem, 7vw, 5.15rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
}

.home-hero-tagline {
    margin: 1rem 0 0;
    color: var(--home-gold-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 4vw, 2.7rem);
    line-height: 1.15;
}

.home-hero-copy {
    max-width: 43rem;
    margin: 1.25rem auto 0;
    color: var(--home-navy);
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    line-height: 1.55;
}

.home-hero-principle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.35rem auto 0;
    color: var(--home-navy);
    font-size: clamp(1rem, 2.1vw, 1.15rem);
    font-weight: 700;
}

.home-hero-principle span {
    color: var(--home-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75em;
    font-weight: 400;
    line-height: 1;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    margin-top: 1.6rem;
    padding: 0.72rem 1.65rem;
    border: 1px solid rgba(127, 87, 0, 0.32);
    border-radius: 999px;
    background: linear-gradient(135deg, #b98516, #8f6100);
    color: #fff;
    font-size: 1.04rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 0.75rem 1.8rem rgba(127, 87, 0, 0.2);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-hero-cta:hover {
    transform: translateY(-0.12rem);
    box-shadow: 0 1rem 2.2rem rgba(127, 87, 0, 0.25);
}

.home-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 4rem;
    padding: 0.9rem 0;
    border-block: 1px solid rgba(167, 116, 11, 0.22);
    list-style: none;
}

.home-values li {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    color: var(--home-navy);
    text-align: center;
}

.home-values li + li {
    border-left: 1px solid rgba(167, 116, 11, 0.2);
}

.home-values li > span {
    color: var(--home-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}

.home-values strong {
    font-weight: 700;
}

.home-portals {
    scroll-margin-top: 6rem;
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 34rem;
    }

    .home-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-values li:nth-child(3) {
        border-left: 0;
    }

    .home-values li:nth-child(n + 3) {
        border-top: 1px solid rgba(167, 116, 11, 0.2);
    }
}

@media (max-width: 680px) {
    .home-hero {
        min-height: auto;
        padding: 0.75rem;
        border-radius: 0 0 1.25rem 1.25rem;
        background-position: center bottom;
    }

    .home-hero-content {
        padding: 1.4rem 1rem 1.6rem;
        background: rgba(255, 252, 246, 0.93);
    }

    .slovenia-wordmark {
        font-size: clamp(3rem, 18vw, 4.8rem);
    }

    .home-hero h1 {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .home-hero-tagline {
        font-size: clamp(1.45rem, 8vw, 2.05rem);
    }

    .home-values {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    .home-values li + li,
    .home-values li:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(167, 116, 11, 0.2);
    }
}
