/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Blue palette */
  --blue-deep:   #1a2e45;
  --blue-mid:    #2c4a6e;
  --blue-accent: #3d6b9e;
  --blue-light:  #e8eff7;

  /* Brown palette */
  --brown-dark:  #4a3220;
  --brown-mid:   #7a5c3e;
  --brown-warm:  #a07850;
  --brown-light: #f0e8de;

  /* Neutral */
  --white:       #ffffff;
  --off-white:   #f7f5f2;
  --text-dark:   #1e1e1e;
  --text-mid:    #4a4a4a;
  --text-muted:  #888888;
  --border:      #d8cfc6;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--off-white);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  background-color: var(--blue-deep);
  border-bottom: 3px solid var(--brown-warm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  flex-direction: column;
}

.header-city {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-warm);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--brown-warm);
}

/* ================================================
   MAIN WRAPPER
   ================================================ */
.main-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* ================================================
   PROFILE TITLE BAR
   ================================================ */
.profile-title-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
}

.back-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-mid);
  text-decoration: none;
  border: 1px solid var(--brown-mid);
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}

.back-link:hover {
  background-color: var(--brown-mid);
  color: var(--white);
}

/* ================================================
   PROFILE BLOCK (two-column)
   ================================================ */
.profile-block {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 56px;
  align-items: start;
}

/* ---- Left Column: Photos ---- */
.profile-photo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.placeholder-photo {
  background-color: var(--blue-light);
  border: 1px solid #c4d5e8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

.photo-main {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.photo-main img,
.photo-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Right Column: Info ---- */
.profile-info-col {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* ================================================
   INFO SECTIONS
   ================================================ */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-warm);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-deep);
}

.bio-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 580px;
}

/* ---- Meta list (Sobre) ---- */
.meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.meta-list li {
  display: flex;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.meta-key {
  font-weight: 600;
  color: var(--blue-deep);
  min-width: 90px;
  flex-shrink: 0;
}

.meta-val {
  color: var(--text-mid);
}

/* ================================================
   ENTRY LIST (Experiência / Projetos)
   ================================================ */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entry {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.entry-highlight {
  background-color: var(--blue-light);
  border: 1px solid #c4d5e8;
  border-left: 4px solid var(--blue-deep);
  border-bottom: 1px solid #c4d5e8;
  padding: 18px 20px;
  margin-bottom: 0;
}

.entry:first-child {
  border-top: none;
}

.entry-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-accent);
  min-width: 42px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.entry-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entry-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-company {
  font-size: 13px;
  color: var(--brown-mid);
}

.entry-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 6px;
  max-width: 560px;
}

.entry-tags {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-accent);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  font-size: 14px;
  align-items: center;
}

.contact-link {
  color: var(--blue-accent);
  text-decoration: none;
  font-weight: 400;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--brown-warm);
  text-decoration: underline;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background-color: var(--blue-deep);
  border-top: 3px solid var(--brown-warm);
  text-align: center;
  padding: 22px 40px;
}

.site-footer p {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-sans);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .header-inner,
  .main-wrapper {
    padding-left: 28px;
    padding-right: 28px;
  }

  .profile-block {
    gap: 40px;
  }
}

@media (max-width: 820px) {
  .profile-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-photo-col {
    position: static;
    flex-direction: row;
    max-width: 460px;
    margin: 0 auto;
  }

  .photo-main  { flex: 1; aspect-ratio: 3 / 4; }
  .photo-secondary { flex: 1; aspect-ratio: 3 / 4; }

  .header-inner {
    height: auto;
    min-height: 60px;
    padding: 0 20px;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px;
  }

  .header-brand {
    width: 100%;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 8px;
  }

  .main-wrapper {
    padding: 24px 20px 60px;
  }

  .profile-title-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .profile-info-col {
    gap: 40px;
  }

  .bio-text,
  .entry-desc {
    max-width: none;
  }

  .meta-list li,
  .contact-list li {
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
  }

  .entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .entry-highlight {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-city {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .site-nav a {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .main-wrapper {
    padding: 18px 14px 44px;
  }

  .profile-photo-col {
    flex-direction: column;
    max-width: none;
  }

  .photo-main {
    aspect-ratio: 4 / 5;
  }

  .section-label {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .meta-key {
    min-width: 0;
  }
}
