:root {
    --paper: #f5efe7;
    --paper-warm: #fbf7f1;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.74);
    --ink: #142d46;
    --ink-quiet: #43566a;
    --mist: #dce7ec;
    --line: rgba(20, 45, 70, 0.16);
    --gold: #b58b4b;
    --sage: #6f8377;
    --reader-width: 760px;
    --page-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    color: var(--ink);
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 48%, #eef4f5 100%);
    color: var(--ink);
    font-family: "Montserrat", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration-color: rgba(20, 45, 70, 0.32);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover {
    color: #0f456f;
}

p {
    color: var(--ink-quiet);
    line-height: 1.78;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.98;
}

html[lang="el"] body {
    font-family: "Source Sans 3", sans-serif;
}

html[lang="el"] h1,
html[lang="el"] h2,
html[lang="el"] h3,
html[lang="el"] .brand-mark,
html[lang="el"] .bio-hero blockquote,
html[lang="el"] .footer-grid strong {
    font-family: "Lora", Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
}

html[lang="el"] .site-nav a,
html[lang="el"] .plain-link,
html[lang="el"] .footer-grid,
html[lang="el"] .eyebrow,
html[lang="el"] .card-meta,
html[lang="el"] .article-meta,
html[lang="el"] .feedback-counts,
html[lang="el"] .form-row label,
html[lang="el"] .btn-brand,
html[lang="el"] .site-address,
html[lang="el"] .section-heading h2,
html[lang="el"] .author-panel h2,
html[lang="el"] .feedback-panel h2,
html[lang="el"] .social-panel h2 {
    font-family: "Source Sans 3", sans-serif;
}

.site-chrome {
    min-height: 100vh;
}

.site-header {
    align-items: center;
    background: rgba(251, 247, 241, 0.88);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    min-height: 84px;
    padding: 16px max(20px, calc((100vw - var(--page-width)) / 2 + 20px));
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
}

.brand-mark {
    display: grid;
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.9;
    text-decoration: none;
}

.brand-mark span {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.brand-mark small {
    font-size: 1rem;
    font-style: italic;
    justify-self: end;
    margin-top: -2px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: flex-end;
}

.site-nav a,
.plain-link,
.footer-grid,
.eyebrow,
.card-meta,
.article-meta,
.feedback-counts,
.form-row label,
.btn-brand,
.site-address {
    font-family: "Montserrat", Arial, sans-serif;
}

.site-nav a,
.plain-link {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover,
.plain-link:hover {
    color: #0f456f;
}

.page-frame {
    min-height: 68vh;
}

.landing-shell {
    background: var(--paper-warm);
}

.landing-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(245, 239, 231, 0.96) 0%, rgba(245, 239, 231, 0.82) 32%, rgba(245, 239, 231, 0.1) 62%),
        url("/assets/journal-kolpidis-hero.webp") center right / cover no-repeat;
    display: grid;
    min-height: calc(100vh - 84px);
    padding: clamp(56px, 7vw, 110px) max(22px, calc((100vw - var(--page-width)) / 2 + 22px));
}

.landing-copy {
    max-width: 660px;
}

.landing-copy h1 {
    font-size: clamp(4.2rem, 11vw, 9rem);
    margin: 0;
}

.landing-copy h1 span {
    display: block;
}

.landing-copy h1 em {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 4rem);
    font-style: italic;
    font-weight: 500;
    margin-left: min(38vw, 310px);
}

.hero-rule {
    align-items: center;
    display: flex;
    gap: 26px;
    margin-top: clamp(24px, 4vw, 42px);
    transform: translateY(-110px);
}

.hero-rule span {
    background: var(--ink);
    display: block;
    height: 1px;
    width: 78px;
}

.hero-rule p {
    color: var(--ink);
    font-size: clamp(0.92rem, 2vw, 1.12rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.55;
    margin: 0;
    text-transform: uppercase;
}

.site-address {
    color: #315070;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: clamp(28px, 5vw, 48px) 0 0;
    text-transform: uppercase;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn-brand {
    align-items: center;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    min-width: 152px;
    padding: 10px 18px;
    text-transform: uppercase;
}

.btn-brand:hover {
    background: #0f456f;
    border-color: #0f456f;
    color: #fff;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink);
}

.hero-btn-secondary:hover {
    color: #fff;
}

.hero-panel,
.content-grid,
.article-shell,
.bio-shell,
.empty-panel {
    margin: 0 auto;
    max-width: var(--page-width);
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
}

.hero-panel {
    border-bottom: 1px solid var(--line);
    padding-bottom: clamp(44px, 7vw, 82px);
    padding-top: clamp(54px, 8vw, 102px);
}

.hero-panel h1 {
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    margin: 12px 0 20px;
    max-width: 920px;
}

.lead {
    color: var(--ink-quiet);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    max-width: 720px;
}

.eyebrow,
.card-meta,
.article-meta,
.feedback-counts {
    color: var(--ink-quiet);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content-grid {
    padding-bottom: clamp(54px, 8vw, 96px);
    padding-top: 42px;
}

.section-heading {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
}

.section-heading h2 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
}

.article-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.article-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 248px;
    overflow: hidden;
}

.article-card > :not(.article-card-image) {
    margin-left: 22px;
    margin-right: 22px;
}

.article-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 22px;
}

