:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --text: #10212f;
  --muted: #4a5a67;
  --accent: #165d84;
  --line: #d8e0e6;
  --shadow: 0 10px 24px rgba(16, 33, 47, 0.08);
  /* Placas sociais — alinhadas ao favicon (dark academia) */
  --social-plaque-bg: #0b0e0d;
  --social-plaque-bg-hover: #101612;
  --social-plaque-border: #2d261c;
  --social-plaque-glow: rgba(201, 170, 91, 0.22);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.resume {
  width: min(980px, 92vw);
  margin: 28px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 30px;
}
.section + .section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2rem;
  line-height: 1.1;
}
.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}
.hero-h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 2rem;
  line-height: 1.1;
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}
.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* Mesmo enquadramento visual que .hero-brand-mark (favicon ao lado do nome) */
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 5px;
  border-radius: 0.4rem;
  line-height: 0;
  background: var(--social-plaque-bg);
  border: 1px solid var(--social-plaque-border);
  box-shadow:
    inset 0 0 0 1px rgba(80, 70, 54, 0.28),
    0 1px 3px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.hero-social-link:hover {
  transform: translateY(-1px);
  background: var(--social-plaque-bg-hover);
  border-color: #3d3428;
  box-shadow:
    inset 0 0 0 1px rgba(201, 170, 91, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.22),
    0 0 12px var(--social-plaque-glow);
}
.hero-social-link:focus-visible {
  outline: 2px solid #c9aa5b;
  outline-offset: 2px;
}
.hero-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}
svg.hero-social-icon {
  vertical-align: middle;
  shape-rendering: geometricPrecision;
}
@media (prefers-reduced-motion: reduce) {
  .hero-social-link,
  .hero-social-icon {
    transition: none;
  }
  .hero-social-link:hover {
    transform: none;
  }
}
.hero-brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow:
    0 1px 2px rgba(16, 33, 47, 0.08),
    0 0 0 1px rgba(22, 93, 132, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}
.hero-brand-mark:hover {
  transform: translateY(-2px) rotate(-2deg) scale(1.06);
  filter: saturate(1.08) brightness(1.06);
  box-shadow:
    0 8px 20px rgba(22, 93, 132, 0.2),
    0 0 0 1px rgba(22, 93, 132, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand-mark {
    transition: none;
  }
  .hero-brand-mark:hover {
    transform: none;
  }
}
.hero-h1 .name {
  font-weight: 700;
}
.hero-h1 .lang-switch {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}
.hero-h1 .lang-switch a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 2px;
}
.hero-h1 .lang-switch a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
h2 {
  font-size: 1.05rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
h3 {
  font-size: 0.96rem;
  margin-bottom: 3px;
}
p,
ul {
  margin: 0;
}
.hero .headline {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.96rem;
}
.contacts,
.links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  font-size: 0.9rem;
}
.links span {
  color: var(--text);
}
.links-second-row {
  margin-top: 2px;
}
.dot {
  color: var(--muted);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.entry + .entry {
  margin-top: 10px;
}
.entry p {
  color: #24333f;
  font-size: 0.9rem;
}
.focus {
  margin-bottom: 4px;
  font-style: italic;
  color: var(--muted);
}
ul {
  margin-top: 4px;
  padding-left: 16px;
}
li + li {
  margin-top: 4px;
}
li {
  font-size: 0.88rem;
  color: #1d2f3b;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .resume {
    width: 96vw;
    padding: 20px;
    border-radius: 12px;
  }
  .grid-two {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
