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

:root {
  --bg: #F0F1F3;
  --bg-card: #FFFFFF;
  --bg-warm: #E4E5E8;
  --text: #111111;
  --muted: #555555;
  --hint: #888888;
  --border: #D8D9DC;
  --border-mid: #C0C1C4;
  --ink: #111111;
  --tag-bg: #E4E5E8;
  --tag: #444444;

  /* Dark zone tokens */
  --dark-bg: #111111;
  --dark-text: #F0F1F3;
  --dark-muted: #A0A4A8;
  --dark-hint: #666666;
  --dark-border: #2A2A2A;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 860px; margin: 0 auto; padding: 0 32px; }

/* ── NAV ── */
nav {
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: var(--dark-bg);
  z-index: 100;
  border-bottom: 1px solid var(--dark-border);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-mark {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--dark-text); }

/* ── HERO ── */
.hero-wrapper {
  background: var(--dark-bg);
}

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 72px;
  border-bottom: 1px solid var(--dark-border);
  position: relative;
}

.hero-top {
  position: absolute;
  top: 48px;
  right: 0;
  text-align: right;
}

.hero-top-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-hint);
  line-height: 2.2;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--dark-text);
}

.hero-sub {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: var(--dark-muted);
  margin-bottom: 32px;
  line-height: 1.3;
}

.hero-bio {
  font-size: 15px;
  font-weight: 400;
  color: var(--dark-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 36px;
}

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

.pill {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-bg);
  background: var(--dark-text);
  border-radius: 2px;
  padding: 9px 18px;
  transition: background 0.15s, color 0.15s;
}

.pill:hover { background: #D8D9DC; }

.pill.outline {
  background: transparent;
  border: 1px solid #444444;
  color: var(--dark-text);
}

.pill.outline:hover { border-color: var(--dark-muted); color: var(--dark-muted); }

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.divider-line { flex: 1; height: 0.5px; background: var(--border); }
.divider-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hint);
  white-space: nowrap;
}

/* ── WRITING ── */
.writing-section { padding: 80px 0; border-bottom: 0.5px solid var(--border); }

.writing-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.writing-intro-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.writing-intro-right { padding-top: 8px; }

.writing-intro-right p {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.text-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 0.5px solid var(--border-mid);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.text-link:hover { color: var(--text); border-color: var(--text); }

.featured-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.article-big {
  background: var(--bg-warm);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  transition: background 0.15s;
}
.article-big:hover { background: #DCDDE0; }

.article-sm {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s;
}
.article-sm:hover { border-color: var(--border-mid); }

.article-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.article-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--border-mid); }

.article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 10px;
  display: block;
}

.article-title-big {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.article-title-sm {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}

.article-title-xs {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 8px;
}

.article-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--hint);
  letter-spacing: 0.04em;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── WORK ── */
.work-section { padding: 80px 0; border-bottom: 0.5px solid var(--border); }

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 0;
}

.work-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}

.work-dates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--hint);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.work-company {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.work-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.work-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.work-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.work-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--tag);
  background: var(--tag-bg);
  border-radius: 2px;
  padding: 3px 10px;
}

/* ── CREDENTIALS ── */
.credentials-section { padding: 80px 0; border-bottom: 0.5px solid var(--border); }

.credentials-header { margin-bottom: 40px; padding-bottom: 12px; border-bottom: 2px solid var(--text); }

.credentials-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.credentials-header p {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.cert-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.cert-item {
  background: var(--bg-warm);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cert-badge {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  color: var(--bg);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.cert-name-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.cert-provider {
  font-size: 11px;
  color: var(--hint);
  margin-top: 2px;
}

.skills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.skills-group-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}

.skills-group ul { list-style: none; }
.skills-group li {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 2.1;
}

/* ── CONTACT ── */
.contact-section {
  background: var(--dark-bg);
  padding: 96px 0 80px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark-text);
  margin-bottom: 20px;
}

.contact-left h2 em { font-style: italic; font-weight: 700; color: var(--dark-text); }

.contact-left p {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-muted);
  line-height: 1.8;
}

.contact-right { padding-top: 8px; }

.contact-item {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--dark-border);
}

.contact-item:first-child { border-top: 0.5px solid var(--dark-border); }

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-hint);
  margin-bottom: 6px;
}

.contact-value {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-text);
  transition: color 0.15s;
}

.contact-value:hover { color: var(--dark-muted); }

/* ── FOOTER ── */
footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 28px 0;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-mark {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-muted);
}

.footer-right { display: flex; gap: 24px; }

.footer-right a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
  transition: color 0.15s;
}

.footer-right a:hover { color: var(--dark-text); }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 9px; }
  .nav-mark { font-size: 14px; }

  .hero { min-height: unset; padding: 40px 0 48px; }
  .hero-eyebrow { font-size: 9px; margin-bottom: 16px; }
  .hero-headline { font-size: 38px; margin-bottom: 6px; }
  .hero-sub { font-size: 17px; margin-bottom: 24px; }
  .hero-bio { font-size: 14px; margin-bottom: 28px; }
  .pill { font-size: 10px; padding: 8px 14px; }

  .writing-section { padding: 48px 0; }
  .writing-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .writing-intro-left h2 { font-size: 26px; }
  .writing-intro-right p { font-size: 13px; }

  .featured-row { grid-template-columns: 1fr; }
  .article-big { min-height: 160px; padding: 20px; }
  .article-title-big { font-size: 18px; }
  .article-sm { padding: 18px; }
  .article-row { grid-template-columns: 1fr; gap: 10px; }
  .article-card { padding: 16px; }

  .work-section { padding: 48px 0; }
  .work-header { margin-bottom: 0; }
  .work-header h2 { font-size: 26px; }
  .work-item { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .work-dates { font-size: 10px; }
  .work-title { font-size: 17px; }
  .work-desc { font-size: 13px; }

  .credentials-section { padding: 48px 0; }
  .credentials-header h2 { font-size: 26px; }
  .cert-row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
  .cert-item { padding: 14px 16px; }
  .skills-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .skills-group li { font-size: 12px; line-height: 2; }

  .contact-section { padding: 48px 0 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-left h2 { font-size: 30px; }
  .contact-left p { font-size: 13px; }
  .contact-value { font-size: 14px; }

  .footer-inner { padding: 0 20px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-right { gap: 16px; }
}

@media (max-width: 380px) {
  .hero-headline { font-size: 30px; }
  .nav-links { gap: 12px; }
  .skills-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
