/* ===== natmus.se — Computer & Mouse Blog (Swedish / Scandinavian design) ===== */

:root {
    --bg: #f7f6f3;          /* warm off-white paper */
    --surface: #ffffff;     /* clean white cards */
    --surface-2: #efece7;   /* soft sand */
    --text: #1c1c1a;        /* near-black ink */
    --muted: #6b6b66;       /* muted grey */
    --accent: #4a6b6f;      /* muted nordic teal */
    --accent-2: #c05f4b;    /* warm falu-red terracotta */
    --border: #e3e0da;      /* light hairline */
    --radius: 4px;          /* subtle, restrained corners */
}

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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ===== Header ===== */
.site-header {
    background: rgba(247, 246, 243, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

.main-nav a {
    color: var(--muted);
    margin-left: 28px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: 96px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.9rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    max-width: 640px;
    margin: 0 auto;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 22px auto 36px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 13px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: #3b565a;
    transform: translateY(-1px);
}

/* ===== Posts ===== */
.posts {
    padding: 72px 0;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 36px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(28, 28, 26, 0.06);
}

.post-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-2);
    background: rgba(192, 95, 75, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.post-card h3 {
    font-size: 1.22rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
}

.post-card h3 a {
    color: var(--text);
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ===== Article page ===== */
.article {
    padding: 64px 0;
    max-width: 720px;
}

.article .post-tag {
    margin-bottom: 20px;
}

.article h1 {
    font-size: 2.4rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    font-weight: 700;
}

.article-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 26px;
}

.article h2 {
    font-size: 1.45rem;
    margin: 40px 0 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.article p {
    color: #33332f;
    margin-bottom: 20px;
}

.article ul {
    color: #33332f;
    margin: 0 0 20px 22px;
}

.article li {
    margin-bottom: 8px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--muted);
    font-weight: 500;
}

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

/* ===== About ===== */
.about {
    padding: 64px 0;
    max-width: 720px;
}

.about h1 {
    font-size: 2.4rem;
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about p {
    color: #33332f;
    margin-bottom: 20px;
}

.about ul {
    color: #33332f;
    margin: 0 0 20px 22px;
}

.about li {
    margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 48px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.1rem; }
    .hero { padding: 64px 0; }
    .main-nav a { margin-left: 18px; font-size: 0.9rem; }
    .logo { font-size: 1.15rem; }
}
