:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #5d5d5d;
  --line: #d9d2c7;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #8f2f27;
  --accent-strong: #5f1d19;
  --sage: #315e54;
  --shadow: 0 18px 45px rgba(38, 30, 24, 0.09);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.92);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.hero,
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.hero {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 750px;
  color: #2c2c2c;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-applied {
  max-width: 790px;
  margin-top: 1.7rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.hero-applied p:not(.eyebrow) {
  margin-bottom: 1rem;
  color: #333;
}

.hero-applied .skill-list {
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(32, 26, 20, 0.12);
}

.hero-aside {
  display: grid;
  gap: 1.25rem;
}

.photo-frame {
  margin: 0;
  width: min(100%, 320px);
  justify-self: end;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(49, 94, 84, 0.14), rgba(143, 47, 39, 0.13)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(21, 21, 21, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0;
}

.profile-panel {
  border-left: 4px solid var(--sage);
  background: var(--panel);
  padding: 1.35rem 1.35rem 1.1rem;
  box-shadow: var(--shadow);
}

.profile-panel dl,
.profile-panel dd {
  margin: 0;
}

.profile-panel div + div {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.profile-panel dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-heading p {
  color: #333;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 920px;
}

.skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(49, 94, 84, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #273d38;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.paper {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.paper:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.paper-meta {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
}

.paper-meta p {
  margin-bottom: 0.45rem;
}

.paper-body h3 {
  margin-bottom: 0.7rem;
}

.paper-body p {
  color: #282828;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: center;
}

.cv-preview {
  display: block;
  max-width: 280px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.cv-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.contact p {
  color: #333;
}

.contact {
  padding-bottom: 5.5rem;
}

.email-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

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

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .hero,
  .section,
  .split,
  .paper {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 3rem 1rem;
  }

  .paper {
    gap: 0.75rem;
  }

  .photo-frame {
    justify-self: start;
    max-width: 240px;
  }

  .cv-preview {
    max-width: 230px;
  }
}
