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

:root {
  --bg: #f7f5f2;
  --ink: #1a1714;
  --muted: #8a8279;
  --accent: #c0392b;
  --line: #dedad4;
  --card: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Layout ── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

/* ── Hero ── */
#hero {
  padding: 148px 0 96px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.6s ease forwards 0.1s;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards 0.2s;
}

h1 em {
  font-style: italic;
  color: var(--muted);
}

.hero-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards 0.35s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards 0.48s;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ── Stack strip ── */
.stack-strip {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.stack-strip .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stack-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.tag {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: var(--card);
  letter-spacing: 0.04em;
}

.tag.accent { border-color: var(--accent); color: var(--accent); }

/* ── Sections shared ── */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.section-num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--ink); font-weight: 500; }

.interests-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.interests-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.interests-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.interest-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.interest-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  gap: 16px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.app-card:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.app-card-left { flex: 1; }

.app-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.app-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.app-card-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.app-card-arrow {
  font-size: 20px;
  color: var(--line);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.app-card:hover .app-card-arrow {
  color: var(--ink);
  transform: translateX(4px);
}

.coming-soon {
  opacity: 0.45;
  pointer-events: none;
}

.coming-soon .app-card-arrow { display: none; }

/* ── Footer ── */
footer {
  padding: 40px 0 60px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: var(--ink);
}

.footer-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Animation ── */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .about-grid { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; gap: 8px; text-align: center; }
  .nav-links { gap: 16px; }
}

/* ── Blog shared ── */
.blog-main {
  padding-top: 80px;
  min-height: calc(100vh - 52px);
}

.blog-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.eyebrow-static {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.blog-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 7vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
  opacity: 1;
  transform: none;
  animation: none;
}

.blog-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Post list ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 80px;
}

.post-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s;
}

.post-card:first-child { border-top: 1px solid var(--line); }

.post-card:hover { padding-left: 8px; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.post-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-family: 'DM Mono', monospace;
}

.post-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.post-card:hover .post-card-title { color: var(--accent); }

.post-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.no-posts {
  color: var(--muted);
  font-size: 13px;
  padding: 40px 0;
}

/* ── Individual post ── */
.post-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.back-link {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--ink); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 1;
  transform: none;
  animation: none;
}

.post-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
}

/* ── Prose (article body) ── */
.prose {
  margin-bottom: 80px;
  max-width: 640px;
}

.prose p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.prose h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 16px;
  opacity: 1;
  transform: none;
  animation: none;
}

.prose h3 {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 32px 0 12px;
}

.prose h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin: 24px 0 8px;
}

.prose strong { color: var(--ink); font-weight: 500; }

.prose em { font-style: italic; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose a:hover { color: var(--accent); }

.prose ul,
.prose ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.prose li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 6px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 20px;
  margin: 28px 0;
}

.prose blockquote p {
  color: var(--ink);
  font-style: italic;
  margin-bottom: 0;
}

.prose code {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--accent);
}

.prose pre {
  background: var(--ink);
  border-radius: 4px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--bg);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ── Blog responsive ── */
@media (max-width: 580px) {
  .blog-header { padding: 48px 0 36px; }
  .post-card   { padding: 22px 0; }
  .prose pre   { padding: 16px; border-radius: 0; margin-left: -28px; margin-right: -28px; }
}
