@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/fraunces.woff2") format("woff2");
  font-display: swap;
  font-style: normal italic;
  font-weight: 100 900;
}

@font-face {
  font-family: "Karla";
  src: url("./assets/fonts/karla.woff2") format("woff2");
  font-display: swap;
  font-style: normal italic;
  font-weight: 200 800;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 500;
}

:root {
  color-scheme: dark;
  --bg: #140720;
  --surface: #1d0f31;
  --surface-raised: #271642;
  --surface-soft: #33205a;
  --text: #f5ecdd;
  --text-soft: #bcaad6;
  --text-dim: #9b89b9;
  --accent: #2ab2c8;
  --accent-strong: #6fd0de;
  --accent-ink: #082f36;
  --line: rgba(245, 236, 221, 0.14);
  --line-soft: rgba(245, 236, 221, 0.08);
  --shadow: rgba(6, 2, 12, 0.52);
  --paper: #f5ecdd;
  --paper-ink: #1d0f31;
  --focus: #ff992e;
  --radius: 10px;
  --display: Fraunces, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: Karla, Avenir, "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1200px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eee7f2;
  --surface: #f8f4f0;
  --surface-raised: #ffffff;
  --surface-soft: #e5daea;
  --text: #241536;
  --text-soft: #665574;
  --text-dim: #756780;
  --line: rgba(36, 21, 54, 0.16);
  --line-soft: rgba(36, 21, 54, 0.09);
  --shadow: rgba(56, 34, 74, 0.18);
  --paper: #fffaf3;
  --paper-ink: #241536;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #eee7f2;
    --surface: #f8f4f0;
    --surface-raised: #ffffff;
    --surface-soft: #e5daea;
    --text: #241536;
    --text-soft: #665574;
    --text-dim: #756780;
    --line: rgba(36, 21, 54, 0.16);
    --line-soft: rgba(36, 21, 54, 0.09);
    --shadow: rgba(56, 34, 74, 0.18);
    --paper: #fffaf3;
    --paper-ink: #241536;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 4;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 72px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand img {
  width: 168px;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  white-space: nowrap;
}

.desktop-nav a,
.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--accent-strong);
}

.nav-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.9rem;
}

.catalog-button {
  background: #ff992e;
  color: #241536;
}

.catalog-button:hover {
  background: #ffb45e;
}

