:root {
  --bg: #f2f1ed;
  --surface: #ebeae5;
  --surface-strong: #e6e5e0;
  --surface-soft: #f7f7f4;
  --text: #26251e;
  --text-muted: rgba(38, 37, 30, 0.68);
  --text-soft: rgba(38, 37, 30, 0.55);
  --accent: #f54e00;
  --accent-hover: #cf2d56;
  --border: rgba(38, 37, 30, 0.1);
  --border-strong: rgba(38, 37, 30, 0.2);
  --shadow: rgba(0, 0, 0, 0.14) 0 28px 70px, rgba(0, 0, 0, 0.1) 0 14px 32px;
  --container: 1120px;
  --radius: 8px;
  --radius-pill: 9999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow { max-width: 820px; }
.section { padding: 5rem 0; }
.section-muted { background: linear-gradient(180deg, rgba(235, 234, 229, 0.75), rgba(242, 241, 237, 0.95)); }
.section-accent { padding-bottom: 6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(242, 241, 237, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner,
.section-heading-row,
.split-panel,
.contact-panel,
.hero-grid {
  display: flex;
  gap: 2rem;
}

.header-inner,
.footer-inner {
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.6rem;
  background: var(--surface-soft);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-nav a,
.header-cta,
.mono-label,
.section-note {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.78rem;
}

.site-nav a { color: var(--text-soft); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.button-primary { background: var(--surface); }
.button-secondary,
.button-ghost { background: transparent; }

.hero { padding-top: 6rem; }
.hero-grid { align-items: start; }
.hero-copy,
.profile-card { flex: 1; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 8vw, 5.1rem);
  line-height: 0.95;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-lead,
.summary-copy,
.contact-copy p,
.education-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-lead {
  max-width: 32rem;
  margin: 1.4rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.profile-card,
.timeline-card,
.education-card,
.contact-link {
  border: 1px solid var(--border);
  background: rgba(230, 229, 224, 0.72);
  border-radius: 1rem;
}

.profile-card {
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.profile-card-top,
.timeline-meta,
.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.status-pill,
.skill-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text-muted);
}

.profile-points {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.point-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.profile-signal svg { width: 100%; height: auto; }
.profile-signal path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.summary-copy {
  max-width: 38rem;
  margin-top: 1.5rem;
}

.section-heading-row {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-note { color: var(--text-soft); }
.timeline { display: grid; gap: 1rem; }

.timeline-item {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-meta {
  flex-direction: column;
  justify-content: start;
  padding: 1rem 0;
  color: var(--text-soft);
}

.timeline-card {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), rgba(245, 78, 0, 0.12));
}

.timeline-company {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.skill-chip {
  min-height: 2.4rem;
  padding-inline: 1rem;
  background: var(--surface-strong);
}

.split-panel {
  align-items: start;
  justify-content: space-between;
}

.education-card {
  width: min(100%, 28rem);
  padding: 1.4rem;
}

.education-card h3 { margin-top: 0.35rem; }

.contact-panel {
  align-items: start;
  justify-content: space-between;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(230, 229, 224, 0.9), rgba(235, 234, 229, 0.8));
  box-shadow: var(--shadow);
}

.contact-copy { max-width: 28rem; }
.contact-copy h2 { max-width: none; }

.contact-actions {
  flex: 1;
  display: grid;
  gap: 0.9rem;
}

.contact-link {
  flex-direction: column;
  padding: 1rem 1.1rem;
  text-decoration: none;
}

.contact-link strong { font-size: 1.02rem; }
.contact-link-disabled { color: var(--text-soft); cursor: default; }

.site-footer {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: auto;
  padding-top: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .header-inner,
  .hero-grid,
  .section-heading-row,
  .split-panel,
  .contact-panel,
  .footer-inner {
    flex-direction: column;
  }

  .header-inner,
  .footer-inner { align-items: flex-start; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-meta { padding: 0; }
  .contact-panel { padding: 1.5rem; }
}

@media (max-width: 640px) {
  .section { padding: 3.75rem 0; }
  .hero { padding-top: 4.5rem; }
  .button,
  .contact-link { width: 100%; }
  .hero-actions { flex-direction: column; }
  .site-nav { gap: 0.75rem 1rem; }
  .brand-text { font-size: 0.95rem; }
}
