

/* ─── reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ─── tokens ─────────────────────────────── */
:root {
    --ink:        #0a0a0a;
    --ink-2:      #3a3a3a;
    --ink-3:      #767676;
    --rule:       #e8e8e8;
    --bg:         #fafaf8;
    --bg-tag:     #f0f0ed;
    --accent:     #0a0a0a;
    --serif:      'DM Serif Display', Georgia, serif;
    --sans:       'Inter Tight', system-ui, sans-serif;
    --max:        1192px;
    --col:        680px;
}

/* ─── base ───────────────────────────────── */
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ─── layout helpers ─────────────────────── */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

.col {
    max-width: var(--col);
}

hr.rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 0;
}


/* ════════════════════════════════════════════
    HEADER
════════════════════════════════════════════ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 24px;
}

/* Logo */
.logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: -.01em;
    color: var(--ink);
    flex-shrink: 0;
}

.logo em {
    font-style: italic;
    opacity: .55;
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

nav a {
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink-3);
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: .01em;
    transition: color .18s;
}

nav a:hover { color: var(--ink); }

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-ghost {
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .18s;
}
.btn-ghost:hover { color: var(--ink); }

.btn-pill {
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--ink);
    border: none;
    border-radius: 100px;
    padding: 9px 20px;
    cursor: pointer;
    letter-spacing: .01em;
    transition: opacity .18s;
}
.btn-pill:hover { opacity: .78; }

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: all .2s;
}


/* ════════════════════════════════════════════
    HERO
════════════════════════════════════════════ */
.hero {
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--rule);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: end;
}

.hero-kicker {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 22px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
    max-width: 640px;
}

.hero-headline em {
    font-style: italic;
    opacity: .6;
}

.hero-body {
    margin-top: 28px;
    font-size: 1.05rem;
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.hero-cta a.link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-3);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: color .18s, border-color .18s;
}
.hero-cta a.link:hover {
    color: var(--ink);
    border-color: var(--ink);
}

/* Hero aside — featured pick */
.hero-aside {
    padding-bottom: 4px;
}

.aside-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}

.aside-post { display: block; }

.aside-post-tag {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.aside-post-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
    transition: opacity .18s;
}
.aside-post:hover .aside-post-title { opacity: .6; }

.aside-post-excerpt {
    margin-top: 10px;
    font-size: .875rem;
    color: var(--ink-3);
    line-height: 1.6;
}

.aside-post-meta {
    margin-top: 14px;
    font-size: .75rem;
    color: var(--ink-3);
    display: flex;
    gap: 10px;
    align-items: center;
}

.aside-post-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ink-3);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════
    TOPICS BAR
════════════════════════════════════════════ */
.topics {
    border-bottom: 1px solid var(--rule);
    padding: 18px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.topics::-webkit-scrollbar { display: none; }

.topics-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.topic-btn {
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--bg-tag);
    border: none;
    border-radius: 100px;
    padding: 7px 16px;
    cursor: pointer;
    transition: background .18s, color .18s;
    letter-spacing: .01em;
}
.topic-btn:hover,
.topic-btn.active {
    background: var(--ink);
    color: var(--bg);
}


/* ════════════════════════════════════════════
    MAIN CONTENT — two columns
════════════════════════════════════════════ */
.main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
    align-items: start;
}

/* Feed */
.feed {
    padding: 0;
    border-right: 1px solid var(--rule);
    padding-right: 56px;
}


/* ─── Article card ───────────────────────── */
.article {
    padding: 32px 0;
    border-bottom: 1px solid var(--rule);
    display: block;
    transition: opacity .18s;
}
.article:last-child { border-bottom: none; }

.article-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    color: var(--bg);
    font-weight: 600;
    flex-shrink: 0;
}

.author-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
}

.article-body {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 28px;
    align-items: start;
}

.article-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: var(--ink);
    margin-bottom: 8px;
    transition: opacity .18s;
}
.article:hover .article-title { opacity: .6; }

.article-excerpt {
    font-size: .9rem;
    color: var(--ink-3);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-thumb {
    width: 112px;
    height: 76px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    overflow: hidden;
}

/* emoji thumbnails */
.thumb-bg-1 { background: #f0ece4; }
.thumb-bg-2 { background: #e8edf5; }
.thumb-bg-3 { background: #ede8f0; }
.thumb-bg-4 { background: #e4f0e8; }
.thumb-bg-5 { background: #f5e8e4; }

.article-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.article-tag {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--bg-tag);
    padding: 3px 10px;
    border-radius: 100px;
}

.article-meta {
    font-size: .78rem;
    color: var(--ink-3);
}

.article-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    font-size: .78rem;
    color: var(--ink-3);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-family: var(--sans);
    transition: color .18s;
}
.action-btn:hover { color: var(--ink); }


/* ════════════════════════════════════════════
    SIDEBAR
════════════════════════════════════════════ */
.sidebar {
    padding: 32px 0 32px 48px;
    position: sticky;
    top: 80px;
}

.sidebar-section {
    margin-bottom: 44px;
}

.sidebar-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 20px;
}

/* Staff picks */
.pick {
    display: block;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
}
.pick:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.pick-author {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.pick-title {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -.01em;
    transition: opacity .18s;
}
.pick:hover .pick-title { opacity: .55; }

.pick-meta {
    margin-top: 6px;
    font-size: .73rem;
    color: var(--ink-3);
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-tag {
    font-size: .78rem;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--bg-tag);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.cloud-tag:hover {
    background: var(--ink);
    color: var(--bg);
}

/* Newsletter mini */
.sidebar-newsletter {
    background: var(--ink);
    color: var(--bg);
    border-radius: 10px;
    padding: 28px 24px;
}

.sidebar-newsletter h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.sidebar-newsletter p {
    font-size: .82rem;
    opacity: .65;
    line-height: 1.6;
    margin-bottom: 18px;
}

.nl-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: var(--sans);
    font-size: .83rem;
    outline: none;
    margin-bottom: 10px;
    transition: border-color .18s;
}
.nl-input::placeholder { color: rgba(255,255,255,.35); }
.nl-input:focus { border-color: rgba(255,255,255,.5); }

.nl-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    color: #fff;
    font-family: var(--sans);
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.nl-btn:hover { background: rgba(255,255,255,.1); }


/* ════════════════════════════════════════════
    FOOTER
════════════════════════════════════════════ */
footer {
    border-top: 1px solid var(--rule);
    padding: 28px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: -.01em;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: .78rem;
    color: var(--ink-3);
    transition: color .18s;
}
.footer-links a:hover { color: var(--ink); }

.footer-copy {
    font-size: .75rem;
    color: var(--ink-3);
}


/* ════════════════════════════════════════════
    BACK TO TOP
════════════════════════════════════════════ */
#back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    border: none;
    color: var(--bg);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .22s, transform .22s;
    z-index: 200;
}
#back-top.on {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
#back-top:hover { opacity: .7; }


/* ════════════════════════════════════════════
    RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-aside { border-top: 1px solid var(--rule); padding-top: 40px; }
    .main { grid-template-columns: 1fr; padding: 0 20px; }
    .feed { border-right: none; padding-right: 0; }
    .sidebar {
    position: static;
    padding: 0 0 40px 0;
    border-top: 1px solid var(--rule);
    }
    nav { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 560px) {
    .hero { padding: 56px 0 48px; }
    .article-body { grid-template-columns: 1fr; }
    .article-thumb { width: 100%; height: 140px; font-size: 2.5rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}