/* GERADO por apps/site/build.mjs a partir de packages/brand/tokens/tokens.json e de
   apps/site/src/styles.css. Não editar à mão: edite a origem e rode o build de novo. */

@font-face {
  font-family: 'InstrumentSerif-Regular';
  src: url('/assets/fonts/InstrumentSerif-Regular.498efd461f.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope-Regular';
  src: url('/assets/fonts/Manrope-Regular.d1183a9b34.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope-SemiBold';
  src: url('/assets/fonts/Manrope-SemiBold.afba957e6d.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --tn-bg: #202522;
  --tn-surface: #2C332E;
  --tn-surface-2: #354037;
  --tn-line: #849487;
  --tn-ink: #F5F5F0;
  --tn-ink-muted: #BCC8BD;
  --tn-ink-inverse: #242827;
  --tn-accent: #A7B5AA;
  --tn-accent-pressed: #BCC8BD;
  --tn-accent-ink: #202522;
  --tn-accent-soft: rgba(167, 181, 170, 0.16);
  --tn-secondary: #BA9D9D;
  --tn-focus: #9ACBDF;
  --tn-success: #C9E9CF;
  --tn-success-bg: #263C2C;
  --tn-warning: #F1D38D;
  --tn-warning-bg: #40351F;
  --tn-danger: #F0B7B1;
  --tn-danger-bg: #422E2D;
  --tn-info: #B4D9EC;
  --tn-info-bg: #263942;
  --tn-disabled-bg: #39443B;
  --tn-disabled-ink: #BCC8BD;
  --tn-type-red: #86515C;
  --tn-type-white: #D7CA8B;
  --tn-type-rose: #C7919C;
  --tn-type-sparkling: #A7BCA7;
  --tn-type-orange: #C9864C;
  --tn-type-sweet: #B9A379;
  --tn-type-fortified: #BC6456;
  --tn-aroma-red-fruit: #C8324B;
  --tn-aroma-black-fruit: #4A1838;
  --tn-aroma-citrus: #E3BF2E;
  --tn-aroma-white-fruit: #D9C86A;
  --tn-aroma-tropical: #F0A03C;
  --tn-aroma-floral: #C27AB0;
  --tn-aroma-herbal: #6F8F3A;
  --tn-aroma-mineral: #8A9099;
  --tn-aroma-spice: #9A4A2A;
  --tn-aroma-lees: #D8C39A;
  --tn-aroma-oak: #A0683A;
  --tn-aroma-toasty: #5E3B26;
  --tn-aroma-ripe-fruit: #7A3B2A;
  --tn-aroma-nutty: #B98A52;
  --tn-aroma-animal: #5A3A2A;
  --tn-aroma-earth: #6B5A3A;
  --tn-aroma-sweet-honey: #D9A234;
  --tn-aroma-group-primary: #4F655C;
  --tn-aroma-group-secondary: #867474;
  --tn-aroma-group-tertiary: #3C4440;
  --tn-radar-user: #A7B5AA;
  --tn-radar-user-fill: rgba(167, 181, 170, 0.18);
  --tn-radar-wine: #BA9D9D;
  --tn-radar-other: #9ACBDF;
  --tn-radar-grid: #849487;
  --tn-radar-label: #BCC8BD;
  --tn-font-display: 'InstrumentSerif-Regular', Georgia, 'Times New Roman', serif;
  --tn-font-body: 'Manrope-Regular', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tn-font-control: 'Manrope-SemiBold', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tn-text-xs: 0.75rem;
  --tn-text-xs-lh: 1.5000;
  --tn-text-sm: 0.875rem;
  --tn-text-sm-lh: 1.4286;
  --tn-text-base: 1rem;
  --tn-text-base-lh: 1.5000;
  --tn-text-lg: 1.125rem;
  --tn-text-lg-lh: 1.5556;
  --tn-text-xl: 1.25rem;
  --tn-text-xl-lh: 1.4000;
  --tn-text-2xl: 1.5rem;
  --tn-text-2xl-lh: 1.3333;
  --tn-text-3xl: 1.75rem;
  --tn-text-3xl-lh: 1.1429;
  --tn-text-4xl: 2.25rem;
  --tn-text-4xl-lh: 1.1111;
  --tn-text-5xl: 3rem;
  --tn-text-5xl-lh: 1.0417;
  --tn-space-0: 0px;
  --tn-space-1: 4px;
  --tn-space-2: 8px;
  --tn-space-3: 12px;
  --tn-space-4: 16px;
  --tn-space-5: 20px;
  --tn-space-6: 24px;
  --tn-space-8: 32px;
  --tn-space-12: 48px;
  --tn-space-16: 64px;
  --tn-space-24: 96px;
  --tn-space-screen-margin: 20px;
  --tn-space-screen-margin-narrow: 16px;
  --tn-space-grid-gutter: 16px;
  --tn-radius-sm: 8px;
  --tn-radius-md: 12px;
  --tn-radius-lg: 20px;
  --tn-radius-full: 999px;
  --tn-size-control-height: 52px;
  --tn-size-touch-target: 48px;
  --tn-size-icon: 24px;
  --tn-size-icon-sm: 20px;
  --tn-size-tab-bar: 64px;
  --tn-size-button-web: 56px;
  --tn-size-content-web-max: 480px;
  --tn-duration-instant: 0ms;
  --tn-duration-fast: 100ms;
  --tn-duration-color: 160ms;
  --tn-duration-feedback: 180ms;
  --tn-duration-base: 240ms;
  --tn-duration-slow: 280ms;
  --tn-duration-radar-reveal: 550ms;
  --tn-duration-radar-morph: 400ms;
  --tn-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --tn-easing-emphasized: cubic-bezier(0.22, 1, 0.36, 1);
}

/* O escuro é o ponto de partida da marca; o claro entra quando o sistema pede. */
@media (prefers-color-scheme: light) {
  :root {
  --tn-bg: #F5F5F0;
  --tn-surface: #FFFFFF;
  --tn-surface-2: #E8ECE5;
  --tn-line: #6F7D72;
  --tn-ink: #242827;
  --tn-ink-muted: #526158;
  --tn-ink-inverse: #F5F5F0;
  --tn-accent: #4F655C;
  --tn-accent-pressed: #3C5148;
  --tn-accent-ink: #FFFFFF;
  --tn-accent-soft: rgba(79, 101, 92, 0.14);
  --tn-secondary: #867474;
  --tn-focus: #356680;
  --tn-success: #285638;
  --tn-success-bg: #E5EFE6;
  --tn-warning: #745216;
  --tn-warning-bg: #F5ECD8;
  --tn-danger: #903B36;
  --tn-danger-bg: #F6E8E6;
  --tn-info: #315D75;
  --tn-info-bg: #E5EDF2;
  --tn-disabled-bg: #E1E5DF;
  --tn-disabled-ink: #526158;
  --tn-type-red: #86515C;
  --tn-type-white: #D7CA8B;
  --tn-type-rose: #C7919C;
  --tn-type-sparkling: #A7BCA7;
  --tn-type-orange: #C9864C;
  --tn-type-sweet: #B9A379;
  --tn-type-fortified: #BC6456;
  --tn-aroma-red-fruit: #C8324B;
  --tn-aroma-black-fruit: #4A1838;
  --tn-aroma-citrus: #E3BF2E;
  --tn-aroma-white-fruit: #D9C86A;
  --tn-aroma-tropical: #F0A03C;
  --tn-aroma-floral: #C27AB0;
  --tn-aroma-herbal: #6F8F3A;
  --tn-aroma-mineral: #8A9099;
  --tn-aroma-spice: #9A4A2A;
  --tn-aroma-lees: #D8C39A;
  --tn-aroma-oak: #A0683A;
  --tn-aroma-toasty: #5E3B26;
  --tn-aroma-ripe-fruit: #7A3B2A;
  --tn-aroma-nutty: #B98A52;
  --tn-aroma-animal: #5A3A2A;
  --tn-aroma-earth: #6B5A3A;
  --tn-aroma-sweet-honey: #D9A234;
  --tn-aroma-group-primary: #4F655C;
  --tn-aroma-group-secondary: #867474;
  --tn-aroma-group-tertiary: #242827;
  --tn-radar-user: #4F655C;
  --tn-radar-user-fill: rgba(79, 101, 92, 0.14);
  --tn-radar-wine: #867474;
  --tn-radar-other: #356680;
  --tn-radar-grid: #B6C0B7;
  --tn-radar-label: #526158;
  }
}

/* Folha de estilo do site institucional taninnoapp.com (D-165).
 *
 * Nenhum valor de marca literal: cor, fonte, tamanho de texto, raio, espaço, medida de controle e
 * duração saem de `--tn-*`, que o `build.mjs` gera a partir de packages/brand/tokens/tokens.json.
 * As únicas medidas escritas aqui são de layout (largura máxima da coluna, grade dos cards).
 *
 * Tema: o escuro é o ponto de partida da marca (brandbook p.18), então `:root` é escuro e o claro
 * entra por `prefers-color-scheme: light`. Sem JavaScript, sem botão de tema, sem cookie. */

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

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tn-bg);
  color: var(--tn-ink);
  font-family: var(--tn-font-body);
  font-size: var(--tn-text-lg);
  line-height: var(--tn-text-lg-lh);
}

main {
  flex: 1 0 auto;
  padding-block: var(--tn-space-8) var(--tn-space-12);
}

/* Coluna de leitura. O gutter é o do app: 16 estreito, 20 a partir de telas de celular grande. */
.shell {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: var(--tn-space-screen-margin-narrow);
}

@media (min-width: 30rem) {
  .shell {
    padding-inline: var(--tn-space-screen-margin);
  }
}

section + section {
  margin-top: var(--tn-space-12);
}

/* ------------------------------------------------------------------ texto */

h1,
h2,
h3 {
  font-weight: 400; /* cada peso é um arquivo de fonte: nunca sintetizar (D-12). */
  margin: 0;
}

h1 {
  font-family: var(--tn-font-display);
  font-size: var(--tn-text-4xl);
  line-height: var(--tn-text-4xl-lh);
}

h2 {
  font-family: var(--tn-font-display);
  font-size: var(--tn-text-2xl);
  line-height: var(--tn-text-2xl-lh);
}

p {
  margin: 0;
}

strong,
th {
  font-family: var(--tn-font-control);
  font-weight: 400;
}

code {
  font-family: inherit;
  background: var(--tn-surface-2);
  border-radius: var(--tn-radius-sm);
  padding-inline: var(--tn-space-1);
  overflow-wrap: anywhere;
}

a {
  color: var(--tn-accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tn-accent-pressed);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: var(--tn-space-2);
  z-index: 1;
  background: var(--tn-surface);
  color: var(--tn-ink);
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-md);
  padding: var(--tn-space-3) var(--tn-space-4);
  text-decoration: none;
}

