:root {
  --bg: #f7f3ec;
  --paper: #fcfaf6;
  --text: #1f1d1a;
  --muted: #6a6258;
  --line: #d9d1c5;
  --accent: #6a3a3a;
  --accent-soft: #efe3df;
  --max-width: 1120px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

nav a.active {
  color: var(--accent);
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.page-hero {
  padding: 5rem 0 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  max-width: 28ch;
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.lead {
  max-width: 62ch;
  font-size: 1.08rem;
  color: #322f2a;
}

.personal-note {
  margin-top: 1.2rem;
  color: var(--accent);
  font-style: italic;
  max-width: 60ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  transform: translateY(18px);
}

.hero-image img {
  border-radius: 18px;
  border: 1px solid var(--line);
}

.section {
  padding: 2.5rem 0 4rem;
  position: relative;
}

.section::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
}

.card-type {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.highlight-box {
  background: var(--accent-soft);
  border: 1px solid #dfc9c3;
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.cv-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem;
}

.list-clean {
  margin: 0;
  padding-left: 1.1rem;
}

.list-clean li + li {
  margin-top: 0.45rem;
}

.button {
  display: inline-block;
  padding: 0.82rem 1.18rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
}

.button:hover {
  text-decoration: none;
  opacity: 0.94;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .split,
  .card-grid,
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: none;
  }
}

.cv-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.cv-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
}
