@font-face {
  font-family: "HostGrotesk";
  src: url("../fonts/HostGrotesk/HostGrotesk-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 800;
}

@font-face {
  font-family: "HostGrotesk";
  src: url("../fonts/HostGrotesk/HostGrotesk-Italic-VariableFont_wght.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 800;
}

@font-face {
    font-family: 'Iosevka';
    src: url('/fonts/Iosevka/Iosevka.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Queriamos a Outfit para texto mas não tem itálicos  :(
*/

:root {
  --text: "HostGrotesk", sans-serif;
  --monospace: "Iosevka", monospace;
  --tilde-text: rgb(1, 47, 99); /* dar blue #012F63 */
  --tilde-link: rgb(254, 102, 123); /* #FE667B */
  --tilde-secondary: rgb(192, 194, 206); /* gray #C0C2CE */
  --tilde-white: rgb(255,255,255);
  --rounded: 0.25rem;
}

:root {
  border-top-color: var(--tilde-secondary);
}

body {
  font-size: max(1rem, 0.975vw);
  font-family: var(--text);
  font-weight: 400;
  text-rendering: optimizelegibility;
  line-height: 1.25;
  color: var(--tilde-text);
  background-color: var(--tilde-white);
}

h1 {
  font-size: clamp(1.65rem, 2.25vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.25rem, 1.4vw, 1.5rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.15rem, 1.15vw, 1.25rem);
  font-weight: 500;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 1.25rem;
}

@counter-style emdash {
  system: cyclic;
  symbols: "\2014";
  suffix: " ";
}

ul {
  list-style: emdash;
  margin-left: 1.25rem;
}

li {
  margin: 0.5rem 0 0;
}

nav ul {
  list-style: none;
  margin: 0;
}

.no-bullet {
  list-style: none;
  margin-left: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--tilde-secondary);
  margin: 1.5rem 0;
  padding: 0;
}

pre, code {
  font-size: 0.85rem;
  font-family: var(--monospace);
  font-weight: 400;
  border-radius: var(--rounded);
}

pre {
  padding: 0.5rem;
}

p code,
li code {
  display: inline-block;
  padding: 0 0.25rem;
}

pre.ascii {
  color: var(--tilde-secondary);
  margin: 0;
  padding: 0;
  overflow: visible;
}

blockquote {
  color: var(--tilde-link);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 300;
  border-left: 0;
  border-right: 1px solid var(--tilde-link);
  border-bottom: 1px solid var(--tilde-link);
  padding: 1rem;
  margin-top: 1.25rem;
  border-bottom-right-radius: var(--rounded);
  box-shadow: 3px 3px 0 var(--tilde-secondary);
}

blockquote p:first-child {
  margin-top: 0;
}

.cols-2 {
  column-count: 2;
}

.cols-3 {
  column-count: 3;
}

.cols-4 {
  column-count: 4;
}

.cols-5 {
  column-count: 5;
}

a {
  color: var(--tilde-link);
  text-decoration-color: var(--tilde-link);
}

a:hover {
  text-decoration-color: var(--tilde-text);
}

a.visited {
  text-decoration-color: var(--tilde-secondary);
}

.page-wrapper {
  margin: 2rem 0;
}

header {
  margin-bottom: 1rem;
}

header p:first-child {
  margin-top: 0;
}

#quem li {
  font-size: max(0.85rem, 0.85vw);
  line-height: 1;
  display: inline-block;
  margin: 0 0 0.3rem 0;
  padding: 0 0 0 0;
}

.button.outline {
  display: inline-block;
  padding: 0.25rem 0.45rem;
  color: var(--tilde-text);
  background-color: transparent;
  border: 0.5px solid var(--tilde-text);
  border-radius: var(--rounded);
}

.button.outline:hover {
  border-color: var(--tilde-link);
}

#emailtilde strong {
  font-weight: 500;
  display: block;
}

.footer-flex {
  font-size: 0.85rem;
  display: flex;
  flex-direction: row-reverse;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.footer-flex pre.ascii {
  color: var(--tilde-secondary);
  background-color: transparent;
}

@media screen and (max-width: 800px) {
  .row {
    display: block;
  }
}

/* Documentation
*/

nav {
  font-size: 0.785rem;
  line-height: 1;
}

nav a {
  color: var(--tilde-text);
}

.docs-main-wrapper {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0,0.15fr) minmax(0,1fr) minmax(0,0.25fr);
}

.sidebar  {
  grid-column: 1;
  grid-row: 1;
}

.toc-container {
  grid-column: 3;
  grid-row: 1;
  position: sticky;
  top: 4rem;
  overflow: auto;
  z-index: 200;
  height: calc(100vh - 4rem);
}