.skip:focus {
  left: var(--tn-space-4);
}

/* ------------------------------------------------------------------ cabeçalho */

.header {
  border-bottom: 1px solid var(--tn-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tn-space-4);
  flex-wrap: wrap;
  padding-block: var(--tn-space-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tn-size-touch-target);
  color: var(--tn-ink);
}

.logo svg {
  height: var(--tn-space-6);
  width: auto;
}

.langs {
  display: flex;
  align-items: center;
  gap: var(--tn-space-1);
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tn-size-touch-target);
  min-height: var(--tn-size-touch-target);
  padding-inline: var(--tn-space-2);
  border-radius: var(--tn-radius-full);
  font-family: var(--tn-font-control);
  font-size: var(--tn-text-sm);
  line-height: var(--tn-text-sm-lh);
  color: var(--tn-ink-muted);
  text-decoration: none;
  transition: color var(--tn-duration-color) var(--tn-easing-standard);
}

.lang:hover {
  color: var(--tn-ink);
}

.lang.is-current {
  background: var(--tn-accent-soft);
  color: var(--tn-ink);
}

.lang abbr {
  text-decoration: none;
}

/* ------------------------------------------------------------------ início */

.hero svg {
  height: var(--tn-space-16);
  width: auto;
  color: var(--tn-accent);
  display: block;
  margin-bottom: var(--tn-space-6);
}

