/* ============================================================
   ANA CAROLINA JOAQUIM — PORTFÓLIO
   Paleta: tinta profunda, ouro champanhe, marfim, vinho
   ============================================================ */

:root {
  --ink: #14121a;
  --ink-2: #1c1922;
  --surface: #201c27;
  --gold: #c9a961;
  --gold-soft: #e6d3a3;
  --ivory: #f2ece1;
  --muted: #a99fae;
  --wine: #6b3a4a;
  --hairline: rgba(201, 169, 97, 0.28);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

/* subtle film-grain texture over the ink background */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* ---------- layout shell ---------- */
main {
  margin-left: 120px;
  padding: 0 clamp(28px, 6vw, 96px);
  max-width: 980px;
}

@media (max-width: 860px) {
  main { margin-left: 0; padding: 0 24px; }
}

/* ---------- side rail ---------- */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 48px;
  border-right: 1px solid var(--hairline);
  z-index: 5;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

@media (max-width: 860px) {
  .rail { display: none; }
}

.rail-monogram { width: 64px; }

.monogram-svg { width: 100%; height: auto; }
.monogram-svg.small { width: 72px; }
.ring-outer { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.55; }
.ring-inner { fill: none; stroke: var(--gold); stroke-width: 0.6; opacity: 0.35; }
.monogram-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  fill: var(--gold-soft);
}

.rail-vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}
.rail-nav a { transition: color 0.25s ease; }
.rail-nav a:hover { color: var(--gold); }

/* ---------- eyebrow / titles ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 40px;
  color: var(--ivory);
}
.section-title.small { font-size: clamp(24px, 3vw, 30px); margin-bottom: 28px; }

.rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 72px 0;
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(80px, 12vh, 140px); }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 9vw, 108px);
  line-height: 0.98;
  margin: 0 0 28px;
  color: var(--ivory);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}

.hero-lede {
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.pill {
  border: 1px solid var(--hairline);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.pill:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(201,169,97,0.06); }
.pill.ghost { color: var(--muted); cursor: default; }
.pill.ghost:hover { border-color: var(--hairline); background: none; color: var(--muted); }

/* ---------- summary ---------- */
.summary-text {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ivory);
  max-width: 760px;
}
.accent-text { color: var(--gold-soft); font-style: italic; }

/* ---------- timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 44px; }

.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--hairline);
}
.tl-item:last-child { border-bottom: none; padding-bottom: 0; }

@media (max-width: 620px) {
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
}

.tl-date {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 6px;
}

.tl-body h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ivory);
}

.tl-org {
  font-style: italic;
  color: var(--gold-soft);
  margin: 0 0 14px;
  font-size: 15px;
}

.tl-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 620px;
  margin: 0 0 14px;
}

.tl-tools {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  opacity: 0.75;
  margin: 0;
}

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 760px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-col h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--gold-soft);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.skill-col ul { list-style: none; margin: 0; padding: 0; }
.skill-col li {
  font-size: 14px;
  color: var(--muted);
  padding: 7px 0;
}

/* ---------- split (educação / idiomas) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
}

.edu-list, .lang-list { list-style: none; margin: 0; padding: 0; }

.edu-list li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.edu-list li:last-child { border-bottom: none; }

.edu-year {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  min-width: 40px;
  padding-top: 3px;
}

.edu-name { font-size: 15px; color: var(--ivory); }
.edu-name em { font-style: italic; color: var(--muted); font-size: 13.5px; }

.lang-list li { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.lang-list li:last-child { border-bottom: none; }

.lang-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ivory);
  margin-bottom: 10px;
}
.lang-level { color: var(--muted); font-size: 13px; }

.lang-bar {
  height: 1px;
  background: var(--hairline);
  width: 100%;
}
.lang-bar span {
  display: block;
  height: 1px;
  background: var(--gold);
}

/* ---------- certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

@media (max-width: 760px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
}

.cert-card {
  background: var(--ink);
  padding: 26px 22px;
  transition: background 0.3s ease;
}
.cert-card:hover { background: var(--surface); }

.cert-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.cert-card p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ivory);
  margin: 0;
  line-height: 1.4;
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 40px 0 100px;
}

.footer-monogram { display: flex; justify-content: center; margin-bottom: 28px; }

.footer-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 14px;
  color: var(--gold-soft);
}

.footer-lede { color: var(--muted); margin: 0 0 32px; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 40px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.footer-links a { border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color 0.25s ease, color 0.25s ease; }
.footer-links a:hover { border-color: var(--gold); color: var(--gold-soft); }

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { transition: none; transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- focus visibility ---------- */
a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}
