/* minimal medium-style blog look */
/* type scale and layout */
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --panel: #f7fafc;
  --line: #e5e7eb;
  --accent: #111827;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --panel: #111317;
    --line: #1f232b;
    --accent: #e5e7eb
  }
}

[data-theme="dark"] {
  --bg: #0b0c0f;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --panel: #111317;
  --line: #1f232b;
  --accent: #e5e7eb
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px
}

.brand {
  font-weight: 700;
  letter-spacing: .4px;
  text-decoration: none;
  color: var(--text)
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center
}

.nav .tag,
.theme {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px
}

.nav .tag.active {
  background: var(--panel)
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line)
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel)
}

.hero-text h1 {
  font-family: Merriweather, Georgia, serif;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 6px
}

.hero-text p {
  color: var(--muted);
  margin: 0
}

.posts {
  display: grid;
  gap: 40px;
  padding: 32px 0
}

.post h2 {
  font-family: Merriweather, Georgia, serif;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px
}

.meta {
  color: var(--muted);
  margin: -4px 0 16px
}

.post img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel)
}

.post figure {
  margin: 16px 0
}

.post figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px
}

ul,
ol {
  padding-left: 20px
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px
}

.gallery-item {
  margin: 0
}

.site-footer {
  border-top: 1px solid var(--line)
}

.site-footer .wrap {
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center
}

/* intro card at top */
.intro {
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 18px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.intro h1 {
  font-family: Merriweather, Georgia, serif;
  margin: 0 0 6px;
  font-size: 28px
}

.intro p {
  margin: 0 0 10px;
  color: var(--muted)
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: inline-block
}

/* smaller hero image and centered */
.hero {
  padding-top: 20px
}

.hero img {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: block
}

/* optional: hover state for link-style chips */
a.chip:hover {
  background: var(--panel);
}