/* styles.css — paper & ink (light editorial theme) */

/* =============================================
   TOKENS
   ============================================= */
:root {
    /* Palette: paper + ink blue + terracotta */
    --c-paper: #f6f3ec;
    --c-surface: #fffefb;
    --c-card: #fbf9f4;
    --c-quote: #f1ede4;
    --c-code: #efebe2;
    --c-ink: #1e2328;
    --c-ink-soft: #3b4148;
    --c-muted: #5b6168;
    --c-accent: #23416b;
    --c-accent-hover: #1a3152;
    --c-accent2: #9c4f2c;
    --c-accent-soft: rgba(35, 65, 107, 0.08);
    --c-accent2-soft: rgba(156, 79, 44, 0.09);
    --c-line: rgba(30, 35, 40, 0.12);
    --c-line-soft: rgba(30, 35, 40, 0.07);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(30, 35, 40, 0.04), 0 2px 8px rgba(30, 35, 40, 0.04);
    --shadow-md: 0 8px 24px -10px rgba(30, 35, 40, 0.14);

    /* Radii */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --fs-base: 1rem;
    --lh-base: 1.7;

    /* Spacing scale */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;

    --gutter: 1.25rem;
    --container: 1200px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    background-color: var(--c-paper);
    background-image: radial-gradient(rgba(30, 35, 40, 0.035) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--c-ink);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-base);
    min-height: 100vh;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas,
iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: rgba(35, 65, 107, 0.4);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--c-accent-hover);
    text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
}

::selection {
    background: rgba(35, 65, 107, 0.18);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 243, 236, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-line-soft);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-3) var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3) var(--s-4);
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    text-decoration: none;
}

.main-nav {
    order: 3;
    width: 100%;
    display: flex;
    gap: var(--s-4);
    overflow-x: auto;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 2px;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--s-1) 0;
    color: var(--c-muted);
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--c-accent);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.lang-switcher {
    display: flex;
    gap: var(--s-1);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 var(--s-2);
    color: var(--c-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--c-accent);
    background: var(--c-accent-soft);
    border-color: rgba(35, 65, 107, 0.25);
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
main {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) var(--gutter) var(--s-7);
    min-width: 0;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
    align-items: center;
    margin-bottom: var(--s-7);
    min-width: 0;
}

.hero-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-accent);
    box-shadow: var(--shadow-md);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s var(--ease);
}

.hero-visual:hover img {
    transform: scale(1.02);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    min-width: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent2);
    background: var(--c-accent2-soft);
    border: 1px solid rgba(156, 79, 44, 0.22);
    border-radius: var(--radius-pill);
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--c-ink);
    overflow-wrap: anywhere;
}

.lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-ink-soft);
    max-width: 62ch;
}

.meta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3) var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid var(--c-line);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.meta
-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.meta-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--c-ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--s-2) var(--s-5);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--c-accent);
    border: 1px solid var(--c-accent);
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover {
    color: #fff;
    background: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    transform: translateY(-1px);
}

.btn--ghost {
    color: var(--c-accent);
    background: transparent;
}

.btn--ghost:hover {
    color: var(--c-accent);
    background: var(--c-accent-soft);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: var(--s-7) 0;
    border-top: 1px solid var(--c-line-soft);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
}

.section-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-accent2);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--c-ink);
}

.prose {
    max-width: 70ch;
    color: var(--c-ink-soft);
}

.prose p + p {
    margin-top: var(--s-4);
}

.prose h3 {
    margin-top: var(--s-6);
    margin-bottom: var(--s-3);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-ink);
}

.prose ul,
.prose ol {
    margin-top: var(--s-4);
    padding-left: var(--s-5);
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: var(--s-2);
}

.prose blockquote {
    margin: var(--s-6) 0;
    padding: var(--s-4) var(--s-5);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--c-ink);
    background: var(--c-accent-soft);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.prose code {
    padding: 0.1em 0.4em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--c-accent2-soft);
    border-radius: 4px;
}

/* =============================================
   CARDS GRID
   ============================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: var(--s-5);
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    height: 100%;
    padding: var(--s-5);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(35, 65, 107, 0.25);
}

.card-index {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-accent2);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-ink);
}

.card-text {
    font-size: 0.95rem;
    color: var(--c-ink-soft);
}

.card-link {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-accent);
}

/* =============================================
   QUOTE / FIGURE
   ============================================= */
.figure {
    margin: var(--s-6) 0;
}

.figure img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.figure figcaption {
    margin-top: var(--s-3);
    font-size: 0.85rem;
    color: var(--c-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    margin-top: var(--s-7);
    padding: var(--s-6) var(--gutter);
    border-top: 1px solid var(--c-line);
    background: rgba(246, 243, 236, 0.6);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    font-size: 0.85rem;
    color: var(--c-muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
}

.footer-nav a {
    color: var(--c-muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--c-accent);
    text-decoration: underline;
}

/* =============================================
   UTILITIES
   ============================================= */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 640px) {
    .main-nav {
        width: auto;
        order: 0;
    }

    .section-title {
        font-size: 1.85rem;
    }
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: var(--s-7);
    }

    .article-title {
        font-size: 2.2rem;
    }

    .section-head {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card:hover,
    .btn:hover,
    .hero-visual:hover img {
        transform: none;
    }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    .site-header,
    .site-footer,
    .hero-actions,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
===end file===
===end file===
===end file===
===end file===
===end file===
===end file===