/* ============================================================
   nayangoenka.me — design system
   All–IBM Plex superfamily. Monochrome, editorial-engineering.
   Serif = display · Sans = body/UI · Mono = metadata/labels
   ============================================================ */

:root {
  --paper:   #f3f2ef;
  --surface: #fbfaf8;
  --ink:     #1b1a18;
  --muted:   #6c6a64;
  --faint:   #9b988f;
  --rule:    #e0ddd6;
  --rule-strong: #cbc7bd;

  --accent:        #3a4256;
  --accent-strong: #272d3c;

  --measure: 40rem;
  --shell:   68rem;

  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- shared shell ---------- */
.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 40px; }

/* ---------- eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--muted); }
.nav { display: flex; gap: 28px; list-style: none; }
.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease;
}
.nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 132px 0 96px; }
.hero .eyebrow { margin-bottom: 28px; color: var(--accent); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero .lede {
  max-width: 34rem;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 40px;
}
.hero .lede strong { color: var(--ink); font-weight: 500; }

/* ---------- text links / actions ---------- */
.actions { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.tlink {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--ink);
  transition: opacity .18s ease, border-color .18s ease;
}
.tlink:hover { opacity: .55; }
.tlink.ghost { color: var(--muted); border-bottom-color: var(--rule-strong); }
.tlink.ghost:hover { color: var(--accent); border-bottom-color: var(--accent); opacity: 1; }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* ---------- work: metadata rows ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.row:first-child { border-top: none; }
.row .meta .role-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.row .meta .tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  line-height: 1.5;
}
.row .body p { color: var(--muted); font-size: 16.5px; }
.row .body p strong { color: var(--ink); font-weight: 500; }

/* ---------- expertise / principles: labeled list ---------- */
.deflist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
.def .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}
.def h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.def p { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ---------- writing list ---------- */
.posts { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background .18s ease;
}
.post-row:first-child { border-top: none; }
.post-row .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 5px;
}
.post-row h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
  transition: opacity .18s ease;
}
.post-row p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.post-row:hover h3 { color: var(--accent); }

.more {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.more a { color: var(--accent); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.more a:hover { opacity: .55; }

/* ---------- contact ---------- */
.contact { padding: 96px 0; border-top: 1px solid var(--rule); }
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 28rem;
}
.contact p { color: var(--muted); max-width: 34rem; margin-bottom: 36px; font-size: 17px; }
.contact .actions a { font-size: 13px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.site-footer p, .site-footer a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; gap: 24px; }

/* ============================================================
   ARTICLE (blog post)
   ============================================================ */
.article-head { padding: 116px 0 0; }
.article-head .wrap { max-width: var(--measure); }
.article-head .eyebrow { margin-bottom: 22px; }
.article-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.article-body { padding: 56px 0 96px; }
.article-body .wrap { max-width: var(--measure); }
.article-body .lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 36px;
}
.article-body p { margin-bottom: 24px; font-size: 18px; line-height: 1.78; color: #2c2b28; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
}
.article-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  margin: 36px 0 12px;
}
.article-body blockquote {
  margin: 36px 0;
  padding-left: 26px;
  border-left: 2px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { opacity: .6; }
.back-link {
  display: inline-block;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.back-link:hover { opacity: .55; }

/* ---------- blog index header ---------- */
.page-head { padding: 116px 0 64px; border-bottom: 1px solid var(--rule); }
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.page-head p { color: var(--muted); max-width: 34rem; font-size: 18px; }

/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .wrap { padding: 0 24px; }
  .nav { display: none; }
  .hero { padding: 88px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .deflist { grid-template-columns: 1fr; gap: 36px; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row .kicker { padding-top: 0; }
  .article-head { padding: 84px 0 0; }
  .article-body { padding: 40px 0 72px; }
  .page-head { padding: 84px 0 48px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 52px; }
  .article-body p { font-size: 17px; }
}

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

/* ============================================================
   CV PAGE
   ============================================================ */
.cv-wrap { max-width: 46rem; }
.page-head .actions { margin-top: 28px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 2px;
  transition: background .18s ease;
}
.btn-download:hover { background: var(--accent-strong); }

.cv-section { padding: 64px 0; border-top: 1px solid var(--rule); }
.cv-section > .wrap { max-width: 46rem; }
.cv-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.015em;
  margin-bottom: 36px;
}

.cv-role { padding: 30px 0; border-top: 1px solid var(--rule); }
.cv-role:first-of-type { border-top: none; padding-top: 0; }
.cv-role .cv-role-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.cv-role .cv-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  line-height: 1.6;
}
.cv-role .cv-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 14px;
}
.cv-role ul { list-style: none; }
.cv-role li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: #2c2b28;
}
.cv-role li::before {
  content: "";
  position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.cv-role li strong { font-weight: 600; color: var(--ink); }
.cv-role p.cv-line { font-size: 16px; line-height: 1.65; color: #2c2b28; }

/* architecture stance — label/value rows */
.stance { display: flex; flex-direction: column; }
.stance-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.stance-row:first-child { border-top: none; }
.stance-row .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 2px;
}
.stance-row .v { font-size: 16px; line-height: 1.6; color: #2c2b28; }

.skills-line { font-size: 16.5px; line-height: 1.9; color: #2c2b28; }
.edu-line { font-size: 16.5px; line-height: 1.7; color: #2c2b28; }
.edu-line strong { font-weight: 600; color: var(--ink); }
.edu-line .sub { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }

@media (max-width: 820px) {
  .stance-row { grid-template-columns: 1fr; gap: 4px; }
  .cv-section { padding: 48px 0; }
}
