/* ============ Base — editorial / brutalist ============ */
:root {
  --paper: #f5f4ef;
  --ink: #111110;
  --muted: #6f6d64;
  --line: #d8d6cc;
  --line-strong: #111110;
  --accent: #0000ee;
  --pad: clamp(20px, 4vw, 56px);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; }

.muted { color: var(--muted); }

/* Small uppercase mono label — the signature element */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); height: 58px;
}

.brand {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--accent); }

.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink);
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ============ Hero ============ */
.hero { padding: clamp(56px, 9vw, 120px) var(--pad) clamp(48px, 7vw, 96px); }

.hero-name {
  font-size: clamp(4rem, 16vw, 12.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 20px 0 36px;
}

.hero-statement {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 300;
  max-width: 34ch;
  line-height: 1.35;
}
.hero-statement em { font-style: normal; color: var(--accent); }

.hero-links { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px); margin-top: 44px; }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.link-arrow::after { content: " ↗"; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ============ Stat strip ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat {
  padding: 28px var(--pad);
  border-right: 1px solid var(--line-strong);
}
.stat:last-child { border-right: none; }

.stat-value {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  white-space: nowrap;
}

.stat-desc {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); line-height: 1.6;
}

/* ============ Sections ============ */
.section {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: var(--pad);
  padding: clamp(56px, 8vw, 110px) var(--pad);
  border-bottom: 1px solid var(--line-strong);
}

.section-head .label { position: sticky; top: 90px; display: block; }

.big-statement {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 26ch;
  margin-bottom: 40px;
}

.about-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 900px;
}
.about-cols p { color: var(--muted); font-size: 1rem; }

.tag-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin-top: 40px;
}
.tag-row li {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
}

/* ============ Experience ============ */
.xp-list { list-style: none; }

.xp-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.xp-row:first-child { border-top: none; padding-top: 0; }

.xp-years {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 5px;
  white-space: nowrap;
}

.xp-detail h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; }
.xp-co { color: var(--muted); font-weight: 300; }
.xp-detail p { color: var(--muted); font-size: 0.97rem; max-width: 68ch; }

/* ============ Work ============ */
.work-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.work-item:first-child { border-top: none; padding-top: 0; }

.work-index {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 6px;
}

.work-detail h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 12px;
}
.work-detail p { color: var(--muted); max-width: 68ch; }

.work-meta {
  font-family: var(--font-mono);
  font-size: 11px !important; text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 14px;
  color: var(--ink) !important;
}

/* ============ Credentials ============ */
.cred-list { list-style: none; }

.cred-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.cred-row:first-child { border-top: none; padding-top: 0; }

.cred-kind {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); padding-top: 6px;
}

.cred-row h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 6px; }
.cred-row p { color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

/* ============ Contact ============ */
.contact {
  padding: clamp(70px, 10vw, 140px) var(--pad);
  border-bottom: 1px solid var(--line-strong);
}

.contact-headline { margin: 22px 0 26px; }
.contact-headline a {
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.contact-headline a:hover { color: var(--accent); text-decoration: none; }

.contact-sub { font-size: 1.1rem; color: var(--muted); }

/* ============ Footer ============ */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px var(--pad);
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line-strong); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }

  .section { grid-template-columns: 1fr; gap: 28px; }
  .section-head .label { position: static; }
  .about-cols { grid-template-columns: 1fr; }
}

/* ============ Blog index ============ */
.blog-index { padding: clamp(56px, 8vw, 110px) var(--pad); }

.blog-headline {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 20px 0 20px;
}

.blog-sub { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin-bottom: 56px; }

.post-list { list-style: none; }

.post-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.post-row:first-child { border-top: 1px solid var(--line-strong); }

.post-row-date {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 6px;
  white-space: nowrap;
}

.post-row-detail h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; margin-bottom: 8px; }
.post-row-detail h2 a { color: var(--ink); }
.post-row-detail h2 a:hover { color: var(--accent); text-decoration: none; }
.post-row-detail p { color: var(--muted); font-size: 0.97rem; max-width: 62ch; }

/* ============ Blog post ============ */
.post {
  max-width: 720px;
  padding: clamp(56px, 8vw, 110px) var(--pad) clamp(48px, 6vw, 80px);
  margin: 0 auto;
}

.post-header .label a { color: var(--muted); }
.post-header .label a:hover { color: var(--accent); text-decoration: none; }

.post-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 18px 0 14px;
}

.post-lede { font-size: 1.2rem; font-weight: 300; color: var(--muted); margin-bottom: 8px; }

.post-body { margin-top: 40px; font-size: 1.05rem; }
.post-body p { margin-bottom: 20px; }
.post-body h2 {
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em;
  margin: 44px 0 16px;
}
.post-body h3 { font-size: 1.2rem; font-weight: 500; margin: 32px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 20px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { font-weight: 500; }
.post-body blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 20px; margin: 0 0 20px;
  color: var(--muted);
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #ebe9e1;
  padding: 2px 6px;
}
.post-body pre {
  background: var(--ink); color: var(--paper);
  padding: 20px; overflow-x: auto; margin: 0 0 20px;
  font-size: 0.88rem; line-height: 1.55;
}
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body img { max-width: 100%; height: auto; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.post-footer {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .xp-row, .work-item, .cred-row { grid-template-columns: 1fr; gap: 8px; }
  .stat-value { white-space: normal; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
}
