/* =========================================================
   PORTFÓLIO — identidade "dossiê" editorial/corporativo
   Paleta: navy / paper / brass (accent) / ink
   Tipografia: Fraunces (display) + Public Sans (texto)
   ========================================================= */

:root {
  --navy: #142138;
  --navy-soft: #26365a;
  --paper: #f6f3ec;
  --paper-dim: #ece7da;
  --ink: #21242b;
  --ink-soft: #565b66;
  --brass: #96702f;
  --brass-bright: #b6863c;
  --line: #d9d2bf;
  --white: #fffdf9;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Utility text styles ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  font-weight: 600;
}

/* ---------- Masthead / top nav ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.masthead-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.masthead nav {
  display: flex;
  gap: 28px;
}

.masthead nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--navy);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass);
}

.hero-tagline {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-meta {
  margin: 34px 0 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 249, 0.18);
  pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--brass); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--navy); color: var(--white); }

.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 62ch;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 64px;
}

.about-text {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 400;
}

.about-side {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}

.about-side dl {
  margin: 0;
}
.about-side dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 22px;
}
.about-side dt:first-child { margin-top: 0; }
.about-side dd {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skill-card {
  background: var(--paper);
  padding: 34px 30px;
}

.skill-card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
  display: block;
  margin-bottom: 18px;
}

.skill-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Experience ---------- */

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding-top: 4px;
}

.timeline-role h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-role p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 60ch;
}

/* ---------- Projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-dim);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-media img { transform: scale(1.04); }

.project-body { padding: 26px 28px 30px; }

.project-body h3 { font-size: 20px; margin-bottom: 10px; }

.project-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 16px;
}

.project-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--brass);
}

/* ---------- Testimonials ---------- */

.testimonials-wrap {
  background: var(--navy);
  margin: 0 -28px;
  padding: 88px 28px;
}

.testimonials-wrap .section-head h2,
.testimonials-wrap .eyebrow { color: var(--white); }
.testimonials-wrap .eyebrow { color: var(--brass-bright); }
.testimonials-wrap .section-head p { color: rgba(255,253,249,0.68); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,253,249,0.14);
}

.testimonial-card {
  background: var(--navy);
  padding: 34px 32px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 22px;
}

.testimonial-quote::before { content: "\201C"; color: var(--brass-bright); }
.testimonial-quote::after { content: "\201D"; color: var(--brass-bright); }

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.testimonial-role {
  font-size: 13px;
  color: rgba(255,253,249,0.6);
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
}

.contact .wrap { max-width: 640px; }

.contact h2 { font-size: clamp(30px, 4vw, 42px); }

.contact p {
  margin: 18px 0 36px;
  color: var(--ink-soft);
  font-size: 17px;
}

.contact .btn-primary { padding: 16px 36px; font-size: 14px; }

/* ---------- Footer ---------- */

footer {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { max-width: 320px; order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-side { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 720px) {
  .masthead nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .masthead nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .masthead nav a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .testimonials-wrap { padding: 64px 20px; margin: 0 -20px; }
  .wrap { padding: 0 20px; }
}
