/* =========================
   Fonts
========================= */
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Base
========================= */
:root {
  --bg: #ede0d4;
  --text: #7f5539;
}

html {
  background-color: var(--bg);
  padding: 5% 7% 7%;
  font-family: "Figtree", sans-serif;
}

body {
  margin: 0;
  font-family: "Figtree", sans-serif;
  color: var(--text);
}

/* =========================
   Typography
========================= */
h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.25rem, 3.5vw, 4rem);
  color: var(--text);
  text-decoration: none;
}

h2 {
  margin: 0 0 0.75rem 0;
  font-size: 28px;
  font-style: italic;
  color: var(--text);
}

h3 {
  margin: 0.25rem 0;
  font-size: 26px;
  color: var(--text);
}

p,
li {
  font-size: 24px;
  color: var(--text);
}

p {
  margin: 0.75rem 0;
}

/* =========================
   Links
========================= */
a {
  color: var(--text);
  text-decoration: underline;
}

a:hover {
  color: var(--bg);
  background-color: var(--text);
  text-decoration: none;
}

/* =========================
   Header
========================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name-link {
  text-decoration: none; /* keeps h1 clean */
}

.name-link:hover {
  background: none; /* prevents big highlight block on hover */
  color: inherit;
}

.linkedin-link {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  text-decoration: underline;
}

.avatar {
  width: 300px;
  max-width: 40vw;
  border-radius: 50%;
  display: block;
}

/* Mobile: photo first, name + links underneath */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar {
    order: -1;
    max-width: 70vw;
  }

  .header-text {
    align-items: center;
    margin-top: 1rem;
  }

  .linkedin-link {
    font-size: 1.25rem;
  }
}

/* =========================
   Intro / Socials block
========================= */
.socials {
  font-size: 24px;
  padding: 0;
  margin: 0;
  color: var(--text);
}

/* If you still use this class anywhere */
.social-link {
  padding: 7px 0;
  margin: 0;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
}

.social-link:hover {
  color: var(--bg);
  background-color: var(--text);
  text-decoration: none;
}

/* =========================
   CV section
========================= */
.cv {
  max-width: 1100px;
  margin: 0 auto;
}

.cv-section {
  margin-top: 3rem;
}

.cv-item {
  margin-top: 2rem;
}

.cv-item p {
  margin: 0.25rem 0;
}

.cv-role {
  font-style: italic;
  margin: 0.25rem 0;
}

.cv-meta {
  margin: 0.15rem 0;
}