/* ============================================================
   Urban Outdoorsy — magazine theme
   Single stylesheet, no build step.
   ============================================================ */

/* --- Custom properties ------------------------------------ */
:root {
    --bg: #fafaf6;
    --primary: #2d4f3a;
    --text: #1a1d1b;
    --muted: #5a625e;
    --font-headline: 'Source Serif 4', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Layout primitives ------------------------------------ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Nav -------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
}

.nav-logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 240px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
    transition: color 0.15s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* --- Hero ------------------------------------------------- */
.hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    width: 100%;
    padding: 3rem 1.5rem 3.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.hero-text {
    max-width: 680px;
}

.hero-text h1 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.15;
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 2px solid #fff;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
    background: #fff;
    color: var(--primary);
}

/* --- Latest Articles section ------------------------------ */
.latest-articles {
    padding: 4rem 0;
}

.latest-articles h2 {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2rem;
}

/* --- Post grid -------------------------------------------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Post card -------------------------------------------- */
.post-card {
    display: block;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s, box-shadow 0.18s;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.post-card-image {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.post-card-text {
    padding: 1.25rem;
}

.post-card-text h3 {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    color: var(--text);
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.post-card-summary {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- See all link ----------------------------------------- */
.see-all {
    text-align: center;
    margin-top: 2.5rem;
}

.see-all a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s;
}

.see-all a:hover {
    opacity: 0.75;
}

/* --- Single post page ------------------------------------- */
.post-hero {
    margin: 0;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.post-body h1 {
    font-family: var(--font-headline);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.post-date {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 2rem;
}

.post-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    margin: 0 0 1.25rem;
}

.post-body h2,
.post-body h3 {
    font-family: var(--font-headline);
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.post-body h2 {
    font-size: 1.5rem;
}

.post-body h3 {
    font-size: 1.2rem;
}

.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin: 0 0 1.25rem;
}

.post-body li {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-body blockquote {
    border-left: 3px solid var(--primary);
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1.25rem;
    color: var(--muted);
    font-style: italic;
}

/* --- List / taxonomy pages -------------------------------- */
.list-page {
    padding: 3rem 1.5rem 4rem;
}

.list-page h1 {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem;
    color: var(--text);
}

.list-description {
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 1rem;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    color: var(--muted);
    font-size: 0.875rem;
}

.site-footer p {
    margin: 0;
}