.hero h1 {
  font-size: clamp(var(--tn-text-4xl), 7vw, var(--tn-text-5xl));
  line-height: var(--tn-text-5xl-lh);
  max-width: 18ch;
}

.lead {
  margin-top: var(--tn-space-5);
  font-size: var(--tn-text-xl);
  line-height: var(--tn-text-xl-lh);
  color: var(--tn-ink-muted);
  max-width: 44ch;
}

.cta-row {
  margin-top: var(--tn-space-8);
}

.cta-note {
  margin-top: var(--tn-space-3);
  font-size: var(--tn-text-base);
  line-height: var(--tn-text-base-lh);
  color: var(--tn-ink-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tn-size-button-web);
  padding-inline: var(--tn-space-6);
  border-radius: var(--tn-radius-md);
  background: var(--tn-accent);
  color: var(--tn-accent-ink);
  font-family: var(--tn-font-control);
  font-size: var(--tn-text-base);
  line-height: var(--tn-text-base-lh);
  text-decoration: none;
  transition: background var(--tn-duration-color) var(--tn-easing-standard);
}

.button:hover,
.button:active {
  background: var(--tn-accent-pressed);
  color: var(--tn-accent-ink);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--tn-space-4);
  grid-template-columns: 1fr;
}

/* Uma coluna no celular, três lado a lado quando a coluna de leitura inteira cabe na tela. */
@media (min-width: 46rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--tn-surface);
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-lg);
  padding: var(--tn-space-5);
}

