/* ── Tokens ── */
:root {
  --blue:   #13294B;
  --orange: #E87722;
  --bg:     #f0f0ec;
  --text:   #1c1c1c;
  --muted:  #777;
  --max:    900px;
  --pad:    clamp(1.5rem, 6vw, 3rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(circle, #dad9d2 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Page wrapper ── */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) var(--pad);
}

/* ── Hero ── */
.hero { margin-bottom: 2.5rem; }

.name {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-align: center;
}

.rule {
  height: 1px;
  background: var(--orange);
  width: 100%;
}

/* ── Bio ── */
.bio {
  margin: 3rem 0 2.5rem;
}

.bio p {
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 1.4rem;
  color: var(--text);
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

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

/* ── CV inline link ── */
.cv-inline {
  color: var(--orange);
  font-style: normal;
  text-decoration: none;
}
.cv-inline:hover { text-decoration: underline; }

/* ── Photo section ── */
.photo-section {
  margin: 2.5rem 0;
  display: flex;
  justify-content: center;
}

.photo-wrapper {
  position: relative;
  display: inline-block;
  width: 220px;
  margin: 14px 0 0 14px;
}

.photo-wrapper::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 100%;
  height: 100%;
  background: var(--orange);
  z-index: 0;
}

.photo {
  position: relative;
  width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(8%);
  z-index: 1;
}
