/*
Theme Name: Minimal Hygge
Theme URI: https://minimalhygge.online
Author: Minimal Hygge
Description: Serene. Intentional. Cozy. A single-column editorial theme with charcoal-orange palette, Bloomberg-inspired data-driven typography. Style ID 274e79.
Version: 1.0
License: GPL v2 or later
Text Domain: minimalhygge
*/

/* ============================================================
   Minimal Hygge — Base theme stylesheet (Style ID 274e79)
   charcoal-orange · single-column-editorial · Bloomberg vibe
   NOTE: prefix "274e79-" starts with a digit, so ALL selectors
   use attribute form [class~="274e79-..."] (digit-leading class
   selectors are invalid CSS).
   ============================================================ */

:root {
    --c274-bg: #1e1e1e;
    --c274-bg-alt: #262626;
    --c274-bg-deep: #161616;
    --c274-text: #f5f5f5;
    --c274-text-muted: #a0a0a0;
    --c274-accent: #ff6b35;
    --c274-border: #383838;
    --c274-col: 740px;
    --c274-display: 'Arial Narrow', 'Helvetica Neue Condensed', 'Roboto Condensed', sans-serif;
    --c274-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--c274-bg);
    color: var(--c274-text);
    font-family: var(--c274-body);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c274-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
    font-family: var(--c274-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

/* ---- Header / Nav ---- */
[class~="274e79-site-header"] {
    border-bottom: 2px solid var(--c274-border);
    background: var(--c274-bg-deep);
    position: sticky;
    top: 0;
    z-index: 100;
}
[class~="274e79-nav-inner"] {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
[class~="274e79-logo"] {
    font-family: var(--c274-display);
    font-weight: 900;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c274-text);
}
[class~="274e79-logo"] span { color: var(--c274-accent); }
[class~="274e79-menu"] { display: flex; gap: 28px; list-style: none; }
[class~="274e79-menu"] a {
    color: var(--c274-text);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
[class~="274e79-menu"] a:hover { color: var(--c274-accent); text-decoration: none; }
[class~="274e79-nav-toggle"] {
    display: none;
    background: none;
    border: none;
    color: var(--c274-text);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- Content container ---- */
[class~="274e79-container"] {
    max-width: var(--c274-col);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Single article ---- */
[class~="274e79-article"] { padding: 56px 0; }
[class~="274e79-article-header"] { max-width: var(--c274-col); margin: 0 auto 32px; padding: 0 24px; }
[class~="274e79-article"] h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
[class~="274e79-article-meta"] {
    color: var(--c274-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
[class~="274e79-article-meta"] [class~="274e79-cat"] { color: var(--c274-accent); }
[class~="274e79-featured-img"] { margin: 32px 0; }
[class~="274e79-featured-img"] img { width: 100%; }
[class~="274e79-content"] { max-width: var(--c274-col); margin: 0 auto; padding: 0 24px; }
[class~="274e79-content"] p { margin-bottom: 1.4em; }
[class~="274e79-content"] h2 { font-size: 1.8rem; margin: 1.4em 0 0.5em; }
[class~="274e79-content"] h3 { font-size: 1.4rem; margin: 1.2em 0 0.5em; }
[class~="274e79-content"] ul, [class~="274e79-content"] ol { margin: 0 0 1.4em 1.4em; }
[class~="274e79-content"] blockquote {
    border-left: 4px solid var(--c274-accent);
    padding-left: 22px;
    margin: 1.6em 0;
    font-style: italic;
    color: var(--c274-text-muted);
}

/* ---- Index / archive list ---- */
[class~="274e79-archive"] { padding: 48px 0; }
[class~="274e79-archive-title"] {
    font-size: 2rem;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--c274-accent);
    display: inline-block;
    padding-bottom: 6px;
}
[class~="274e79-post-row"] {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--c274-border);
}
[class~="274e79-post-row-thumb"] { flex: 0 0 200px; }
[class~="274e79-post-row-thumb"] img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
[class~="274e79-post-row-body"] h2 { font-size: 1.5rem; margin-bottom: 8px; }
[class~="274e79-post-row-body"] h2 a { color: var(--c274-text); }
[class~="274e79-post-row-body"] h2 a:hover { color: var(--c274-accent); text-decoration: none; }
[class~="274e79-post-row-excerpt"] { color: var(--c274-text-muted); font-size: 0.95rem; }
[class~="274e79-post-row-meta"] {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c274-text-muted);
    margin-bottom: 6px;
    font-weight: 700;
}

/* ---- Footer ---- */
[class~="274e79-site-footer"] {
    background: var(--c274-bg-deep);
    border-top: 2px solid var(--c274-border);
    margin-top: 60px;
    padding: 48px 24px 32px;
}
[class~="274e79-footer-inner"] {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
[class~="274e79-footer-col"] h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: var(--c274-accent);
}
[class~="274e79-footer-col"] ul { list-style: none; }
[class~="274e79-footer-col"] li { margin-bottom: 8px; }
[class~="274e79-footer-col"] a { color: var(--c274-text-muted); font-size: 0.9rem; }
[class~="274e79-footer-bottom"] {
    max-width: 1100px;
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--c274-border);
    color: var(--c274-text-muted);
    font-size: 0.82rem;
}

/* ---- 404 / page ---- */
[class~="274e79-page"] { padding: 56px 0; }
[class~="274e79-page"] h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px; }

@media (max-width: 768px) {
    [class~="274e79-menu"] {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c274-bg-deep);
        flex-direction: column;
        padding: 16px 24px;
        gap: 14px;
        border-bottom: 2px solid var(--c274-border);
    }
    [class~="274e79-menu"][class~="274e79-open"] { display: flex; }
    [class~="274e79-nav-toggle"] { display: block; }
    [class~="274e79-post-row"] { flex-direction: column; gap: 14px; }
    [class~="274e79-post-row-thumb"] { flex: none; }
    [class~="274e79-footer-inner"] { grid-template-columns: 1fr; gap: 28px; }
}
