:root {
  color-scheme: dark;
  --bg: #2f3136;
  --bar: #26282d;
  --panel: #11141a;
  --panel-2: #171a21;
  --panel-3: #20242c;
  --line: #3c4048;
  --line-soft: #2a2e36;
  --text: #d9dde7;
  --muted: #929aa8;
  --dim: #69717d;
  --accent: #f4f5f7;
  --accent-2: #d9dde7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-actions a,
.project-links a,
.project-links span,
.contact-links a {
  display: inline-flex;
  align-items: center;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 34px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-title p,
.timeline-date,
.contact-strip span,
.profile-facts span {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: #f4f5f7;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin-bottom: 22px;
  color: #b9c0cc;
  font-size: 17px;
}

.hero-actions,
.project-links,
.contact-links {
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions a,
.project-links a,
.project-links span,
.contact-links a {
  min-height: 32px;
  padding: 0 11px;
  color: #f4f5f7;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.project-links span {
  color: var(--muted);
  border-style: dashed;
  cursor: default;
}

.hero-actions a:hover,
.project-links a:hover,
.contact-links a:hover {
  border-color: #6f7682;
  background: #26313d;
}

.profile-panel,
.timeline,
.contact-strip {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.profile-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 16px;
}

.photo-slot {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--dim);
  background: #0b0e14;
  border: 1px dashed #4a505a;
  border-radius: 8px;
}

.photo-slot svg {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}

.photo-slot span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.profile-facts {
  display: grid;
  gap: 12px;
}

.profile-facts div {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.profile-facts strong {
  display: block;
  color: #edf0f5;
  font-size: 14px;
  font-weight: 600;
}

.section-title h2,
.contact-strip h2 {
  margin-bottom: 8px;
  color: #f1f3f5;
  font-size: 20px;
  letter-spacing: 0;
}

.timeline p,
.timeline li {
  margin-bottom: 0;
  color: #aeb6c4;
}

.section-block {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.section-title {
  margin-bottom: 14px;
}

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

.skill-group {
  padding: 16px;
  background: var(--panel-3);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.skill-group h3 {
  margin-bottom: 10px;
  color: #f1f3f5;
  font-size: 16px;
}

.skill-group ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  color: #aeb6c4;
}

.skill-group li::marker {
  color: #f1f3f5;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 18px;
}

.timeline-wide .timeline-item {
  grid-template-columns: 1fr;
  gap: 4px;
}

.timeline-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.timeline-wide::before {
  display: none;
}

.timeline-wide .timeline-item {
  padding: 0 0 0 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 24px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0 0 22px 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  width: 9px;
  height: 9px;
  background: #f4f5f7;
  border: 2px solid var(--panel-2);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.timeline h3 {
  margin-bottom: 4px;
  color: #f1f3f5;
  font-size: 17px;
}

.timeline ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.timeline .project-links {
  margin-top: 12px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px;
}

.contact-strip h2 {
  margin-bottom: 0;
}

.contact-links {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 20px, 720px);
    padding: 24px;
  }

  .hero,
  .skills,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .timeline-wide .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-wide {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .photo-slot {
    min-height: 220px;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .page {
    width: 100%;
    padding: 20px;
    border: 0;
  }

  .profile-panel {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