.article-card h3 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    margin-bottom: 12px;
    margin-top: 14px;
}

.article-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.article-card p {
    margin-bottom: 20px;
}

.article-card .plain-link {
    display: inline-flex;
    margin-bottom: 24px;
}

.article-card-image {
    background: var(--mist);
    display: block;
    height: 190px;
    overflow: hidden;
}

.article-card-image img,
.article-hero-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.empty-panel {
    padding-bottom: 76px;
    padding-top: 76px;
}

.empty-panel h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
}

.article-shell {
    max-width: none;
    padding-bottom: clamp(56px, 8vw, 96px);
    padding-top: clamp(48px, 7vw, 86px);
}

.article-header {
    border-bottom: 1px solid var(--line);
    margin: 0 auto 34px;
    max-width: var(--reader-width);
    padding-bottom: 30px;
}

.article-header h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin: 16px 0 24px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 20px;
}

.article-summary {
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    margin-bottom: 0;
}

.article-hero-image {
    aspect-ratio: 16 / 8;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 auto 34px;
    max-width: 980px;
    overflow: hidden;
}

.article-content {
    color: var(--ink);
    font-family: "Lora", Georgia, serif;
    font-size: clamp(1.08rem, 2vw, 1.2rem);
    line-height: 1.78;
    margin: 0 auto;
    max-width: var(--reader-width);
}

.article-content p,
.article-content li {
    color: var(--ink);
}

.article-content h2,
.article-content h3 {
    margin-top: 2.4em;
}

.article-content h2 {
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.article-content h3 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.article-content blockquote {
    border-left: 3px solid var(--gold);
    color: var(--ink);
    font-style: italic;
    margin: 2rem 0;
    padding-left: 1.2rem;
}

.article-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.author-panel,
.feedback-panel {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 26px auto 0;
    max-width: var(--reader-width);
    padding: 22px;
}

.author-panel h2,
.feedback-panel h2,
.social-panel h2 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feedback-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.feedback-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.form-row label {
    color: var(--ink);
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-control {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    min-height: 46px;
}

.reaction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reaction-choice {
    align-items: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
}

.reaction-choice:has(input:checked),
.reaction-choice.selected {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(181, 139, 75, 0.28);
}

.bio-shell {
    padding-bottom: clamp(56px, 8vw, 96px);
    padding-top: clamp(48px, 7vw, 86px);
}

.bio-hero {
    border-bottom: 1px solid var(--line);
    padding-bottom: 34px;
}

.bio-hero h1 {
    font-size: clamp(3.2rem, 8vw, 6.2rem);
    margin: 16px 0 24px;
}

.bio-hero blockquote {
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    margin: 0 0 24px;
    max-width: 840px;
}

.bio-intro {
    max-width: var(--reader-width);
}

.bio-content-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
    margin-top: 34px;
}

.bio-content {
    color: var(--ink);
    font-family: "Lora", Georgia, serif;
    font-size: clamp(1.04rem, 2vw, 1.16rem);
    line-height: 1.78;
}

.bio-content p,
.bio-content li {
    color: var(--ink);
}

.social-panel {
    align-self: start;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.social-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-list a {
    align-items: center;
    background: rgba(220, 231, 236, 0.38);
    border: 1px solid transparent;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    text-decoration: none;
}

.social-list a:hover {
    background: #fff;
    border-color: var(--line);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--ink-quiet);
    padding: 28px max(20px, calc((100vw - var(--page-width)) / 2 + 20px)) 42px;
}

.footer-grid {
    align-items: baseline;
    display: grid;
    gap: 14px 28px;
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto;
}

.footer-grid strong {
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 600;
}

.footer-grid p {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 860px) {
    .site-header,
    .section-heading,
    .bio-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        display: grid;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .landing-hero {
        background:
            linear-gradient(180deg, rgba(245, 239, 231, 0.96) 0%, rgba(245, 239, 231, 0.74) 54%, rgba(245, 239, 231, 0.2) 100%),
            url("/assets/journal-kolpidis-hero.webp") center bottom / cover no-repeat;
        min-height: 82vh;
    }

    .landing-copy h1 em {
        margin-left: 34vw;
    }

    .hero-rule {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .hero-rule p {
        letter-spacing: 0.1em;
    }

    .article-hero-image {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 520px) {
    .brand-mark span {
        font-size: 2.2rem;
    }

    .landing-copy h1 {
        font-size: clamp(3.4rem, 19vw, 5rem);
    }

    .landing-copy h1 em {
        margin-left: 28vw;
    }

    .cta-row,
    .btn-brand {
        width: 100%;
    }

    .article-card > :not(.article-card-image) {
        margin-left: 18px;
        margin-right: 18px;
    }
}
