
:root {
  --paper: #f5f3ed;
  --ink: #202932;
  --muted: #59626b;
  --line: #c9cac7;
  --blue: #1d4bb5;
  --accent: #d66c3a;
  --font: "Roboto", Arial, sans-serif;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #d8e0f9;
  color: var(--blue);
}

/* ESTRUTURA */

.page {
  width: 100%;
  max-width: 1680px;
  min-height: 100vh;
  margin-inline: auto;
  padding-inline: 5.25%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* INTRODUÇÃO */

.intro {
  display: grid;
  grid-template-columns:
    minmax(0, 1.26fr)
    minmax(330px, 0.74fr);
  align-items: center;
  gap: 5.2%;
  padding-block: 78px 92px;
  flex: 1;
}

.intro-main {
  width: 100%;
  min-width: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.095em;
}

.kicker-icon {
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
}

/* TÍTULO */

h1 {
  margin: 31px 0 55px;

  font-size: clamp(55px, 6.25vw, 109px);
  font-weight: 900;
  letter-spacing: -0.078em;
  line-height: 0.99;
}

.h1-dot {
  color: var(--accent);
}

.outlined-line {
  color: transparent;
  -webkit-text-stroke: 1.65px var(--ink);
}

/* MANIFESTO */

.intro-bottom {
  width: 100%;
  max-width: 750px;

  border-top: 1px solid var(--ink);
  padding-top: 25px;
}

.manifesto {
  margin: 0;

  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

/* DIAGRAMA */

.diagram {
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 530px;

  display: flex;
  flex-direction: column;
  align-self: stretch;

  background: #e7e9e4;
  border: 1px solid #b7bcb6;

  overflow: hidden;
}

/* CABEÇALHO E RODAPÉ DO DIAGRAMA */

.diagram-top,
.diagram-foot {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 18px 19px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.095em;
}

.diagram-top {
  border-bottom: 1px solid #bac0ba;
}

.diagram-top span:last-child {
  color: var(--blue);
}

.diagram-foot {
  margin-top: auto;
  border-top: 1px solid #bac0ba;
}

/* ÁREA INTERNA */

.diagram-field {
  position: absolute;
  inset: 50px 0;

  overflow: hidden;

  background-image:
    linear-gradient(
      to right,
      rgba(71, 91, 105, 0.11) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(71, 91, 105, 0.11) 1px,
      transparent 1px
    );

  background-size: 31px 31px;
}

/* EIXOS CENTRAIS */

.axis-h,
.axis-v {
  position: absolute;
  background: #b3b9b6;
}

.axis-h {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.axis-v {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

/* FORMAS GEOMÉTRICAS */

.draft-frame {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 66%;
  aspect-ratio: 1;

  border: 1px solid #a4b0af;

  transform: translate(-50%, -50%);
  transform-origin: center;
}

.draft-one {
  border-radius: 50%;
}

.draft-two {
  width: 48%;
  border-color: #9ca9ae;

  transform: translate(-50%, -50%) rotate(45deg);
}

/* SÍMBOLO CENTRAL */

.figure-symbol {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 46%;
  aspect-ratio: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--blue);

  box-shadow: 13px 13px 0 rgba(28, 54, 99, 0.13);

  transform: translate(-50%, -50%);
  transform-origin: center;
}

/* LETRA J */

.fig-j {
  font-size: clamp(100px, 16vw, 265px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.11em;

  color: var(--paper);

  transform: translate(-8%, -4%);
}

/* DETALHE LARANJA */

.fig-pip {
  position: absolute;

  top: 13%;
  right: 14%;

  width: 17%;
  height: 17%;

  background: var(--accent);
}

/* MARCAÇÕES TÉCNICAS */

.index-text,
.crosshair {
  position: absolute;

  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;

  color: #587080;
}

.index-a {
  top: 8%;
  left: 6%;
}

.index-b {
  right: 6%;
  bottom: 8%;
}

.crosshair {
  font-size: 23px;
  font-weight: 400;
}

.crosshair-1 {
  top: 27%;
  left: 15%;
}

.crosshair-2 {
  top: 18%;
  right: 11%;
}

.crosshair-3 {
  bottom: 12%;
  left: 21%;
}

/* LINHAS DE MEDIÇÃO */

.measure-line {
  position: absolute;
  top: 50%;

  width: 11%;
  height: 1px;

  background: var(--blue);
}

.measure-left {
  left: 0;
}

.measure-right {
  right: 0;
}

/* RODAPÉ */

.footer {
  min-height: 120px;
  margin-top: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid var(--ink);

  color: var(--muted);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.095em;
}

.footer-mark {
  color: var(--blue);

  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.1em;
  text-transform: lowercase;
}

/* NOTEBOOKS E TELAS INTERMEDIÁRIAS */

@media (max-width: 1080px) {
  .intro {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(290px, 0.8fr);

    gap: 35px;
  }

  h1 {
    font-size: clamp(54px, 6.2vw, 82px);
  }

  .diagram {
    min-height: 450px;
  }

  .fig-j {
    font-size: clamp(120px, 17vw, 200px);
  }
}

/* TABLETS E SMARTPHONES */

@media (max-width: 750px) {
  .page {
    padding-inline: 6%;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;

    gap: 43px;
    padding-block: 55px 64px;
  }

  .intro-main {
    width: 100%;
  }

  h1 {
    font-size: clamp(49px, 10.6vw, 79px);
    margin: 27px 0 34px;
  }

  .intro-bottom {
    padding-top: 20px;
  }

  .manifesto {
    font-size: 19px;
  }

  /*
   * CENTRALIZAÇÃO DO ASIDE
   *
   * O diagrama possui largura máxima e é
   * centralizado dentro do Grid.
   */

  .diagram {
    width: 100%;
    max-width: 480px;

    min-height: 0;
    height: auto;
    aspect-ratio: 1.05;

    margin-inline: auto;
    justify-self: center;
    align-self: center;
  }

  .diagram-field {
    inset: 50px 0;
  }

  .figure-symbol {
    width: 46%;
  }

  .fig-j {
    font-size: clamp(120px, 34vw, 190px);
  }

  .footer {
    min-height: 110px;
    padding-block: 23px;

    flex-wrap: wrap;
    gap: 8px 25px;
  }

  .footer-mark {
    margin-left: auto;
  }
}

/* SMARTPHONES PEQUENOS */

@media (max-width: 440px) {
  .page {
    padding-inline: 20px;
  }

  .intro {
    gap: 36px;
    padding-top: 42px;
    padding-bottom: 50px;
  }

  .kicker {
    font-size: 10px;
    gap: 8px;
  }

  h1 {
    font-size: clamp(39px, 10.55vw, 52px);
    margin: 26px 0 32px;
  }

  .intro-bottom {
    padding-top: 18px;
  }

  .manifesto {
    font-size: 21px;
  }

  .diagram {
    width: 100%;
    max-width: 380px;
    min-height: 0;
    aspect-ratio: 1 / 1;

    margin-inline: auto;
  }

  .diagram-top,
  .diagram-foot {
    padding: 14px 12px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .diagram-field {
    inset: 43px 0;
    background-size: 26px 26px;
  }

  .figure-symbol {
    width: 46%;
  }

  .fig-j {
    font-size: clamp(100px, 35vw, 150px);
  }

  .footer {
    font-size: 9px;
  }
}

/* TELAS MUITO ESTREITAS */

@media (max-width: 340px) {
  h1 {
    font-size: 36px;
  }

  .diagram-top {
    font-size: 8px;
  }

  .fig-j {
    font-size: 95px;
  }
}

/* ANIMAÇÕES */

@media (prefers-reduced-motion: no-preference) {
  .figure-symbol {
    animation: float-figure 6s ease-in-out infinite;
  }

  .fig-pip {
    animation: pip 3s ease-in-out infinite;
  }

  @keyframes float-figure {
    0%,
    100% {
      transform: translate(-50%, -50%);
    }

    50% {
      transform: translate(-50%, calc(-50% - 9px));
    }
  }

  @keyframes pip {
    50% {
      background: #f0a16a;
    }
  }
}
