/* Adriano Barboza — site styles. Gerado a partir do design system. */

/* ===========================================================================
   FONT FACES — Adriano Barboza
   Primary: Space Grotesk (variable, 300–700) — geometric grotesque, titles UPPER
   Support: Goudy StM (Sorts Mill Goudy) — classical serif, used italic, sparingly
   =========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-variable.ttf") format("truetype-variations"),
       url("../fonts/space-grotesk-variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Goudy StM";
  src: url("../fonts/goudy-stm.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Goudy StM";
  src: url("../fonts/goudy-stm-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ===========================================================================
   COLORS — Adriano Barboza
   Black is the base. Off-white is the paper. The palette is rich but applied
   with restraint: ONE color per shape, on rounded bento blocks, over black or
   off-white. Text is preferably black. Never combine palette colors in a
   single shape; never stack palette colors on top of each other.
   =========================================================================== */

:root {
  /* ---- Core base ---- */
  --black: #000000;          /* PRETO — primary base, text, backgrounds */
  --off-white: #FFFDE1;      /* OFF-WHITE — the brand "paper", warm white */

  /* ---- Expressive palette (single-color bento fills) ---- */
  --yellow: #FDD580;         /* AMARELO */
  --salmon: #FF7F63;         /* SALMÃO */
  --beige: #FFD2A6;          /* BEGE */
  --mint: #BDC691;           /* VERDE MENTA */
  --lime: #A0F45F;           /* VERDE LIMA */
  --olive: #636B2F;          /* VERDE OLIVA */
  --ochre: #B38E37;          /* OCRE */
  --brown: #986A4C;          /* MARROM */
  --terracotta: #E35336;     /* TERRACOTA */
  --green: #006949;          /* VERDE */

  /* ---- Neutral ramp (derived from black/off-white for UI chrome) ---- */
  --ink-900: #000000;
  --ink-700: #2b2b29;
  --ink-500: #5a5a52;
  --ink-300: #9a9a8e;
  --ink-100: #d9d7c4;
  --paper-tint: #f5f2d8;     /* off-white, slightly deepened for surfaces */

  /* ---- Semantic aliases ---- */
  --bg: var(--black);              /* default brand background */
  --bg-paper: var(--off-white);    /* light editorial background */
  --surface-card: var(--off-white);
  --surface-card-dark: #111110;    /* near-black raised block on black */
  --border-subtle: rgba(255, 253, 225, 0.16);  /* hairline on dark */
  --border-ink: rgba(0, 0, 0, 0.12);            /* hairline on light */

  --text-strong: var(--black);     /* body & titles on light */
  --text-muted: #6a6a5f;           /* secondary text on light */
  --text-on-dark: var(--off-white);/* text on black */
  --text-on-dark-muted: rgba(255, 253, 225, 0.62);

  /* Accent defaults — swap per composition; lime reads as the "active" accent */
  --accent: var(--lime);
  --accent-warm: var(--terracotta);
  --accent-quiet: var(--mint);

  /* Focus ring */
  --focus-ring: #006949;
}


/* ===========================================================================
   TYPOGRAPHY — Adriano Barboza
   Primary: Space Grotesk. Titles & subtitles ALWAYS UPPERCASE.
   Body & long-form text ALWAYS lowercase / sentence case (set lowercase).
   Support: Goudy StM, used in ITALIC and sparingly — quotes, thoughts,
   footnotes, small emphasis.
   Scale from the brand book (px @ design size): Display 100 / Título01 64 /
   Subtítulo01 42 / Título02 32 / Subtítulo02 24 / Corpo 16 / Citação 12 /
   Legenda 10. Body line-height 1.4, letter-spacing 0.
   =========================================================================== */

