/* ──────────────────────────────────────────────────────────────────────────
   Tacasando — reset e fundações
   ────────────────────────────────────────────────────────────────────────── */

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

/* Aprendizado registrado: sem isto, um overlay com [hidden] continua captando
   toques porque alguma regra de display o reativa. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ts-paper);
  color: var(--ts-ink);
  font-family: var(--ts-font-ui);
  font-size: var(--ts-text-base);
  line-height: var(--ts-leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--ts-font-display);
  font-weight: 400;
  line-height: var(--ts-leading-tight);
  letter-spacing: var(--ts-tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--ts-text-3xl); }
h2 { font-size: var(--ts-text-2xl); }
h3 { font-size: var(--ts-text-xl); }
h4 { font-size: var(--ts-text-lg); }

p {
  margin: 0;
}

p + p {
  margin-top: var(--ts-space-4);
}

a {
  color: inherit;
  text-decoration-color: var(--ts-line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--ts-duration-fast) var(--ts-ease);
}

a:hover {
  color: var(--ts-accent-deep);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Aprendizado registrado: <picture> é inline e não propaga altura — sem isto,
   uma <img height:100%> dentro dele volta à proporção natural. */
picture {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ts-accent);
  outline-offset: 3px;
  border-radius: var(--ts-radius-sm);
}

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

/* ── estrutura ────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--ts-container);
  margin-inline: auto;
  padding-inline: var(--ts-gutter);
}

.container--narrow { max-width: var(--ts-container-narrow); }
.container--wide { max-width: var(--ts-container-wide); }

.section {
  padding-block: var(--ts-section-y);
}

.section--tint { background: var(--ts-paper-2); }
.section--ink { background: var(--ts-band); color: var(--ts-paper); }
.section--compact { padding-block: calc(var(--ts-section-y) * 0.6); }

.stack > * + * { margin-top: var(--ts-space-4); }
.stack-lg > * + * { margin-top: var(--ts-space-6); }
.stack-sm > * + * { margin-top: var(--ts-space-2); }

.measure { max-width: var(--ts-measure); }
.center { text-align: center; }
.center-x { margin-inline: auto; }

/* ── utilitários de texto ─────────────────────────────────────────────── */

.eyebrow {
  display: block;
  font-family: var(--ts-font-ui);
  font-size: var(--ts-text-xs);
  font-weight: 500;
  letter-spacing: var(--ts-tracking-widest);
  text-transform: uppercase;
  color: var(--ts-accent-deep);
}

.lede {
  font-size: var(--ts-text-md);
  line-height: var(--ts-leading-relaxed);
  color: var(--ts-ink-soft);
}

.muted { color: var(--ts-muted); }
.small { font-size: var(--ts-text-sm); }
.tiny { font-size: var(--ts-text-xs); }

.display {
  font-family: var(--ts-font-display);
  font-weight: 300;
  font-size: var(--ts-text-4xl);
  line-height: var(--ts-leading-tight);
}

.serif { font-family: var(--ts-font-display); }

/* Filete decorativo dourado: o único ornamento recorrente da marca. */
.rule {
  width: 56px;
  height: 1px;
  border: 0;
  margin: var(--ts-space-5) 0;
  background: linear-gradient(90deg, var(--ts-accent), transparent);
}

.rule--center { margin-inline: auto; background: var(--ts-accent); width: 40px; }

/* ── acessibilidade ──────────────────────────────────────────────────── */

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

.skip-link {
  position: absolute;
  top: var(--ts-space-3);
  left: var(--ts-space-3);
  z-index: var(--ts-z-toast);
  padding: var(--ts-space-2) var(--ts-space-4);
  background: var(--ts-ink);
  color: var(--ts-paper);
  border-radius: var(--ts-radius);
  transform: translateY(-200%);
  transition: transform var(--ts-duration) var(--ts-ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--ts-paper);
}
