@font-face {
  font-family: Archivo;
  src: url("assets/archivo.ttf") format("truetype");
  font-weight: 400 650;
  font-display: swap;
}

@font-face {
  font-family: "Pirata One";
  src: url("assets/fontes/pirata.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fontes/outfit.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #080807;
  --orange: #fc4104;
  --paper: #f7efdf;
  --gutter: clamp(24px, 5vw, 88px);
  color: var(--ink);
  font: 400 100% / 1.4 Archivo, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, h1, p { margin: 0; }
img { display: block; }
.lockup {
  display: inline-grid;
  justify-items: center;
  width: var(--logo-width, 145px);
  gap: 8px;
}
.lockup img { width: 100%; height: auto; }
.lockup span {
  font-size: var(--climbing-size, 10px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
}

:root {
  --background: #10100f;
  --headline: #ff5720;
  --caption: #f7edde;
  color-scheme: dark;
  background: var(--background);
}
.shortlist { background: var(--background); color: var(--caption); }
.flag-hero {
  --type-scale: .75;
  --title-size: clamp(50px, 7.05vw, 150px);
  --caption-size: clamp(17px, 1.63vw, 29px);
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 240px;
  overflow: hidden;
  isolation: isolate;
}
.wind {
  --flag-anchor: .69;
  position: absolute;
  inset: 3% 0 5%;
}
.flag-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.print-fallback {
  position: absolute;
  top: 50%; left: 69%; transform: translate(-50%,-50%);
  width: 58.8%; height: 69.75%; object-fit: contain;
}
.wind:has([data-rendered]) .print-fallback { visibility: hidden; }
.flag-message {
  position: absolute; top: 50%; left: 6.4%; transform: translateY(-50%);
  width: 32.5%;
}
.flag-message .lockup {
  --logo-width: clamp(54px, 5.5vw, 76px);
  --climbing-size: clamp(6px, .52vw, 7.5px);
  display: grid; gap: 3px; margin-bottom: clamp(11px, 1.2vw, 18px);
}
.flag-message .lockup span { letter-spacing: .08em; text-indent: .08em; }
[data-title="pirata"] .flag-message .lockup {
  --logo-width: clamp(67.5px, 6.875vw, 95px);
  --climbing-size: clamp(7.5px, .65vw, 9.375px);
  gap: 3.75px;
  margin-bottom: calc(clamp(11px, 1.2vw, 18px) + 4px);
}
.flag-title {
  margin: 0; color: var(--headline); font: 400 calc(var(--title-size) * var(--type-scale))/1.02 "Pirata One", Archivo, sans-serif;
  white-space: nowrap;
}
.flag-caption {
  margin: clamp(14px, 1.55vw, 26px) 0 0; max-width: 31ch;
  font-size: calc(var(--caption-size) * var(--type-scale) + 4px); color: var(--caption);
  line-height: 1.35; letter-spacing: -.02em; text-wrap: pretty;
}
.shortlist .flag-caption { font-family: Outfit, sans-serif; }
@media (max-width: 760px) and (orientation: portrait), (max-aspect-ratio: 1/1) {
  .flag-hero { display: grid; align-content: center; justify-items: stretch; gap: clamp(20px, 5svh, 56px); }
  .wind { --flag-anchor: .5; position: relative; inset: auto; width: 100%; height: min(76vw, 51svh); }
  .print-fallback { left: 50%; width: 73.5%; height: 69.75%; }
  .flag-message { position: static; transform: none; width: auto; padding: 0 6.4%; }
  .flag-hero { --title-size: clamp(50px, 15.8vw, 108px); --caption-size: clamp(17px, 4.65vw, 26px); }
  .flag-caption { max-width: 29ch; margin-top: clamp(14px, 3.6vw, 28px); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .flag-hero { --title-size: min(7vw, 70px); --caption-size: clamp(14px, 2vw, 17px); }
}

.flag-title { letter-spacing: -.035em; font-synthesis: none; }