.text-link,
.book-link {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.text-link span,
.book-link span {
  display: inline-block;
  color: var(--accent-strong);
  transition: transform 180ms ease;
}

.text-link:hover span,
.book-link:hover span {
  transform: translateX(4px);
}

.hero {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 96px 0 56px;
  background:
    radial-gradient(circle at 82% 17%, rgba(42, 178, 200, 0.19), transparent 29%),
    radial-gradient(circle at 14% 86%, rgba(255, 153, 46, 0.13), transparent 31%),
    var(--surface);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, #2093bb, #2ab2c8 25%, #e6b45a 50%, #ff992e 75%, #da1467);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--display);
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3.6rem, 6.3vw, 6.2rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-lead {
  max-width: 520px;
  margin: 28px 0 30px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.hero-library {
  position: relative;
  min-height: min(68vh, 680px);
  perspective: 1400px;
}

.hero-book {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(215px, 23vw, 310px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 236, 221, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 32px 70px var(--shadow);
  transform-origin: 50% 88%;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-book-back {
  transform: translate(-94%, -47%) rotate(-10deg) translateZ(-50px);
}

.hero-book-middle {
  transform: translate(-48%, -53%) rotate(1deg);
}

.hero-book-front {
  transform: translate(-2%, -43%) rotate(10deg) translateZ(40px);
}

.hero-library:hover .hero-book-back {
  transform: translate(-104%, -48%) rotate(-13deg) translateZ(-50px);
}

.hero-library:hover .hero-book-front {
  transform: translate(8%, -44%) rotate(13deg) translateZ(40px);
}

.value-band {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}

.value-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1.1fr;
}

.value-grid > div {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 38px;
  border-right: 1px solid var(--line);
}

.value-grid > div:first-child {
  padding-left: 0;
}

.value-grid > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.value-grid strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.5rem;
}

.value-grid span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.catalog-section,
.manifesto,
.purchase {
  padding: 112px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 38px;
}

.section-heading h2,
.purchase h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading p,
.purchase-copy > p:last-child {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 34px;
}

.book-card {
  min-width: 0;
}

.book-card[hidden] {
  display: none;
}

.book-card-combo {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  align-self: start;
  align-items: center;
  gap: 42px;
}

.combo-cover {
  position: relative;
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 2 / 3;
  margin-inline: auto;
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.combo-cover:hover {
  transform: translateY(-7px);
}

.combo-cover img {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px var(--shadow));
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.combo-cover img:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 46%;
}

.combo-cover img:nth-child(2) {
  right: 1%;
  bottom: 2%;
  width: 94%;
  height: 62%;
}

.combo-cover:hover img:nth-child(1) {
  transform: translateY(-3px);
}

.combo-cover:hover img:nth-child(2) {
  transform: translateY(3px);
}

.combo-content {
  max-width: 430px;
  padding: 0 8px;
}

.book-cover {
  display: block;
  width: min(88%, 322px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: 0 24px 52px var(--shadow);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms ease;
}

.book-cover:hover {
  transform: translateY(-9px) rotate(-0.7deg);
  box-shadow: 0 34px 66px var(--shadow);
}

.book-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book-content {
  padding: 26px 8px 0;
}

.book-category {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-content h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.08;
}

.book-content > p:not(.book-category) {
  min-height: 5.1em;
  margin: 14px 0 18px;
  color: var(--text-soft);
  line-height: 1.65;
}

.book-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.empty-state {
  padding: 48px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  text-align: center;
}

.manifesto {
  position: relative;
  background: var(--surface-raised);
  border-block: 1px solid var(--line);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 88px;
  align-items: start;
}

.manifesto-quote p {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.4vw, 4.35rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.manifesto-quote p::first-line {
  color: var(--accent-strong);
}

.manifesto-points {
  padding-top: 8px;
}

.manifesto-points > div {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.manifesto-points > div:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.manifesto-points h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.manifesto-points p {
  margin: 0;
  color: var(--text-soft);
}

.purchase-shell {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 78px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 12%, rgba(42, 178, 200, 0.14), transparent 38%),
    var(--surface-raised);
  box-shadow: 0 30px 70px var(--shadow);
}

.social-shell {
  align-items: center;
}

.social-networks {
  display: grid;
}

.social-network {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: padding-inline 180ms ease, background-color 180ms ease;
}

.social-network:hover {
  padding-inline: 12px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.social-network:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.social-network:last-child {
  border-bottom: 1px solid var(--line);
}

.social-network img {
  width: 38px;
  height: 38px;
}

.social-network strong,
.social-network span {
  display: block;
}

.social-network strong {
  color: var(--text);
  font-size: 1.2rem;
}

.social-network span {
  margin-top: 2px;
  color: var(--text-soft);
}

.interest-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text);
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid color-mix(in srgb, var(--text-soft) 48%, transparent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 13px;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: #ff8870;
}

.field-error {
  min-height: 1.25em;
  color: #ffad9b;
}

:root[data-theme="light"] .field-error {
  color: #a52d1b;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 2px;
}

.form-footer p {
  max-width: 320px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-status {
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-grid img {
  width: 170px;
}

.footer-grid p {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-cnpj {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 16px;
  }

  .hero-library {
    min-height: 560px;
  }

  .catalog-grid {
    gap-inline: 24px;
  }

  .book-card-combo {
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
  }

  .manifesto-grid,
  .purchase-shell {
    gap: 48px;
  }

  .purchase-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-shell {
    height: 64px;
  }

  .brand img,
  .footer-grid img {
    width: 148px;
  }

  .nav-actions .button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 72px;
  }

  .hero-grid,
  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.7rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-library {
    min-height: 470px;
    margin-top: 18px;
  }

  .hero-book {
    width: clamp(180px, 53vw, 245px);
  }

  .value-grid {
    grid-template-columns: 1fr;
    padding-block: 8px;
  }

  .value-grid > div,
  .value-grid > div:first-child,
  .value-grid > div:last-child {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-grid > div:last-child {
    border-bottom: 0;
  }

  .catalog-section,
  .manifesto,
  .purchase {
    padding: 78px 0;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .book-cover {
    width: min(84%, 340px);
  }

  .book-content {
    max-width: 430px;
    margin-inline: auto;
  }

  .combo-cover {
    width: min(84%, 340px);
  }

  .combo-cover img {
    max-width: none;
  }

  .combo-content {
    max-width: 430px;
    margin-inline: auto;
  }

  .book-card-combo {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .book-content > p:not(.book-category) {
    min-height: auto;
  }

  .manifesto-grid {
    gap: 56px;
  }

  .purchase-shell {
    padding: 32px 22px;
  }

  .interest-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-grid p {
    text-align: left;
  }

  .footer-copy {
    width: 100%;
  }

  .footer-copy p {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled {
    background: var(--surface);
    backdrop-filter: none;
  }
}
