/* =============================================================================
   thabata.work — estilos
   Paleta: branco, preto e roxo (#7b2cbf — marcadores, hover e foco; mesmo roxo do MnF/MnC)
   ============================================================================= */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #5c5c5c; /* 6.6:1 sobre branco */
  --line: #000000;
  --line-soft: #d9d9d9;
  --accent: #7b2cbf; /* roxo: marcadores, pontos, barras (6.6:1 sobre branco) */
  --hover: #7b2cbf; /* roxo: hover e foco */
  --surface: #f7f7f5;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sidebar-w: 220px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 46rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
@media (hover: hover) {
  a:hover {
    color: var(--hover);
  }
}
a:focus-visible,
.card-link:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 3px;
}

ul.plain {
  list-style: none;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
}
.skip:focus {
  top: 1rem;
  color: var(--bg);
}

.underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--accent);
}
.underline:hover {
  text-decoration-color: currentColor;
}

.arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
a:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Layout ---------- */

.layout {
  min-height: 100vh;
}

.main {
  padding: 0 var(--gutter);
  max-width: calc(var(--measure) + 14rem + var(--gutter) * 2);
}

/* ---------- Barra lateral (desktop) / topo (mobile) ---------- */

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'brand lang'
    'nav nav';
  align-items: center;
}
.brand {
  grid-area: brand;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem var(--gutter) 0.5rem;
}
.sidebar .lang {
  grid-area: lang;
  padding: 0.75rem var(--gutter) 0.5rem 0;
}
.nav {
  grid-area: nav;
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0.6rem var(--gutter);
  white-space: nowrap;
}
.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
}
.sidebar-meta {
  display: none;
}

.lang {
  display: flex;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang a {
  color: var(--muted);
}
.lang a[aria-current] {
  color: var(--fg);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.lang span {
  color: var(--line-soft);
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: 2rem;
  }
  .layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 3rem 1.5rem 2rem;
    gap: 2.5rem;
  }
  .brand {
    padding: 0;
    font-size: 1.125rem;
    line-height: 1.3;
  }
  .nav {
    border-top: 0;
    overflow: visible;
  }
  .nav ul {
    flex-direction: column;
    gap: 0.9rem;
    padding: 0;
  }
  .nav a {
    font-size: 1rem;
  }
  .sidebar-meta {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
  }
  .sidebar-meta .label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
  }
  .sidebar-meta ul {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
  }
  
  .sidebar .lang {
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Abertura ---------- */

.hero {
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 2rem;
  height: 3px;
  margin-top: 0.6em;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.75rem;
}
.bio {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.55;
  max-width: 40rem;
}

/* ---------- Seções ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.section-body {
  max-width: var(--measure);
}
@media (min-width: 1100px) {
  .section {
    grid-template-columns: 12rem 1fr;
    gap: 2rem;
  }
  .section-title {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.year-group + .year-group {
  margin-top: 2.5rem;
}
.year {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.year::before {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  background: var(--accent);
}
.entries {
  display: grid;
  gap: 1.5rem;
}
.entry-title {
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.4;
}
a.entry-title {
  display: inline;
}
.entry-meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.2rem;
}
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* ---------- Projetos ---------- */

.cards {
  display: grid;
  gap: 1rem;
}
.card {
  display: block;
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--bg);
}
.card-link:hover {
  color: var(--fg);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--accent);
  transform: translate(-2px, -2px);
}
.card-link {
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.card-link:hover .card-cta {
  color: var(--hover);
}
.card-soon {
  border-style: dashed;
  border-color: #8a8a8a;
}
.card-soon .card-title,
.card-soon .card-desc {
  color: var(--muted);
}
.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
}
.status::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.status-soon {
  border-color: #8a8a8a;
  color: var(--muted);
}
.status-soon::before {
  background: transparent;
  border: 1px solid #8a8a8a;
}
.domain {
  font-size: 0.875rem;
  color: var(--muted);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 1rem;
  line-height: 1.6;
}
.card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Prêmios ---------- */

.award .year {
  margin-bottom: 0.5rem;
}
.award-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
}
.award-result .entry-meta {
  margin: 0;
}
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.15rem 0.55rem;
}
.badge-winner {
  background: var(--fg);
  color: var(--bg);
}
.award-desc {
  font-size: 1rem;
  line-height: 1.65;
}
.award + .award {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Newsletter ---------- */

.newsletter-desc {
  font-size: 1.1875rem;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}
.button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.8rem 1.25rem;
  font-weight: 600;
}
.button:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Rodapé ---------- */

.footer {
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem;
  color: var(--muted);
  display: grid;
  gap: 0.75rem;
}
.footer strong {
  color: var(--fg);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

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