/* ============================================================
   Julia Lima — portfólio
   Porte fiel do design "Julia Lima.dc.html".
   Sem build, sem dependências.
   ============================================================ */

:root {
  --ink:    #111111;  /* texto / traços fortes  */
  --paper:  #ffffff;  /* fundo                  */
  --accent: #002FA7;  /* azul Klein de destaque */
  --rule:   #d8d8d4;  /* filete fino            */
  --mute:   #8a8a86;  /* mono secundário        */
  --dim:    #5a5a58;  /* texto corrido apoio    */
  --hover:  #faf9f7;  /* hover das linhas       */

  --pad-x: clamp(16px, 3vw, 40px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  /* medido em JS a partir da altura real do header */
  --header-h: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--paper); }

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
}

[hidden] { display: none !important; }

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0 24px;
  padding: 0 var(--pad-x);
}

.header__logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 14px 0;
  white-space: nowrap;
  order: 0;
}

.header__nav {
  display: none;
  align-items: stretch;
  gap: clamp(10px, 2vw, 28px);
  overflow-x: auto;
  scrollbar-width: none;
}
.header__nav::-webkit-scrollbar { display: none; }

.header__nav a {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.header__nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.header__right {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.header__lang {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
.header__lang:hover { color: var(--accent); }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 0 14px 4px;
  cursor: pointer;
  width: 26px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}
.burger[aria-expanded="true"] span { background: var(--accent); }

/* ============================================================
   MENU MOBILE
   ============================================================ */

.menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--header-h);
  z-index: 19;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 8px var(--pad-x) 40px;
}

.menu__nav a {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.menu__nav a[aria-current="page"] { color: var(--accent); }

.menu__nav .label {
  font-weight: 700;
  font-size: clamp(30px, 9vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.menu__nav .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}

.menu__social {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   MAIN
   ============================================================ */

.main { flex: 1; }

.page__title {
  margin: 0 0 clamp(24px, 4vw, 56px);
  font-weight: 700;
  font-size: clamp(40px, 10vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Home: hero ───────────────────────────────────────────── */

.hero { padding: clamp(28px, 6vw, 80px) var(--pad-x) 0; }

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(56px, 15.5vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__roles {
  margin-top: clamp(20px, 3vw, 40px);
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ── Home: bio + retrato ──────────────────────────────────── */

.bio {
  padding: clamp(40px, 7vw, 110px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.bio__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.bio__lead {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  max-width: 34ch;
}

.bio__body {
  margin: 1.1em 0 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--dim);
  text-wrap: pretty;
  max-width: 52ch;
}

.portrait { display: flex; flex-direction: column; gap: 10px; }

.portrait__img {
  width: 100%;
  /* height: auto é obrigatório — sem ele o atributo height="1250" do <img>
     vira hint de apresentação e anula o aspect-ratio abaixo. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;   /* recorte tira mais da base que do topo */
  border: 1px solid var(--ink);
  display: block;
}

/* ── Home: índice de seções ───────────────────────────────── */

.index { padding: 0 var(--pad-x) clamp(48px, 8vw, 120px); }

.index__rule { border-top: 2px solid var(--ink); }

.index__list a {
  border-bottom: 1px solid var(--rule);
  padding: clamp(12px, 1.6vw, 22px) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}

.index__list .label {
  font-weight: 700;
  font-size: clamp(28px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.index__list .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.index__list a:hover .count { color: var(--accent); }

/* ── Páginas de lista ─────────────────────────────────────── */

.listing { padding: clamp(28px, 5vw, 64px) var(--pad-x) clamp(40px, 7vw, 96px); }
.listing .page__title { max-width: 16ch; }

.block { margin-bottom: clamp(36px, 6vw, 88px); }

.block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}
.block__heading {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.block__count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 4px 20px;
  border-bottom: 1px solid var(--rule);
  padding: clamp(10px, 1.1vw, 16px) 0;
}
.row:hover { background: var(--hover); }

.row__year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
  padding-top: 3px;
}
.row__title {
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
/* publicações com link online: o título vira âncora, o resto da linha não muda */
.row__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.row__meta {
  grid-column: 2;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.35;
  color: var(--dim);
  text-wrap: pretty;
}
.row__meta:empty { display: none; }

/* ── Contato ──────────────────────────────────────────────── */

.contact { padding: clamp(28px, 5vw, 64px) var(--pad-x) clamp(48px, 8vw, 120px); }

.contact__rule { border-top: 2px solid var(--ink); }

.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  padding: clamp(12px, 1.6vw, 22px) 0;
}

.contact__value {
  font-weight: 700;
  font-size: clamp(22px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.contact__value--break { word-break: break-word; }

.contact__kind {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 2px solid var(--ink);
  padding: 20px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.footer__name { font-weight: 700; color: var(--ink); }
.footer__social { display: flex; gap: 20px; }
.footer__social a { font-weight: 700; }

/* ============================================================
   BREAKPOINT — o design troca de layout em 760px
   ============================================================ */

@media (min-width: 760px) {
  .header__nav { display: flex; }
  .burger      { display: none; }
  .menu        { display: none; }

  .row       { grid-template-columns: 5.5rem minmax(0, 1.15fr) minmax(0, 1fr); }
  .row__meta { grid-column: auto; }
}

@media (hover: hover) {
  .header__nav a:hover,
  .menu__nav a:hover,
  .index__list a:hover { color: var(--accent); }

  .row__link:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
  }
}

/* trava a rolagem do documento enquanto o menu está aberto */
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
