:root {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #0ea5e9;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.06);
}

html[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-elev: #111318;
  --text: #e5e7eb;
  --muted: #9aa2b2;
  --border: #1f232b;
  --accent: #60a5fa;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

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

.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(10px); background: color-mix(in oklab, var(--bg) 85%, transparent); border-bottom: 1px solid var(--border); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-weight: 700; letter-spacing: 0.2px; text-decoration: none; color: var(--text); }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 8px; }
.nav a.active, .nav a:hover { background: var(--bg-elev); box-shadow: var(--shadow); }
.theme-toggle { border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; box-shadow: var(--shadow); }
.theme-toggle .icon { display: inline-block; }

.hero { padding: 56px 0 24px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; letter-spacing: -0.3px; }
.tagline { color: var(--muted); margin: 0 0 22px; }


.section { padding: 18px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section h2 { font-size: 18px; margin: 0; }
.link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pill-list li { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev); box-shadow: var(--shadow); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.masonry { column-count: 2; column-gap: 14px; }
.masonry img { width: 100%; display: block; break-inside: avoid; margin: 0 0 14px; border-radius: 12px; }
@media (min-width: 640px) { .masonry { column-count: 3; } }
@media (min-width: 1000px) { .masonry { column-count: 4; } }

.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); }
.card h3 { margin: 2px 0 6px; font-size: 18px; }
.card p { margin: 0 0 12px; }
.card img.thumb { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--border); }
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.tag-row { display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tag-row li { font-size: 12px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: transparent; }
.card .links { display: flex; gap: 10px; align-items: center; }


.page-head { padding: 34px 0 16px; }
.page-head h1 { margin: 0 0 6px; letter-spacing: -0.2px; }
.muted { color: var(--muted); }

.site-footer { margin-top: 48px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.socials { display: flex; gap: 10px; }
.icon-link { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }



@media (max-width: 640px) {
  .nav a { padding: 6px 8px; }
  .container { padding: 18px; }
}
