:root {
  color-scheme: light;
  --fundo: #fdfdfd;
  --marinho: #081e3b;
  --azul: #087dc0;
  --ilustracao: url("/meridiano-portal-ilustracao.png");
  font-family: "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--marinho);
  background: var(--fundo);
}

* { box-sizing: border-box; }

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

.cabecalho {
  display: flex;
  justify-content: end;
  min-width: 0;
  padding: clamp(.45rem, 1.45svh, 1rem) clamp(.6rem, 2.1vw, 2rem) 0;
}

.arquivo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .16rem;
  max-width: 100%;
  padding: .17rem .21rem .17rem .68rem;
  border: 1px solid #cddfea;
  border-radius: 2rem;
  background: #f7fbfd;
  font-size: .875rem;
  color: #355573;
}

.arquivo span { margin-right: .34rem; }

.arquivo a {
  display: grid;
  place-items: center;
  min-width: 2.85rem;
  min-height: 2.1rem;
  padding: .16rem .48rem;
  border-radius: 1.5rem;
  color: #075580;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.arquivo a:is(:hover, :focus-visible) {
  background: #085582;
  color: #fff;
  box-shadow: 0 2px 5px #0b568335;
}

a:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

.portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  min-width: 0;
  padding: clamp(.5rem, 1svh, 1rem) .65rem clamp(.55rem, 1.55svh, 1.45rem);
  text-align: center;
}

.globo {
  width: min(66vw, 108svh, 72rem);
  aspect-ratio: 1226 / 328;
  background: var(--ilustracao) no-repeat center 3.9% / 136.3% auto;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 93%, transparent),
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}

h1 {
  margin: clamp(-1rem, -1.35svh, -.18rem) 0 0;
  color: #081a37;
  font-size: clamp(1.25rem, min(6.45vw, 10.7svh), 7rem);
  font-weight: 400;
  letter-spacing: -.016em;
  line-height: 1.04;
  white-space: nowrap;
}

h1 span { color: #39485c; font-size: .77em; letter-spacing: -.04em; }

.sublinhado {
  width: clamp(3rem, 8vw, 8.5rem);
  height: clamp(.19rem, .55svh, .4rem);
  margin-top: clamp(.55rem, 1.5svh, 1.3rem);
  background: var(--azul);
}

.projeto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.6rem, 1.4vw, 1.7rem);
  width: min(65vw, 67rem);
  margin: clamp(.55rem, 2.2svh, 1.6rem) 0 0;
  font-size: clamp(1rem, min(1.62vw, 2.8svh), 1.85rem);
  line-height: 1.25;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.projeto::before, .projeto::after {
  content: "";
  max-width: 9rem;
  flex: 1 1 auto;
  height: 2px;
  background: linear-gradient(to left, var(--azul), transparent);
}
.projeto::after { transform: scaleX(-1); }

.visitar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(36vw, 55svh, 34rem);
  min-width: 13rem;
  min-height: clamp(2.75rem, 7.3svh, 4.75rem);
  margin-top: clamp(.85rem, 3.55svh, 2.45rem);
  padding: .35em 1.7em;
  border-radius: 4rem;
  background: linear-gradient(#0b639f, #064475);
  color: #fff;
  font-size: clamp(1.05rem, min(2.45vw, 4.3svh), 2.6rem);
  font-weight: 700;
  line-height: 1.16;
  text-decoration: none;
}

.visitar::after {
  position: absolute;
  right: 1em;
  width: .42em;
  height: .42em;
  border: solid currentColor;
  border-width: .10em .10em 0 0;
  transform: rotate(45deg);
  content: "";
}
.visitar:hover { background: linear-gradient(#0a548c, #05385e); }

.ondas {
  height: clamp(2.25rem, min(9.5vw, 15svh), 9.5rem);
  background: var(--ilustracao) no-repeat center bottom / max(100%, 44rem) 534%;
  mix-blend-mode: multiply;
}

@media (max-width: 700px) {
  .globo {
    width: min(68vw, 53svh, 22rem);
    aspect-ratio: 595 / 328;
    background-size: 280.84% auto;
    mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 93%, transparent);
  }
  h1 { font-size: clamp(1.2rem, min(7.85vw, 9.2svh), 3.5rem); }
  .projeto { width: min(100%, 25rem); letter-spacing: .14em; }
  .projeto::before, .projeto::after { max-width: 1.8rem; }
  .visitar { width: min(80vw, 19rem); font-size: clamp(1.05rem, 4.65vw, 1.35rem); }
}

@media (prefers-reduced-motion: reduce) {
  .arquivo a { transition: none; }
}
