/* Sessiondigger — minimal & clean */
:root {
    --text: #111;
    --muted: #6b6b6b;
    --line: #e8e8e8;
    --bg: #fff;
    --soft: #f5f5f5;
    --accent: #111;
    --max: 1200px;
    --narrow: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

a { color: inherit; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 32px; padding-top: 20px; padding-bottom: 20px;
}
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a.active { color: var(--text); }

main { padding-top: 48px; padding-bottom: 72px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0; }

/* Archive */
.archive-header { margin-bottom: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 32px; }
.post-card a { text-decoration: none; display: block; }
.post-card img, .post-card .placeholder { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--soft); }
.post-card time { display: block; margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
.post-card h2 { font-size: 1.3rem; margin: 6px 0 8px; }
.post-card a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pagination { display: flex; justify-content: center; gap: 24px; margin-top: 64px; color: var(--muted); }
.pagination a { font-weight: 500; text-decoration: none; color: var(--text); }

/* Post */
.post-header { margin-bottom: 32px; }
.post-meta { display: flex; gap: 12px; color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.post-meta a { font-weight: 600; text-decoration: none; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.cover { margin: 0 0 40px; }
.cover img { width: 100%; }

.content h2 { font-size: 1.6rem; margin: 2em 0 0.6em; }
.content h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.content p { margin: 0 0 1.2em; }
.content a { text-underline-offset: 3px; }
.content figure { margin: 2em 0; }
.content figure img { width: 100%; }
.content figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.content blockquote { margin: 2em 0; padding-left: 20px; border-left: 3px solid var(--text); font-size: 1.15rem; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.content table { border-collapse: collapse; width: 100%; margin: 2em 0; font-size: 0.95rem; }
.content td { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.content details { border-top: 1px solid var(--line); padding: 12px 0; }
.content summary { cursor: pointer; font-weight: 600; }
.content pre { background: var(--soft); padding: 16px; overflow-x: auto; }

.embed { margin: 2em 0; }
.embed iframe { width: 100%; border: 0; }
.embed.video { position: relative; aspect-ratio: 16 / 9; }
.embed.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 2em 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.card { display: block; text-decoration: none; }
.button { display: inline-block; padding: 10px 20px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 40px 0 24px; font-size: 0.9rem; }
.tags a { color: var(--muted); text-decoration: none; }
.tags a:hover { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; }
.site-footer p { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
