:root {
  color-scheme: light dark;
  --background: #f6f8fa;
  --surface: #ffffff;
  --surface-soft: #f0f3f6;
  --text: #1f2328;
  --muted: #59636e;
  --border: #d0d7de;
  --accent: #4338ca;
  --accent-contrast: #ffffff;
  --shadow: 0 18px 50px rgba(31, 35, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d1117;
    --surface: #161b22;
    --surface-soft: #21262d;
    --text: #f0f6fc;
    --muted: #8b949e;
    --border: #30363d;
    --accent: #818cf8;
    --accent-contrast: #0d1117;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 36px;
}

.hero,
.summary,
.resume {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 6vw, 64px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.headline {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45;
}

.meta,
footer {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.summary,
.resume {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 40px);
}

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

.grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(82vh, 980px);
  min-height: 680px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 6px 0;
  font-size: 0.88rem;
}

footer p {
  max-width: 720px;
  margin-bottom: 0;
}

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .hero,
  .summary,
  .resume {
    border-radius: 18px;
  }

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

  .grid article {
    min-height: auto;
  }

  .section-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-frame {
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
