/* Shared colors used throughout the page */
:root {
  --background: #0b1220;
  --surface: #111c2e;
  --text: #edf2fa;
  --muted: #b0bdd0;
  --accent: #8ab4ff;
  --border: #2a3950;
}

/* Include padding and borders in an element's width */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* Keep the page centered and comfortable to read */
header,
main,
footer {
  width: min(1100px, 90%);
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header and navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

header > a {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
}

/* Introductory section */
#home {
  padding-block: 100px;
}

#home > p:first-child {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  margin-block: 20px 28px;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

#home > p {
  max-width: 640px;
  font-size: 19px;
}

#home > a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--background);
  font-size: 16px;
  font-weight: 600;
}

#home > a:hover {
  background: #b0cdff;
  text-decoration: none;
}

/* Remaining content */
section {
  padding-block: 56px;
  scroll-margin-top: 24px;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  max-width: 720px;
  color: var(--muted);
}

footer {
  padding-block: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* Adjust the layout for smaller screens */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  #home {
    padding-block: 64px;
  }

  section {
    padding-block: 40px;
  }
}

/* Respect visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Experience cards */
.experience-list {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.role {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.role-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.role h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.role .company {
  margin: 6px 0 0;
  color: var(--accent);
  font-weight: 600;
}

.role-date {
  flex-shrink: 0;
  margin: 4px 0 0;
  font-size: 14px;
}

.role ul {
  max-width: 720px;
  margin-bottom: 0;
  padding-left: 20px;
  color: var(--muted);
}

.role li + li {
  margin-top: 10px;
}

.role li::marker {
  color: var(--accent);
}

@media (max-width: 600px) {
  .role {
    padding: 24px;
  }

  .role-heading {
    flex-direction: column;
    gap: 8px;
  }
}

/* Career focus: two columns on wider screens */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.focus-card {
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}

.focus-card .focus-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-card h3 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.35;
}

.focus-card p:last-child {
  margin-bottom: 0;
}

/* Stack the columns on smaller screens */
@media (max-width: 700px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

/* Skills and credentials */
.skill-list {
  padding-left: 20px;
  color: var(--muted);
}

.skill-list li + li {
  margin-top: 10px;
}

.skill-list li::marker {
  color: var(--accent);
}

.credentials {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.credentials h3 {
  margin: 0;
  font-size: 20px;
}

.credentials ul {
  margin-bottom: 0;
}

/* Education */
.education-item {
  padding-block: 24px;
}

.education-item + .education-item {
  border-top: 1px solid var(--border);
}

.education-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.education-item p {
  margin: 4px 0;
}

.education-date {
  font-size: 14px;
}

/* Contact */
.contact-panel {
  padding: clamp(24px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-panel h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.contact-button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--background);
  border-radius: 6px;
  font-weight: 600;
}

.contact-button:hover {
  background: #b0cdff;
  text-decoration: none;
}

.contact-email {
  margin-top: 24px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Personal wordmark */
header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;

  background: var(--accent);
  color: var(--background);
  border-radius: 10px 3px 10px 3px;

  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-name {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-surname {
  font-weight: 750;
}

/* Tighter page spacing */
#home {
  padding-block: 56px;
}

section {
  padding-block: 36px;
}

.role {
  padding: 24px;
}

.experience-list {
  gap: 16px;
}

/* Tighter spacing on smaller screens */
@media (max-width: 600px) {
  #home {
    padding-block: 40px;
  }

  section {
    padding-block: 28px;
  }
}

/* Two-column introduction */
#home {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

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

.hero-eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 4.6vw, 64px);
}

.hero-intro {
  margin: 0;
  max-width: 600px;
  font-size: 18px;
}

.hero-button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--background);
  font-weight: 600;
}

.hero-button:hover {
  background: #b0cdff;
  text-decoration: none;
}

/* Career summary panel */
.hero-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
}

.hero-panel h2 {
  margin: 0 0 24px;
  font-size: 22px;
}

.glance-list {
  margin: 0;
}

.glance-list > div + div {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.glance-list dt {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.glance-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Stack the introduction and panel on smaller screens */
@media (max-width: 850px) {
  #home {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}