:root {
    --bg: #f6f4ef;
    --bg-surface: #fdfcf9;
    --bg-card: #fdfcf9;
    --bg-muted: #ebe7df;
    --border: #ddd7cc;
    --text-1: #161513;
    --text-2: #44403c;
    --text-3: #78716c;
    --accent: #1b4332;
    --accent-hover: #2d6a4f;
    --brass: #9a5b25;
    --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Reading Progress Bar */
.read-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: var(--accent);
    z-index: 1001;
    transition: width 0.08s linear;
}

/* Editorial Masthead */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(246, 244, 239, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.025em;
    color: var(--text-1);
}

.brand-dot {
    color: var(--brass);
    font-size: 28px;
    line-height: 1;
}

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0.01em; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--text-1); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 64px; left: 0; right: 0;
        background: var(--bg-surface); flex-direction: column;
        padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border); display: none;
    }
    .nav-links.open { display: flex; }
}

/* Sub-masthead topic bar */
.topic-strip {
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    overflow-x: auto;
}
.topic-strip-inner {
    display: flex;
    gap: 24px;
    padding: 10px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
}
.topic-strip-inner a:hover { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
    transition: all 0.15s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text-1); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text-1); }

/* Editorial Featured Split */
.featured-split {
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--border);
}

.split-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 44px;
    align-items: start;
}

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

.lead-story .img-frame {
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.lead-story img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.lead-story:hover img { transform: scale(1.02); }

.kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brass);
    margin-bottom: 8px;
}

.lead-story h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(29px, 3.6vw, 43px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-1);
}
.lead-story:hover h1 { color: var(--accent); }

.lead-story p {
    font-size: 16.5px;
    color: var(--text-2);
    margin-bottom: 20px;
}

.latest-rail {
    border-left: 1px solid var(--border);
    padding-left: 34px;
}

@media (max-width: 900px) {
    .latest-rail { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
}

.rail-heading {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-3);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.rail-item {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.rail-item:last-child { border-bottom: none; }
.rail-item h3 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-1);
    margin: 4px 0 6px;
}
.rail-item:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rail-item p { font-size: 13.5px; color: var(--text-3); }

/* Sections & Grids */
.section { padding: 52px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-1);
}
.section-sub { color: var(--text-3); font-size: 14.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 30px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.card:hover { border-color: var(--text-1); }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-muted); display: block; transition: transform 0.3s ease; }
.card:hover .card-img { transform: scale(1.02); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { font-size: 11.5px; color: var(--brass); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.07em; }
.card-title { font-family: 'Newsreader', Georgia, serif; font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--text-1); }
.card:hover .card-title { color: var(--accent); }
.card-excerpt { font-size: 14.5px; color: var(--text-2); margin-bottom: 16px; flex-grow: 1; }
.card-link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.card-link:hover { text-decoration: underline; }

/* Shop the Setup / Gear Cards */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 16px;
    margin: 24px 0 34px;
}

.gear-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s;
}
.gear-card:hover { border-color: var(--accent); }

.gear-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--bg-muted);
    color: var(--brass);
}

.gear-card h4 { font-size: 16px; font-weight: 700; color: var(--text-1); margin: 2px 0 0; }
.gear-card p { font-size: 13.5px; color: var(--text-3); margin: 0; line-height: 1.5; flex-grow: 1; }

.gear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 5px;
    background: var(--accent);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 8px;
    transition: background 0.15s;
}
.gear-btn:hover { background: var(--accent-hover); }

/* Callout */
.callout-warn {
    background: #f5efe6;
    border-left: 3px solid var(--brass);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-size: 15px;
    color: var(--text-2);
}
.callout-warn strong { color: var(--text-1); }

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
    padding: 7px 14px; border-radius: 4px; border: 1px solid var(--border);
    background: var(--bg-surface); color: var(--text-2); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-surface); padding: 52px 0 28px; margin-top: 52px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; margin-bottom: 36px; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 10px; }
.footer-links h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 14px; }
.footer-links a { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-3); }