.card h2 {
  font-family: var(--tn-font-control);
  font-size: var(--tn-text-xl);
  line-height: var(--tn-text-xl-lh);
}

.card p {
  margin-top: var(--tn-space-2);
  font-size: var(--tn-text-base);
  line-height: var(--tn-text-base-lh);
  color: var(--tn-ink-muted);
}

/* ------------------------------------------------------------------ avisos */

/* Fundo de estado quase não se destaca da superfície: por isso sempre ícone + texto (p.20). */
.notice {
  display: flex;
  gap: var(--tn-space-3);
  padding: var(--tn-space-4);
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-md);
  font-size: var(--tn-text-base);
  line-height: var(--tn-text-base-lh);
}

.notice-info {
  background: var(--tn-info-bg);
}

.notice-info .icon {
  color: var(--tn-info);
}

.notice-warning {
  background: var(--tn-warning-bg);
}

.notice-warning .icon {
  color: var(--tn-warning);
}

.notice .icon {
  flex: none;
  width: var(--tn-size-icon);
  height: var(--tn-size-icon);
  margin-top: 0.15em;
}

.notice-title {
  font-family: var(--tn-font-control);
  margin-bottom: var(--tn-space-1);
}

.notice p + p {
  margin-top: var(--tn-space-2);
}

/* ------------------------------------------------------------------ páginas de texto */

.prose > * + * {
  margin-top: var(--tn-space-4);
}

.prose h2 {
  margin-top: var(--tn-space-8);
}

.prose ul,
.prose ol {
  margin-block: 0;
  padding-left: var(--tn-space-5);
}

.prose li + li {
  margin-top: var(--tn-space-2);
}

.steps li::marker {
  font-family: var(--tn-font-control);
  color: var(--tn-ink-muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--tn-text-base);
  line-height: var(--tn-text-base-lh);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--tn-space-3);
  border-bottom: 1px solid var(--tn-line);
}

/* ------------------------------------------------------------------ rodapé */

.footer {
  border-top: 1px solid var(--tn-line);
  padding-block: var(--tn-space-8);
  color: var(--tn-ink-muted);
  font-size: var(--tn-text-base);
  line-height: var(--tn-text-base-lh);
}

.footer svg {
  height: var(--tn-space-8);
  width: auto;
  color: var(--tn-ink-muted);
  display: block;
  margin-bottom: var(--tn-space-4);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tn-space-4);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tn-size-touch-target);
}

.footer-note {
  margin-top: var(--tn-space-2);
}

/* ------------------------------------------------------------------ movimento reduzido */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: var(--tn-duration-instant) !important;
    animation-duration: var(--tn-duration-instant) !important;
  }
}