:root {
  /* ---- Families ---- */
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Goudy StM", "Sorts Mill Goudy", Georgia, serif;

  /* ---- Weights (Space Grotesk variable) ---- */
  --fw-light: 300;    /* @kind font */
  --fw-regular: 400;  /* @kind font */
  --fw-medium: 500;   /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold: 700;     /* @kind font */

  /* ---- Type scale (rem, 1rem = 16px) ---- */
  --fs-display: 6.25rem;   /* 100 */
  --fs-title-1: 4rem;      /* 64  */
  --fs-subtitle-1: 2.625rem;/* 42 */
  --fs-title-2: 2rem;      /* 32  */
  --fs-subtitle-2: 1.5rem; /* 24  */
  --fs-body: 1rem;         /* 16  */
  --fs-quote: 0.75rem;     /* 12  */
  --fs-caption: 0.625rem;  /* 10  */

  /* ---- Line heights ---- */
  --lh-tight: 1.02;        /* @kind font */ /* display / large titles */
  --lh-snug: 1.15;         /* @kind font */
  --lh-body: 1.4;          /* @kind font */ /* brand default for running text */

  /* ---- Letter spacing ---- */
  --ls-display: -0.02em;   /* large grotesque tightens slightly  @kind font */
  --ls-title: -0.01em;     /* @kind font */
  --ls-eyebrow: 0.14em;    /* uppercase labels open up  @kind font */
  --ls-body: 0;            /* @kind font */ /* brand spec: 0 */
}

/* ---- Optional utility classes (consumers may use directly) ---- */
.t-display {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}
.t-title-1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-title-1);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
}
.t-subtitle-1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-subtitle-1);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}
.t-title-2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-title-2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
}
.t-subtitle-2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-subtitle-2);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}
.t-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-quote);
  line-height: 1.2;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.t-body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}
.t-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: var(--fs-subtitle-2);
  line-height: 1.35;
}
.t-caption {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-caption);
  line-height: 1.3;
  letter-spacing: 0.02em;
}


/* ===========================================================================
   SPACING, RADII, SHADOW — Adriano Barboza
   The system is built on the BENTO GRID: modular blocks, border-radius 50px.
   Layouts are gap-driven (the brand grid runs margins 0 / spacing 0 at the
   document edge, but bento blocks sit apart with a consistent gutter).
   =========================================================================== */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */

  /* Bento gutter — the standard gap between modular blocks */
  --bento-gap: 1rem;

  /* ---- Radii ---- */
  /* Brand bento blocks use a generous 50px radius. Scaled aliases below keep
     smaller controls proportional to their size. */
  --radius-bento: 50px;     /* canonical brand block radius */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;        /* default for cards / inputs in dense UI */
  --radius-sm: 10px;
  --radius-pill: 999px;     /* chips, buttons, tags */

  /* ---- Borders ---- */
  --border-width: 1px;
  --border-width-bold: 2px;

  /* ---- Shadows ----
     The brand is flat and editorial: color and structure create hierarchy,
     not heavy shadows. Use shadows only for true overlays (dialogs, menus). */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-overlay: 0 24px 60px -20px rgba(0, 0, 0, 0.45);

  /* ---- Motion ----
     Calm, intentional. Short fades and eased moves; no bounce, no spring. */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);          /* @kind other */
  --dur-fast: 120ms;  /* @kind other */
  --dur-base: 200ms;  /* @kind other */
  --dur-slow: 320ms;  /* @kind other */

  /* ---- Layout ---- */
  --container-max: 1200px; /* @kind spacing */
  --container-pad: 2rem;   /* @kind spacing */
}


/* ---- estilos da página ---- */

* { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--black);
    font-family: var(--font-sans);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
  }
  #app { min-height: 100vh; }
  section { scroll-margin-top: 84px; }
  a { color: inherit; }
  img { max-width: 100%; }

  /* shared editorial primitives */
  .ab-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-sans); font-size: 11px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
  }
  .ab-eyebrow::before {
    content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.5;
  }
  .ab-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

  /* No horizontal bleed on small screens; let grid/flex columns shrink below
     their content's intrinsic size (fixes the portrait image overflowing). */
  html, body { overflow-x: hidden; }
  .ab-about-grid > * { min-width: 0; }
  .ab-about-grid img { max-width: 100%; min-width: 0; }

  /* Portrait slot reads as an intentional dark editorial frame */
  #sobre image-slot::part(frame) { background: #14140f; }
  #sobre image-slot::part(empty) { color: rgba(255,253,225,0.8); }

  /* entrance — resolved state is the BASE (always visible). The pre-animation
     hidden state is opt-in: only when <html class="ab-anim"> is present (added
     by JS at load, and only when motion is allowed). So print / no-JS /
     reduced-motion / screenshot always render the resolved state. The reveal
     uses an animation with fill-mode:both so the end (visible) state holds. */
  html.ab-anim .ab-rise { opacity: 0; }
  html.ab-anim .ab-rise.ab-in { animation: abRise 640ms var(--ease-out) both; }
  @keyframes abRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }/* ---- regras do shell estático ---- */
