:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-tint: #F2ECE2;
  --ink: #201B16;
  --ink-soft: #6B6259;
  --line: #E4DCD0;
  --accent: #C4551F;
  --accent-ink: #FFFFFF;
  --shadow: rgba(32, 27, 22, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140F;
    --surface: #211D17;
    --surface-tint: #29241C;
    --ink: #F3EEE5;
    --ink-soft: #B3A99A;
    --line: #3A342A;
    --accent: #E17A44;
    --accent-ink: #17140F;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #17140F;
  --surface: #211D17;
  --surface-tint: #29241C;
  --ink: #F3EEE5;
  --ink-soft: #B3A99A;
  --line: #3A342A;
  --accent: #E17A44;
  --accent-ink: #17140F;
  --shadow: rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-tint: #F2ECE2;
  --ink: #201B16;
  --ink-soft: #6B6259;
  --line: #E4DCD0;
  --accent: #C4551F;
  --accent-ink: #FFFFFF;
  --shadow: rgba(32, 27, 22, 0.08);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  max-width: 640px;
}
.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Compact hero / main content */
.hero-compact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.compact-inner {
  text-align: center;
}
.lede {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--ink);
  margin: 0 0 40px;
}

.link-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 22px;
  scroll-margin-top: 24px;
}
.link-row:last-child { margin-bottom: 0; }
.link-row-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 84px;
  text-align: right;
}
.link-row-items {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
}
.dot {
  color: var(--line);
}

.project-bio {
  max-width: 520px;
  margin: -8px auto 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.project-shot {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 32px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px var(--shadow);
}

.project-shot-portrait {
  max-width: 280px;
}

.post-list {
  list-style: none;
  margin: 32px auto 48px;
  padding: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.post-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 8px var(--shadow);
}
.post-card-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.post-card-image {
  flex: none;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-tint);
}

.post-card-body {
  min-width: 0;
}
.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.post-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.icon-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
}
.site-footer .container {
  max-width: 640px;
}
.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .link-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .link-row-label {
    text-align: center;
    min-width: 0;
  }

  .post-card-link {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-card-image {
    width: 100%;
    height: 160px;
  }
}
