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

:root {
  --bg: #f7f6f3;
  --ink: #1a1a18;
  --muted: #888882;
  --accent: #2a2a26;
  --rule: #ddddd8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.site {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
header {
  padding: 44px 0 24px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s ease forwards;
}

.name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.title-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */
section {
  padding: 20px 0;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.5s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0.15s; }
section:nth-of-type(2) { animation-delay: 0.25s; }

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Contact */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.contact-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 64px;
  flex-shrink: 0;
}

.contact-value {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.contact-value:hover {
  color: var(--accent);
  border-color: var(--ink);
}

/* Experience */
.company-block {
  margin-bottom: 14px;
  padding-top: 10px;
}
.company-block:last-child { margin-bottom: 0; }

.company-name {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}

.role {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 14px;
  align-items: baseline;
  padding: 3px 0;
}

.role-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.role-period {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.role-location {
  font-size: 11px;
  color: var(--muted);
  grid-column: 1;
  line-height: 1.3;
}

/* Footer */
footer {
  padding: 20px 0 32px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  header { padding: 32px 0 20px; }
  .role { grid-template-columns: 1fr; }
  .role-period { text-align: left; }
}
