/* ==========================================================================
   VERSLO GRAFIJA — Landing Page
   Pulp Press aesthetic. Same visual system as the Buttondown archive.
   Pure static — no build tools, no JavaScript frameworks.
   ========================================================================== */

/* === FONTS === */

/* Barlow Condensed — complete woff2 (Lithuanian glyph support) */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B47b1_3TcvqED.woff2) format('woff2');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2_3TcvqED.woff2) format('woff2');
}

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,700;1,8..60,400&family=IBM+Plex+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* === VARIABLES === */

:root {
    --display: 'Barlow Condensed', 'Arial Black', sans-serif;
    --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --mono: 'IBM Plex Mono', 'Courier New', monospace;
    --bg: #f2ece0;
    --paper: #ede7d9;
    --text: #1a1a1a;
    --muted: #4a4a4a;
    --accent: #8b1a1a;
    --accent-light: rgba(139, 26, 26, 0.08);
    --rule: #1a1a1a;
    --rule-light: #bbb;
    --width: 900px;
}

/* === RESET === */

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

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: auto;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === PAPER & GRAIN (same as Buttondown theme) === */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.03;
    background-image: radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 4px 4px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* === MASTHEAD === */

.masthead {
    border-bottom: 6px double var(--rule);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.masthead-inner {
    max-width: var(--width);
    margin: 0 auto;
}

.masthead-logo img {
    display: inline-block;
    margin-bottom: 0.75rem;
    filter: contrast(1.2);
}

.masthead-title {
    font-family: var(--display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.masthead-tagline {
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin: 0.5rem 0 1.25rem;
}

.masthead-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--rule);
}

.masthead-nav a {
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    border-bottom: none;
    transition: none;
}

.masthead-nav a:hover {
    color: var(--text);
}

/* === FEATURED POST === */

.featured {
    max-width: var(--width);
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.featured-link {
    display: block;
    border: 3px solid var(--rule);
    overflow: hidden;
    transition: none;
}

.featured-link:hover {
    border-color: var(--accent);
}

.featured-image {
    position: relative;
    overflow: hidden;
    max-height: 440px;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: contrast(1.1) grayscale(0.05);
}

.featured-content {
    padding: 1.5rem 2rem 2rem;
    border-top: 3px solid var(--rule);
}

.featured-link:hover .featured-content {
    border-top-color: var(--accent);
}

.featured-date {
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.featured-title {
    font-family: var(--display);
    font-size: 2.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
    margin: 0.5rem 0 0.75rem;
}

.featured-link:hover .featured-title {
    color: var(--accent);
}

.featured-excerpt {
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 1rem;
}

.featured-cta {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

/* === POST GRID === */

.post-grid {
    max-width: var(--width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.section-header {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--rule);
}

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

.card {
    display: block;
    border: 2px solid var(--rule);
    overflow: hidden;
    transition: none;
}

.card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.card-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--paper);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) grayscale(0.05);
}

.card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
}

.card-image-v {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5rem;
    font-weight: bold;
    color: var(--bg);
    opacity: 0.3;
}

.card-content {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 2px solid var(--rule);
}

.card:hover .card-content {
    border-top-color: var(--accent);
}

.card-date {
    font-family: var(--mono);
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.card-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin: 0.375rem 0 0;
}

.card:hover .card-title {
    color: var(--accent);
}

/* === SUBSCRIBE === */

.subscribe {
    max-width: var(--width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.subscribe-inner {
    border: 3px solid var(--rule);
    padding: 3rem 2rem;
    text-align: center;
}

.subscribe-logo {
    display: inline-block;
    margin-bottom: 1rem;
    filter: contrast(1.2);
}

.subscribe-tagline {
    font-family: var(--body);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
    font-family: var(--mono);
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--rule);
    background: #fff;
    color: var(--text);
    width: 280px;
    max-width: 100%;
    transition: none;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.subscribe-form input[type="email"]::placeholder {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.subscribe-form button {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.75rem 2rem;
    background: var(--text);
    border: none;
    color: var(--bg);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: none;
}

.subscribe-form button:hover {
    background: var(--accent);
}

.subscribe-note {
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin: 1rem 0 0;
}

/* === ABOUT === */

.about {
    max-width: var(--width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.about-content {
    max-width: 680px;
}

.about-content p {
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.about-content p:last-child {
    font-weight: 700;
    margin-bottom: 0;
}

/* === FOOTER === */

.footer {
    max-width: var(--width);
    margin: 3rem auto 0;
    padding: 0 1.5rem 2rem;
}

.footer-inner {
    padding-top: 1rem;
    border-top: 6px double var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.footer-archive {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.footer-archive:hover {
    background: var(--accent-light);
}

.footer-copy {
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin: 0;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .masthead-title { font-size: 2rem; }

    .featured-title { font-size: 1.5rem; }

    .featured-image { max-height: 280px; }

    .featured-content { padding: 1.25rem 1.5rem 1.5rem; }

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        display: grid;
        grid-template-columns: 140px 1fr;
    }

    .card-image {
        aspect-ratio: 1;
    }

    .card-content {
        border-top: none;
        border-left: 2px solid var(--rule);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .card:hover .card-content {
        border-top-color: transparent;
        border-left-color: var(--accent);
    }

    .subscribe-inner { padding: 2rem 1.5rem; }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body { font-size: 16px; }

    .masthead { padding: 1.5rem 1rem 1rem; }
    .masthead-title { font-size: 1.75rem; letter-spacing: 0.1em; }
    .masthead-nav { gap: 1rem; flex-wrap: wrap; }

    .featured { padding: 0 1rem; margin: 1.5rem auto; }
    .featured-content { padding: 1rem; }
    .featured-title { font-size: 1.25rem; }

    .post-grid { padding: 0 1rem; }
    .card { grid-template-columns: 100px 1fr; }

    .subscribe { padding: 0 1rem; }
    .subscribe-form input[type="email"] { width: 100%; }

    .about { padding: 0 1rem; }

    .footer { padding: 0 1rem 1.5rem; }
}

/* === PRINT === */

@media print {
    body { font-size: 10pt; background: #fff; }
    body::before, body::after { display: none; }
    .masthead-nav, .subscribe, .footer-archive { display: none; }
    a { color: var(--text); border: none; }
    .featured-link, .card { border-color: #ccc; }
}
