/* Morotsbloggen – Stilmall */

:root {
    --carrot: #ed7014;
    --carrot-dark: #c25a0a;
    --leaf: #4a7c2c;
    --cream: #fdf6ee;
    --ink: #2e2a25;
    --muted: #7a726a;
    --border: #ecdcc9;
}

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

body {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--cream);
}

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

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 3px solid var(--carrot);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--carrot-dark);
    text-decoration: none;
}

.site-nav a {
    margin-left: 22px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--carrot);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--carrot), var(--carrot-dark));
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Posts */
.section-title {
    font-size: 1.6rem;
    margin: 44px 0 24px;
    color: var(--carrot-dark);
}

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 22px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(237, 112, 20, 0.15);
}

.post-card-body {
    padding: 24px 26px;
}

.post-tag {
    display: inline-block;
    background: var(--leaf);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.post-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

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

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

.post-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--carrot);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article pages */
.article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 44px;
    margin: 44px 0;
}

.article h1 {
    font-size: 2rem;
    color: var(--carrot-dark);
    margin-bottom: 10px;
}

.article h2 {
    font-size: 1.4rem;
    color: var(--leaf);
    margin: 30px 0 12px;
}

.article p {
    margin-bottom: 16px;
}

.article ul {
    margin: 0 0 16px 22px;
}

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

.back-link {
    display: inline-block;
    margin: 28px 0 0;
    color: var(--carrot);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #d8d0c6;
    text-align: center;
    padding: 28px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .article { padding: 26px 22px; }
    .site-header .container { flex-direction: column; gap: 10px; }
}
