/* Self-hosted reading/UI face, with real variable weights and italics. */
@font-face {
  font-family: "Mariana Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3/source-sans-3-v20-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Mariana Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3/source-sans-3-v20-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Mariana Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3/source-sans-3-v20-latin-ext-italic-variable.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Mariana Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3/source-sans-3-v20-latin-italic-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Editorial headings keep the approved Manrope family and weight. */
@font-face {
  font-family: "Mariana Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope/manrope-v20-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Mariana Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope/manrope-v20-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-brand-lime: #c1e968;
  --color-action-hover: #9ff23f;
  --color-brand-olive: #48552b;
  /* Darkened brand-lime derivative, reserved for large headings on pale surfaces. */
  --color-heading-accent-on-light: #648620;
  --color-brand-olive-dark: #2d381c;
  --color-whatsapp: #16ad50;
  --color-whatsapp-hover: #139c47;
  --color-whatsapp-hover-saturated: #078939;
  --color-bg-warm: #fbf8f1;
  --color-panel-warm: #fdfbf6;
  --color-ink: #20251e;
  --color-muted: #5e665b;
  --color-deep-green: #07130c;
  --color-deep-green-soft: #142016;
  --color-border: rgba(72, 85, 43, 0.18);
  --color-white-warm: #fffdf8;
  --shadow-soft: 0 18px 50px rgba(38, 45, 28, 0.1);
  --radius-small: 12px;
  --radius-medium: 22px;
  --radius-large: 34px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 52px);
  --section-space: clamp(76px, 10vw, 144px);
  --font-sans: "Mariana Source Sans 3", Arial, sans-serif;
  --font-heading: "Mariana Manrope", "Mariana Source Sans 3", Arial, sans-serif;
  --heading-weight: 800;
  --weight-copy: 400;
  --weight-link: 500;
  --weight-label: 600;
  --weight-subheading: 700;
  --weight-button: 700;
  --font-editorial: Georgia, "Times New Roman", serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--color-bg-warm);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: var(--weight-copy);
  font-synthesis-weight: none;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@supports (padding: env(safe-area-inset-top)) {
  :root {
    --gutter: max(clamp(20px, 4vw, 52px), env(safe-area-inset-left), env(safe-area-inset-right));
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }
}

body.admin-bar {
  --admin-bar-offset: 32px;
}

img,
picture,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.entry-content a,
.about__bio a,
.office__lead a,
.office__support a {
  font-weight: var(--weight-link);
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: inherit;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

ul,
ol {
  margin-block-start: 0;
}

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin-inline: auto;
}

main > section[id],
footer[id] {
  scroll-margin-top: 86px;
}

@media (min-width: 992px) {
  html {
    scroll-padding-top: 0;
  }

  main > section[id],
  footer[id] {
    scroll-margin-top: 86px;
  }
}

/*
 * Desktop: concentra todas as seções no mesmo eixo visual. O valor máximo
 * corresponde a 2,5 vezes o gutter desktop anterior (52px), sem alterar a
 * área útil de tablets e celulares.
 */
@media (min-width: 992px) {
  :root {
    --gutter: clamp(96px, 10vw, 130px);
  }
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--color-brand-lime);
  outline-offset: 4px;
}

::selection {
  background: var(--color-brand-lime);
  color: var(--color-brand-olive-dark);
}

@media (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