.ab-view{display:none}
.ab-view.is-active{display:block}
[data-post]{cursor:pointer}
header.ab-scrolled{background:rgba(0,0,0,.9)!important;backdrop-filter:blur(10px)!important;border-bottom:1px solid var(--border-subtle)!important}
header.ab-open .ab-nav-desktop{display:flex!important;flex-direction:column;align-items:flex-start;gap:16px;width:100%;padding:16px 0 6px}

/* ---- estilos das seções (extraídos do markup) ---- */
@media (max-width: 860px) {
          .ab-nav-desktop { display: none !important; }
          .ab-burger { display: inline-flex !important; }
          .ab-lang-desktop { display: none !important; }
        }
        @media (min-width: 861px) {
          .ab-mobile-menu { display: none !important; }
          .ab-lang-desktop { display: inline-flex !important; }
        }
@media (max-width: 900px) {
          .ab-hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
        }
@media (max-width: 820px) {
          .ab-stats { grid-template-columns: 1fr !important; }
          .ab-stats > div { border-left: none !important; border-top: 1px solid var(--border-subtle); }
          .ab-stats > div:first-child { border-top: none; }
        }
.ab-about-cards > * { min-width: 0; }
        @media (max-width: 900px) {
          .ab-about-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
        }
        @media (max-width: 560px) {
          .ab-about-cards { grid-template-columns: 1fr !important; }
        }
@media (max-width: 1040px) {
          .ab-traj-grid { grid-template-columns: repeat(3, 1fr) !important; }
          .ab-traj-cell:nth-child(4) { border-left: none !important; }
          .ab-traj-cell:nth-child(4), .ab-traj-cell:nth-child(5) { border-top: 1px solid var(--border-subtle); }
        }
        @media (max-width: 620px) {
          .ab-traj-grid { grid-template-columns: repeat(2, 1fr) !important; }
          .ab-traj-cell { border-top: 1px solid var(--border-subtle); }
          .ab-traj-cell:nth-child(odd) { border-left: none !important; }
          .ab-traj-cell:nth-child(1), .ab-traj-cell:nth-child(2) { border-top: none; }
        }
        @media (max-width: 440px) {
          .ab-traj-grid { grid-template-columns: 1fr !important; }
          .ab-traj-cell { border-left: none !important; border-top: 1px solid var(--border-subtle); }
          .ab-traj-cell:first-child { border-top: none; }
        }
.ab-diss > * { min-width: 0; }
        @media (max-width: 900px) { .ab-areas-grid { grid-template-columns: repeat(2, 1fr) !important; } }
        @media (max-width: 620px) {
          .ab-diss { padding: 30px 24px !important; }
          .ab-diss > div { max-width: 100% !important; }
          .ab-diss button {
            max-width: 100% !important; white-space: normal !important;
            height: auto !important; min-height: 0 !important;
            padding-top: 14px !important; padding-bottom: 14px !important;
            line-height: 1.25 !important; text-align: center;
          }
        }
        @media (max-width: 560px) { .ab-areas-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 900px) { .ab-contato-grid { grid-template-columns: 1fr !important; gap: 40px !important; } }
        section#contato input:focus, section#contato textarea:focus { border-color: var(--green) !important; box-shadow: 0 0 0 3px rgba(0,105,73,0.4); }
@media (max-width: 760px) { .ab-blog-grid { grid-template-columns: 1fr !important; } }