:root {
  --navy: #0b4165;
  --navy-2: #143a58;
  --navy-3: #062f4b;
  --blue: #1e5b91;
  --green: #4c9966;
  --green-dark: #287a4d;
  --orange: #f4ad2f;
  --cream: #f4ede0;
  --white: #fff;
  --ink: #071e31;
  --header-height: 106px;
  --page-pad: clamp(24px, 5vw, 82px);
  --transition: 420ms cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box
}

html {
  min-width: 320px;
  background: var(--navy)
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  font-family: Inter, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit
}

a {
  color: inherit;
  text-decoration: none
}

button {
  border: 0
}


.site-shell {
  min-height: 100vh;
  isolation: isolate
}

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  background: rgba(5, 40, 64, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.social-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 38px)
}

.social-nav a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: .94;
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.social-nav a:hover,
.social-nav a:focus-visible {
  color: var(--orange);
  opacity: 1;
  transform: translateY(-2px)
}

.social-nav svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round
}

.social-nav svg .fill {
  fill: currentColor;
  stroke: none
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand img {
  display: block;
  width: clamp(120px, 13vw, 150px);
  height: auto
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, .82fr);
  align-items: center;
  gap: clamp(44px, 6vw, 112px);
  padding: clamp(36px, 4.2vh, 70px) var(--page-pad) clamp(34px, 5vh, 74px);
  overflow: hidden;
}

.background-shape {
  position: absolute;
  z-index: -3;
  pointer-events: none
}

.shape-left {
  width: min(58vw, 940px);
  height: min(63vw, 770px);
  left: -8vw;
  top: 8%;
  border-radius: 44% 56% 56% 44% / 54% 42% 58% 46%;
  background: linear-gradient(145deg, rgba(30, 91, 145, .32), rgba(5, 44, 71, .08));
  transform: rotate(-7deg);
}

.shape-right {
  width: min(24vw, 390px);
  height: min(80vh, 760px);
  right: -12vw;
  top: 2%;
  border-radius: 54% 0 0 46% / 46% 0 0 54%;
  background: linear-gradient(160deg, rgba(30, 91, 145, .20), rgba(10, 55, 85, .06));
}

.line-art {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 2px solid var(--orange);
  opacity: .95
}

.line-art-left {
  width: 250px;
  height: 340px;
  left: 3.6vw;
  top: 28%;
  border-right: 0;
  border-radius: 60% 0 0 55%;
  transform: rotate(-9deg);
}

.dot-grid {
  position: absolute;
  z-index: -1;
  right: 1.9vw;
  top: 40%;
  width: 122px;
  height: 130px;
  background-image: radial-gradient(circle, #fff 2px, transparent 2.8px);
  background-size: 28px 28px;
  opacity: .9;
}

.illustration-panel {
  position: relative;
  min-width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-panel img {
  width: min(100%, 450px);
  max-height: 68vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(2, 24, 39, .10));
}



@media (max-width:1120px) {
  :root {
    --header-height: 92px
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 560px);
    gap: 32px
  }
}

@media (max-width:820px) {
  :root {
    --header-height: 82px;
    --page-pad: 24px
  }

  .site-header {
    padding-inline: 22px
  }

  .social-nav {
    gap: 20px
  }

  .social-nav a {
    width: 21px;
    height: 21px
  }

  .brand img {
    width: 150px
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 22px 42px;
  }

  .illustration-panel {
    display: none
  }

  .shape-left {
    width: 120vw;
    height: 105vw;
    left: -55vw;
    top: 22%
  }

  .shape-right {
    width: 62vw;
    height: 85vh;
    right: -38vw
  }

  .line-art-left {
    display: none
  }

  .dot-grid {
    right: -30px;
    top: 28%;
    opacity: .45
  }
}

