:root {
  --paper:   #f4f6f7;
  --paper-2: #eef1f3;
  --ink:     #15191e;
  --muted:   #555e67;
  --faint:   #939ca4;
  --rule:    #dde2e6;
  --copper:  #b3561f;
  --serif: "Fraunces", Georgia, serif;
  --sans:  "IBM Plex Sans", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}

.site-wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-links a {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-links a:hover,
.site-links a:focus-visible {
  color: var(--copper);
  outline: none;
}

/* ── Main ── */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 4.5rem 3rem 7rem;
}

/* ── Identity block ── */
.identity {
  margin-bottom: 3.5rem;
}

.id-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.5rem;
}

.id-hero {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 22ch;
}

.id-hero .key { position: relative; white-space: nowrap; }
.id-hero .key::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 2px;
  background: var(--copper);
}

.id-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}

.id-location {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--faint);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── Sections ── */
section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.4rem;
}

/* ── Prose ── */
.prose p {
  margin: 0 0 1.1rem;
  color: #2a2f36;
  max-width: 62ch;
}
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  transition: opacity 0.15s ease;
}
.prose a:hover { opacity: 0.7; }

/* ── Focus list ── */
.focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
}

.focus-list li {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.focus-list li::before {
  content: "";
  width: 5px; height: 5px;
  flex: 0 0 5px;
  background: var(--copper);
}

/* ── Current work card ── */
.work-card {
  background: var(--paper-2);
  border-left: 2px solid var(--copper);
  padding: 1.3rem 1.4rem;
}

.work-card .wc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.work-card .wc-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.work-card .wc-body {
  font-size: 0.95rem;
  color: #2a2f36;
  margin: 0 0 0.9rem;
}

.work-card a.wc-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.work-card a.wc-link:hover { border-color: var(--copper); }

/* ── Credentials ── */
.cred-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 2rem;
}

.cred-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.1rem;
}

.cred-val {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
}

.cred-val a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cred-val a:hover { color: var(--copper); }

/* ── Footer ── */
footer {
  margin-top: 6rem;
  padding: 2rem 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Animations ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.d1 { animation-delay: 0.04s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.22s; }
.d4 { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  * { transition: none !important; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .site-header { padding: 1rem 1.4rem; }
  .site-links { gap: 1rem; }
  .site-links a { font-size: 0.6rem; }
  main { padding: 3rem 1.4rem 5rem; }
  .focus-list { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .cred-label { margin-top: 0.8rem; }
}
