@font-face {
  font-family: "Andika";
  src: url("fonts/andika-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Andika";
  src: url("fonts/andika-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F8FC;
  --ink: #1F2E3A;
  --ink-soft: #4A5E70;
  --rule: #6FA6C8;
  --margin-red: #E0485B;
  --link: #1F5F82;

  --margin-x: clamp(1.1rem, 6vw, 5rem);
  --gutter: clamp(1rem, 3vw, 2.5rem);

  color-scheme: light;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Andika", "Trebuchet MS", Verdana, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem) clamp(1.25rem, 3vw, 2rem)
           calc(var(--margin-x) + var(--gutter));
  overflow-x: clip;
}

/* A margem vermelha do caderno */
.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--margin-x);
  width: 2px;
  background: var(--margin-red);
}

p, address {
  margin: 0;
}

.logo {
  display: block;
  width: min(100%, 28rem);
  height: auto;
}

/* "Brevemente." escrito na pauta de duas linhas */
.hero {
  margin: clamp(2rem, 8vh, 5rem) 0 0;
  font-size: inherit;
  font-weight: inherit;
}

.hero-svg {
  display: block;
  width: min(100%, 58rem);
  height: auto;
  overflow: visible;
}

.hero-text {
  font-family: "Andika", "Trebuchet MS", Verdana, system-ui, sans-serif;
  font-weight: 700;
  font-size: 200px;
  fill: var(--ink);
}

.rule {
  stroke: var(--rule);
  stroke-width: 2.5;
}

.rule-x {
  stroke-width: 2;
  opacity: 0.85;
}

/* Uma folha de papel que desliza e deixa a palavra aparecer da esquerda para a direita */
.hero-cover {
  fill: var(--paper);
  pointer-events: none;
  transform-box: fill-box;
  animation: write 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}

@keyframes write {
  from {
    transform: translateX(0);
    visibility: visible;
  }
  99% {
    visibility: visible;
  }
  to {
    transform: translateX(1300px);
    visibility: hidden;
  }
}

.lede {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.375rem);
  line-height: 1.55;
}

.contact {
  margin-top: 2.25rem;
  max-width: 34rem;
}

.contact a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

.contact a:hover {
  text-decoration-thickness: 3px;
}

.contact a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
  border-radius: 2px;
}

.where {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-style: normal;
  font-size: 1rem;
}

.note {
  margin-top: auto;
  padding-top: 4rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cover {
    display: none;
  }
}
