/* Edition V2. Layout ranges: compact <= 680px, tablet <= 1000px, wide >= 1440px. */
:root {
  --paper: #f6f5f2;
  --ink: #101113;
  --surface: #1a1b1e;
  --stroke: 1px solid var(--edge);
  --gutter: clamp(18px, 5.2vw, 92px);
  --section-gap: clamp(40px, 6vw, 98px);
  --radius: 3px;
  --lift: 0 14px 32px #0004;
  --speed: 220ms;
  --ease: cubic-bezier(0.22, 0.65, 0.3, 1);
  --focus: #ff929a;
}
.wrap {
  max-width: 1670px;
  padding-inline: var(--gutter);
}
.mast {
  position: relative;
  z-index: 4;
  background: #101113;
}
.top {
  gap: clamp(20px, 4vw, 64px);
}
.wordmark img {
  height: 38px;
  width: 138px;
  object-fit: contain;
}
.top nav {
  margin: auto;
}
.agenda-link {
  white-space: nowrap;
  background: #b72230;
  border-color: #cf3543;
  color: #fff;
}
.agenda-link .i {
  color: inherit;
}
.folio,
.mag-block small,
.driver-card small,
.race-card small,
.quiet-state small,
.peer-links small,
.countdown small {
  font: 650 10px/1.5 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.folio {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ced0d2;
}
.folio i {
  display: block;
  width: 23px;
  height: 3px;
  background: var(--red);
  transform: skewX(-30deg);
}
.folio span {
  color: #84858a;
}
.section-poster em {
  color: var(--red);
  font-style: italic;
}
.section-poster p,
.mag-block p,
.driver-id p,
.quiet-state p {
  color: #c5c6c9;
  font-size: 15px;
  line-height: 1.55;
  max-width: 45ch;
}
.mag-block {
  margin-block: var(--section-gap);
}
.mag-block h2,
.quiet-state h2,
.driver-id h1,
.section-poster h1 {
  font-family: var(--display);
  letter-spacing: -0.025em;
}
.mag-block h2,
.quiet-state h2 {
  font-size: clamp(38px, 4.2vw, 68px);
  margin: 8px 0 16px;
}
.mag-block h2 span,
.driver-card span,
.peer-links a,
.race-link {
  color: #ff7580;
}
.editorial-index {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 5%;
  align-items: center;
}
.editorial-index header {
  border-top: 2px solid var(--red);
  padding-top: 20px;
}
.editorial-index header .textlink {
  margin-top: 16px;
}
.lead-story,
.rank-frame,
.driver-id {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  border-block: var(--stroke);
  padding-block: 18px;
}
.lead-art {
  background: #08090a;
}
.lead-art img {
  width: 100%;
  height: clamp(140px, 16vw, 260px);
  object-fit: contain;
}
.lead-story h3,
.rank-frame h3,
.race-card h3 {
  font-size: clamp(30px, 3.2vw, 52px);
  margin: 10px 0;
}
.lead-story span,
.driver-card span,
.race-link {
  font-size: 13px;
  font-weight: 650;
}
.lead-story small,
.rank-frame small,
.driver-card small {
  color: #fd9198;
}
.rank-deck {
  border-top: 3px solid var(--red);
  background: var(--surface);
}
.rank-frame {
  grid-template-columns: 1.25fr 1fr;
  padding: clamp(16px, 3vw, 44px);
  border: 0;
}
.rank-frame img {
  height: clamp(210px, 26vw, 400px);
  width: 100%;
  object-fit: contain;
  background: #101012;
}
.rank-frame .btn {
  margin-top: 18px;
}
.deck-controls {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding: 0 20px 18px;
}
.paddock-band,
.section-poster,
.quiet-state {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.paddock-band,
.section-poster {
  background:
    linear-gradient(90deg, #0a0b0eef 0%, #0a0b0ea0 43%, transparent 80%),
    url(capas/noite/paddock.webp) 72% 42% / cover,
    #191a1d;
  color: var(--paper);
}
.paddock-band {
  padding: clamp(36px, 5vw, 80px);
  border-left: 3px solid var(--red);
}
.section-poster {
  margin-inline: calc(-1 * var(--gutter));
  padding: clamp(42px, 5.3vw, 92px) var(--gutter);
  margin-bottom: 30px;
}
.section-poster h1,
.driver-id h1 {
  font-size: clamp(60px, 7vw, 112px);
  line-height: 0.92;
  margin: 16px 0;
}
.section-poster h1 em {
  color: var(--red);
}
.archive-poster {
  background-image:
    linear-gradient(90deg, #090a0df9 8%, #090a0db0 40%, #090a0d28 90%),
    url(brand/hero.webp);
  background-position:
    center,
    center 58%;
}
.event-poster-head {
  background-image:
    linear-gradient(90deg, #0a0b0eef 10%, #0a0b0e60 65%),
    url(brand/capa-v2.webp);
}
.race-card.event-tile {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  margin: 16px 0;
}
.race-visual {
  align-self: stretch;
  min-height: 145px;
  background: url(brand/hero.webp) 75% center/cover;
}
.race-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0e0e10;
}
.race-body {
  display: grid;
  justify-items: start;
  padding: clamp(16px, 2.5vw, 38px);
}
.race-card h3 {
  font-size: clamp(26px, 2.8vw, 44px);
}
.race-body p,
.race-card .race-body strong {
  font: 400 14px/1.5 system-ui;
  color: var(--muted);
}
.status {
  margin: 10px 0;
  font: 600 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: #342529;
  color: #ffb3ba;
  padding: 5px 7px;
}
.countdown {
  background: var(--surface);
  border-left: 3px solid var(--red);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.countdown strong {
  font: 700 30px var(--display);
}
.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}
.driver-card {
  border: var(--stroke);
  background: var(--surface);
  max-width: 440px;
  overflow: hidden;
}
.driver-card > div:last-child {
  padding: 20px;
}
.portrait {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    125deg,
    #1d1e21 0 16px,
    #202124 16px 17px
  );
  min-height: 160px;
}
.portrait img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
}
.portrait b {
  font: italic 700 110px var(--display);
  color: #8c8b8f;
}
.driver-id {
  grid-template-columns: minmax(120px, 0.65fr) 1fr;
  background: var(--surface);
  padding: clamp(16px, 3vw, 48px);
}
.driver-id .btn {
  margin-top: 20px;
}
.quiet-state {
  grid-column: 1/-1;
  border: var(--stroke);
  padding: clamp(22px, 4vw, 60px);
  background: linear-gradient(120deg, #1e1f23, #141518);
}
.quiet-state h3 {
  margin: 10px 0;
}
.peer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border-block: var(--stroke);
  padding: 18px 0;
  margin-top: 28px;
}
.about-page .prose {
  max-width: 680px;
  margin-inline: auto;
}
.about-page .prose h2 {
  margin-top: 14px;
}
.story {
  border-top: 2px solid #424348;
}
.story-art {
  border-radius: 0;
}
.foot {
  border-top: 2px solid #323336;
}
.foot-id {
  border-left: 3px solid var(--red);
  padding-left: 14px;
}
.filters {
  border-radius: var(--radius);
}
[data-results][aria-busy="true"] {
  opacity: 0.55;
}
.filter-state {
  color: #ffabb1;
  font-size: 12px;
}
.top nav a:hover,
.lead-story:hover h3 {
  color: #ff929b;
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root) {
    animation-duration: 120ms;
  }
  ::view-transition-new(root) {
    animation-duration: 200ms;
  }
  .reveal-in,
  [data-rank]:not([hidden]),
  .stage figure:not([hidden]),
  .result-enter {
    animation: rise-in 0.38s var(--ease) both;
  }
  .story,
  .driver-card,
  .race-card {
    transition:
      transform var(--speed) var(--ease),
      box-shadow var(--speed) var(--ease);
  }
  .story:is(:hover, :focus-within),
  .driver-card:is(:hover, :focus-visible),
  .race-card:is(:hover, :focus-visible) {
    transform: translateY(-3px);
    box-shadow: var(--lift);
  }
}
@keyframes rise-in {
  from {
    opacity: 0.45;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1000px) {
  .top {
    gap: 12px;
  }
  .top nav {
    gap: 13px;
  }
  .agenda-link {
    display: none;
  }
  .race-card.event-tile {
    grid-template-columns: 1fr;
  }
  .race-visual {
    height: 170px;
  }
  .editorial-index {
    grid-template-columns: 0.8fr 1.4fr;
  }
  .lead-story {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .top nav {
    margin: 0;
  }
  .menu-open nav {
    border-top: var(--stroke);
  }
  .menu-open nav a {
    background: transparent;
    border-bottom: var(--stroke);
  }
  .top {
    justify-content: space-between;
  }
  .wordmark img {
    width: 116px;
    height: 33px;
  }
  .editorial-index {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lead-story {
    grid-template-columns: 1fr 1fr;
  }
  .rank-frame,
  .driver-id {
    grid-template-columns: 1fr 1fr;
  }
  .folio {
    font-size: 9px;
  }
  .section-poster {
    margin-bottom: 18px;
  }
  .mag-block .headrow {
    align-items: center;
  }
}
@media (max-width: 520px) {
  .lead-story {
    gap: 14px;
  }
  .lead-story h3 {
    font-size: 25px;
  }
  .lead-story small {
    font-size: 9px;
  }
  .rank-frame {
    grid-template-columns: 1fr;
  }
  .driver-grid {
    grid-template-columns: 1fr 1fr;
  }
  .driver-card > div:last-child {
    padding: 12px;
  }
  .driver-card h3 {
    font-size: 24px;
  }
  .driver-id {
    grid-template-columns: 0.7fr 1fr;
    gap: 12px;
  }
  .driver-id h1 {
    font-size: 41px;
  }
  .section-poster h1 {
    font-size: 58px;
  }
  .race-card.event-tile {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .race-visual {
    height: auto;
  }
  .race-body {
    padding: 14px;
  }
  .mag-block .headrow {
    align-items: end;
  }
  .mag-block .headrow h2 {
    font-size: 37px;
  }
  .countdown {
    flex-wrap: wrap;
  }
}

/* A single published artwork gets the full editorial spread. */
@media (min-width: 761px) {
  .cards > .story:only-of-type {
    grid-column: 1/-1;
  }
  .cards > .story:only-of-type > a {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    background: var(--panel);
  }
  .cards > .story:only-of-type .story-info {
    padding: clamp(22px, 4vw, 64px);
  }
  .cards > .story:only-of-type h3 {
    font-size: clamp(35px, 4vw, 65px);
  }
  .cards > .story:only-of-type .story-art {
    height: clamp(230px, 27vw, 410px);
    aspect-ratio: auto;
  }
  .cards > .story:only-of-type .story-info::after {
    content: "Abrir publicação ↗";
    display: block;
    font-size: 14px;
    margin-top: 25px;
    color: #ffadb3;
  }
}
.grid-poster,
.paddock-band {
  background: #111214;
}
.grid-poster:before,
.paddock-band:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(-1);
  background:
    linear-gradient(90deg, transparent 5%, #11121420 32%, #111214 64%),
    url(capas/noite/paddock.webp) left 33%/62% auto no-repeat;
}
@media (max-width: 680px) {
  .grid-poster:before,
  .paddock-band:before {
    background-size:
      auto,
      87% auto;
  }
  .driver-id {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .driver-id .portrait {
    height: 170px;
    min-height: 0;
    background: #101113;
  }
  .driver-id h1 {
    font-size: clamp(38px, 10.5vw, 56px);
  }
  .driver-grid:has(> .driver-card:only-child) {
    grid-template-columns: 1fr;
  }
  .driver-card:only-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .driver-card:only-child .portrait {
    min-height: 120px;
  }
}

/* The photograph spans the viewport. Only its live caption follows the page grid. */
.section-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(272px, 32vw, 580px);
  margin-bottom: 30px;
  background-color: #191b1e;
}
.section-cover img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-focus, 66%) center;
}
.section-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(8 10 13 / 68%), rgb(8 10 13 / 32%) 39%, transparent 70%),
              linear-gradient(0deg, rgb(8 10 13 / 38%), transparent 62%);
}
.section-copy {
  padding-block: clamp(26px, 4.8vw, 80px);
  color: #faf9f7;
}
.section-copy h1 {
  font: 700 clamp(48px, 6.3vw, 106px)/.98 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 0;
}
.section-copy p {
  max-width: 46ch;
  margin: 12px 0 0;
  color: #ebecee;
  font-size: 1rem;
  line-height: 1.5;
}
.edition-resultados .section-cover { --cover-focus: 79%; }
.edition-pilotos .section-cover { --cover-focus: 48%; }
.edition-publicacoes .section-cover { --cover-focus: 80%; }
@media (max-width: 760px) {
  .section-cover {
    min-height: clamp(308px, 65vw, 378px);
    margin-bottom: 20px;
  }
  .section-cover::after {
    background: linear-gradient(0deg, rgb(7 9 12 / 88%), rgb(7 9 12 / 50%) 32%, transparent 70%);
  }
  .section-copy { padding-block: 22px; }
  .section-copy h1 { font-size: clamp(42px, 8vw, 60px); }
  .section-copy p { font-size: .94rem; margin-top: 7px; }
}
