:root {
  color-scheme: dark;
  --background: #0d1519;
  --panel: #142025;
  --line: #2d4148;
  --text: #f0f5f2;
  --muted: #b4c5c4;
  --accent: #a6edcd;
  --mono: Consolas, "Liberation Mono", monospace;
  font-family: Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 17% 18%, #1b3337 0%, transparent 38rem), var(--background);
  color: var(--text);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--background); }
h1, h2, p, dl, dd { margin: 0; }
.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #0d1519; }
.nav, .brand, .links, .actions, .footer {
  display: flex;
  align-items: center;
}
.nav { justify-content: space-between; gap: 16px; min-height: 76px; padding-block: 12px; }
.brand { gap: 10px; font-weight: 700; }
.monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #42665d;
  border-radius: 9px;
  background: #203934;
  color: var(--accent);
  font: 700 1rem var(--mono);
}
.links { gap: 28px; color: var(--muted); }
.links a:hover, .footer a:hover { color: var(--accent); }
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding-block: clamp(68px, 11vw, 142px);
}
.eyebrow { color: var(--accent); font-size: .94rem; font-weight: 700; }
.eyebrow span { margin-inline: 6px; color: var(--muted); }
h1 { margin-block: 12px 20px; font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1.13; }
h1 span { color: var(--accent); }
.intro { color: var(--muted); line-height: 2; }
.actions { flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary, .outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 7px 17px;
  font-size: .94rem;
  font-weight: 700;
}
.primary { background: var(--accent); color: #0d241c; }
.primary:hover { background: #cdf8e4; }
.outline { border: 1px solid #4c666c; }
.outline:hover { background: #22343a; }
.terminal {
  min-width: 0;
  margin: 0;
  border: 1px solid #3b565c;
  border-radius: 14px;
  overflow: hidden;
  background: #101c20;
  box-shadow: 0 24px 60px #03080975;
  font: .95rem/1.6 var(--mono);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: #1b2b31; }
.term-bar i { width: 8px; height: 8px; border-radius: 100%; background: #809696; }
.term-bar i:first-child { background: #ab786c; }
.term-bar i:nth-child(2) { background: #a99770; }
.term-bar span { margin-inline-start: 8px; color: var(--muted); font-size: .85rem; }
.terminal dl { padding: clamp(18px, 3vw, 32px); overflow-wrap: anywhere; }
.terminal dt { color: var(--accent); }
.terminal dd { margin-bottom: 16px; }
.terminal dd:last-child { margin-bottom: 0; }
.cursor { display: inline-block; width: 7px; height: 13px; margin-inline-start: 8px; background: var(--accent); }
.section { border-top: 1px solid var(--line); padding-block: clamp(32px, 6vw, 68px); }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.25; }
.skill-list { list-style: none; margin: 22px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.skill-list li { display: grid; grid-template-columns: minmax(170px, 1fr) 2.4fr; gap: 14px; padding: 14px 22px; color: var(--muted); }
.skill-list li + li { border-top: 1px solid var(--line); }
.skill-name { font-weight: 700; color: var(--text); }
.project, .contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.project h2 { text-align: right; margin-block: 7px 12px; font-family: var(--mono); }
.project p:not(.eyebrow) { max-width: 50ch; color: var(--muted); }
.events { margin: 0; padding: 14px 36px 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.events li::marker { color: var(--accent); }
.email { display: inline-block; margin-top: 9px; color: var(--accent); font: 1rem var(--mono); text-decoration: underline; text-underline-offset: 4px; }
.footer { justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 550px) {
  .frame { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; }
  .links { order: 1; flex-basis: 100%; gap: 22px; }
  .links a { display: inline-flex; align-items: center; min-height: 44px; }
  .intro br { display: none; }
  .skill-list li { grid-template-columns: 1fr; gap: 2px; padding-inline: 16px; }
  .project, .contact { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.card-grid, .education-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.education-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.detail-card {
  padding: clamp(18px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.detail-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.detail-card p, .course-list, .languages { color: var(--muted); }
.course-list { margin: 0; padding-inline-start: 1.25rem; }
.course-list li + li { margin-top: 5px; }
.course-list li::marker { color: var(--accent); }
.languages { margin-top: 8px; }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .links { order: 1; flex-basis: 100%; flex-wrap: wrap; gap: 4px 20px; }
  .links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 620px) {
  .card-grid, .education-grid { grid-template-columns: 1fr; }
}
