:root {
  --text: #252525;
  --muted: #666666;
  --border: #dddddd;
  --accent: #1f5f88;
  --accent-dark: #174866;
  --soft: #f7f8f9;
  --background: #ffffff;
  --linkedin: #0a66c2;
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15.5px;
  line-height: 1.58;
}

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  margin-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 26px;
}

nav a {
  position: relative;
  padding: 21px 0 18px;
  color: var(--muted);
  font-size: 0.93rem;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

h1,
h2 {
  color: var(--text);
}

h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.14;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.25;
}

p {
  margin: 0 0 14px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.92fr);
  gap: 54px;
  align-items: center;
  padding: 8px 0 56px;
}

.hero-text {
  max-width: 610px;
}

.hero-text h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.hero-text p {
  max-width: 590px;
}

.hero-image img {
  display: block;
  width: 100%;
  max-height: 430px;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  object-fit: cover;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.contact-link {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  color: #3b3b3b;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.icon-box {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
}

.icon-box svg {
  width: 15px;
  height: 15px;
  fill: #4f5961;
}

.linkedin-badge {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
  background: var(--linkedin);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.quick-links {
  display: flex;
  gap: 19px;
  margin-top: 21px;
  font-size: 0.91rem;
}

.quick-links a,
.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.quick-links a:hover,
.text-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.page {
  padding-bottom: 52px;
}

.page-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin-bottom: 0;
  font-size: 1.72rem;
}

.project-intro {
  max-width: 820px;
}

.project-intro h1 {
  font-size: 2.15rem;
}

.lede {
  max-width: 780px;
  margin-bottom: 22px;
  color: #444444;
  font-size: 1.03rem;
  line-height: 1.52;
}

.prose {
  max-width: 780px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.button {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-secondary {
  background: #ffffff;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.content-section {
  margin-top: 46px;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
}

.document-frame {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--soft);
}

.cv-frame {
  height: 1080px;
}

.presentation-frame {
  height: 720px;
  margin-top: 16px;
}

.documentation {
  max-width: 760px;
  padding-bottom: 8px;
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer .container {
  padding: 20px 0 26px;
}

@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .site-header {
    margin-bottom: 32px;
  }

  .nav-container {
    flex-direction: column;
    gap: 5px;
    padding-top: 12px;
  }

  nav {
    gap: 20px;
  }

  nav a {
    padding: 8px 0 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 0;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 360px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .cv-frame {
    height: 850px;
  }

  .presentation-frame {
    height: 560px;
  }
}