@media (max-width:520px) {
  :root {
    --header-height: 72px
  }

  .site-header {
    padding-inline: 18px
  }

  .social-nav {
    gap: 16px
  }

  .social-nav a {
    width: 19px;
    height: 19px
  }

  .brand img {
    width: 116px
  }

  .hero {
    padding: 24px 16px 32px
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important
  }
}

/* Capa da revista como imagem clicável */
.magazine-cover-link {
  width: min(100%, 42vw, calc((100dvh - var(--header-height) - 72px) * .7075));
  max-width:400px;
  justify-self: center;
  align-self: center;
  display: block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.magazine-cover-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.magazine-cover-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
  border-radius: 12px;
}

@media (min-width: 821px) and (max-width: 1120px) {
  .magazine-cover-link {
    width: min(46vw, calc((100dvh - var(--header-height) - 64px) * .7075));
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .magazine-cover-link {
    width: min(78vw, 390px, calc((100dvh - var(--header-height) - 72px) * .7075));
    min-width: 0;
    justify-self: center;
  }
}

/* ===== Ajustes de responsividade da HOME ===== */
@media (max-width: 820px) {
  html,
  body {
    min-height: 100%;
  }

  body {
    min-height: 100dvh;
  }

  .site-shell {
    min-height: 100dvh;
  }

  .site-header {
    min-height: var(--header-height);
    height: auto;
    gap: 18px;
    padding-block: 12px;
  }

  .social-nav {
    flex: 0 1 auto;
    gap: clamp(12px, 4vw, 20px);
  }

  .social-nav a {
    flex: 0 0 auto;
  }

  .brand {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .brand img {
    width: clamp(108px, 32vw, 138px);
    max-width: 100%;
  }

  .hero {
    min-height: calc(100dvh - var(--header-height));
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(22px, 4.5vh, 38px) 18px clamp(28px, 5vh, 44px);
    overflow: hidden;
  }

  .magazine-cover-link {
    width: min(78vw, 350px, calc((100dvh - var(--header-height) - 72px) * .7075));
    max-width: calc(100vw - 36px);
    margin: 0 auto;
    align-self: center;
  }

  .magazine-cover-image {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--header-height) - 72px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  .shape-left {
    width: 125vw;
    height: 110vw;
    left: -58vw;
    top: 18%;
    opacity: .72;
  }

  .shape-right {
    width: 68vw;
    height: 78vh;
    right: -45vw;
    top: 8%;
    opacity: .7;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 10px 14px;
    gap: 12px;
  }

  .social-nav {
    gap: clamp(10px, 3.4vw, 14px);
  }

  .social-nav a {
    width: 18px;
    height: 18px;
  }

  .brand img {
    width: clamp(98px, 30vw, 116px);
  }

  .hero {
    padding: 20px 14px 28px;
  }

  .magazine-cover-link {
    width: min(82vw, 320px, calc((100dvh - var(--header-height) - 54px) * .7075));
    max-width: calc(100vw - 28px);
  }

  .magazine-cover-image {
    max-height: calc(100dvh - var(--header-height) - 54px);
    border-radius: 9px;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 12px;
    gap: 10px;
  }

  .social-nav {
    gap: 9px;
  }

  .social-nav a {
    width: 17px;
    height: 17px;
  }

  .brand img {
    width: 94px;
  }

  .magazine-cover-link {
    width: min(84vw, 292px);
  }
}

/* Celulares na horizontal: prioriza altura disponível sem cortar a capa */
@media (max-width: 920px) and (max-height: 560px) and (orientation: landscape) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding-block: 7px;
  }

  .brand img {
    width: 100px;
  }

  .social-nav a {
    width: 17px;
    height: 17px;
  }

  .hero {
    min-height: calc(100dvh - var(--header-height));
    padding: 12px 20px 16px;
  }

  .magazine-cover-link {
    width: auto;
    max-width: min(46vw, 300px);
  }

  .magazine-cover-image {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - var(--header-height) - 28px);
  }
}
