/* Lições do Luck — página do livro
   Papel, índigo de aquarela, areia da capa. */

:root {
  --paper: #f3eee6;
  --paper-deep: #e7dfd2;
  --ink: #1c2430;
  --ink-soft: #3c4656;
  --indigo: #243044;
  --indigo-deep: #1a2433;
  --wash: #6d8298;
  --sand: #e7d5c4;
  --shell: #c4a07a;
  --ochre: #8c5a28;
  --ochre-deep: #6e451c;
  --line: rgba(28, 36, 48, 0.14);
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 40rem;
  --wrap: 72rem;
  --header: 4.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  hyphens: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: url("../assets/grain.png");
  background-size: 160px 160px;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
}

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

::selection {
  background: #e4d0be;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--indigo);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.8rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

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

h1, h2, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(243, 238, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(var(--wrap), calc(100% - 2rem));
}

.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}

.wordmark span {
  font-style: normal;
  font-size: 0.95em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a,
.nav-panel a {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav-desktop a:hover,
.nav-panel a:hover {
  color: var(--ink);
}

.nav-buy {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--indigo);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-buy:hover {
  background: var(--indigo-deep);
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 14rem;
  padding: 0.8rem 0;
  box-shadow: 0 16px 40px rgba(28, 36, 48, 0.08);
}

.nav-panel a {
  display: block;
  padding: 0.7rem 1.1rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 3.2rem 0 4.5rem;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  right: -16rem;
  top: -14rem;
  background: url("../assets/aquarela.jpg") center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 68%);
  mask-image: radial-gradient(circle, #000 15%, transparent 68%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.book-stage {
  display: grid;
  justify-items: center;
}

.volume {
  width: min(20.5rem, 78vw);
  display: flex;
  align-items: stretch;
  transform: perspective(1100px) rotateY(-13deg) rotateX(2deg);
  transform-origin: center center;
  filter: drop-shadow(18px 26px 18px rgba(36, 28, 22, 0.32));
  transition: transform 0.6s ease;
}

.volume:hover {
  transform: perspective(1100px) rotateY(-6deg) rotateX(1deg);
}

.volume-board {
  position: relative;
  flex: 1;
  background: #d9cfc2;
  line-height: 0;
}

.volume-board img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 439 / 671;
  object-fit: cover;
}

.volume-gutter {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  background: linear-gradient(90deg, rgba(28, 20, 14, 0.38), rgba(28, 20, 14, 0.05) 72%, transparent);
  pointer-events: none;
}

.volume-fore {
  width: 0.85rem;
  flex: none;
  background:
    linear-gradient(90deg, rgba(40, 30, 20, 0.18), transparent 35%),
    repeating-linear-gradient(
      90deg,
      #fbf7f0 0 1px,
      #e5d8c6 1px 2px,
      #f4eee4 2px 3px
    );
  border-radius: 0 2px 2px 0;
}

.cover-note {
  max-width: 22rem;
  margin: 1.1rem 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  hyphens: none;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7.4vw, 6.4rem);
  font-weight: 500;
}

.hero-copy h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  align-items: center;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn-fill {
  background: var(--indigo);
  color: #f7f3ec;
}

.btn-fill:hover {
  background: var(--indigo-deep);
}

.btn-line {
  border-color: rgba(28, 36, 48, 0.28);
  background: transparent;
}

.btn-line:hover {
  border-color: var(--indigo);
  background: rgba(255, 255, 255, 0.35);
}

.btn-paper {
  background: var(--paper);
  color: var(--indigo);
}

.btn-paper:hover {
  background: #fff;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.72;
}

.fine {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* Epigraph */

.epigraph {
  position: relative;
  padding: 5.5rem 0;
  background:
    linear-gradient(180deg, rgba(243, 238, 230, 0.2), rgba(243, 238, 230, 0.55)),
    url("../assets/aquarela.jpg") center / cover no-repeat;
}

.epigraph blockquote {
  margin: 0 auto;
  max-width: 14em;
  text-align: center;
}

.epigraph p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.epigraph footer {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

/* Essay / colophon margin */

.essay-section {
  padding: 5rem 0 4rem;
}

.essay-grid {
  display: grid;
  gap: 2rem;
}

.margin-note {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.7;
}

.margin-note p {
  margin: 0 0 0.35rem;
}

.essay h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.drop::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 4.6rem;
  line-height: 0.75;
  padding: 0.35rem 0.55rem 0 0;
  color: var(--indigo);
}

.essay p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.dedication {
  margin: 1.6rem 0 0;
  max-width: 28rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.25;
}

/* Chapters */

.chapters {
  padding: 1rem 0 4.5rem;
}

.chapters-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.chapters-head h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.chapters-head p {
  margin: 0;
  max-width: 18rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.chapter {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 1rem 1.15rem;
  align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.toc li:last-child .chapter {
  border-bottom: 1px solid var(--line);
}

.ch-fig {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-deep);
}

.ch-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.ch-num {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.chapter h3 {
  margin: 0.15rem 0 0.3rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.chapter p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Three gazes */

.gazes-section {
  background: var(--indigo);
  color: #f4efe6;
  padding: 4.5rem 0 4.8rem;
}

.gazes-section .kicker {
  color: #f3e6d4;
}

.gazes-section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 14ch;
}

.gazes-intro {
  max-width: 38rem;
  margin: 0 0 2.4rem;
  color: rgba(244, 239, 230, 0.82);
}

.gazes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.gazes li {
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 239, 230, 0.2);
}

.gazes .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--shell);
}

.gazes h3 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
}

.gazes p {
  margin: 0;
  color: rgba(244, 239, 230, 0.86);
}

.gazes-close {
  margin: 2.2rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.3;
  max-width: 28rem;
}

/* Acrostic */

.acrostic {
  padding: 4.8rem 0 4rem;
}

.acrostic h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.acrostic .intro {
  max-width: 36rem;
  color: var(--ink-soft);
}

.luck {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.luck li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.luck b {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(4.2rem, 8vw, 6.5rem);
  line-height: 0.78;
  color: var(--indigo);
}

.luck p {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

/* Real dog */

.real {
  padding: 1rem 0 5rem;
}

.real-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.snap {
  margin: 0;
  background: #fffdf9;
  padding: 0.7rem 0.7rem 0.9rem;
  box-shadow: 0 18px 40px rgba(36, 28, 22, 0.12);
  transform: rotate(-1.5deg);
}

.snap img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 40%;
}

.snap figcaption {
  margin: 0.65rem 0.2rem 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.pull {
  margin: 1.2rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
}

.pull cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

/* Author */

.author {
  background: var(--paper-deep);
  padding: 4.5rem 0;
}

.author-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.author-photo {
  margin: 0;
}

.author-photo img {
  display: block;
  width: 100%;
  max-height: 36rem;
  object-fit: cover;
  object-position: center 20%;
  aspect-ratio: 3 / 4;
}

.author-photo figcaption {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.author h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.author p {
  max-width: var(--measure);
}

.ig {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--indigo);
}

/* Offers */

.offers {
  padding: 4.8rem 0 4rem;
}

.offers h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.offers-lead {
  max-width: 38rem;
  color: var(--ink-soft);
}

.email {
  margin: 2rem 0 0.5rem;
  max-width: 32rem;
}

.email label {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.email input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 36, 48, 0.35);
  border-radius: 0;
  padding: 0.75rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}

.email input::placeholder {
  color: rgba(28, 36, 48, 0.4);
}

.email .hint {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.checkout-error {
  max-width: 40rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: #f6e4dc;
  color: #6d2c22;
  border-left: 3px solid #8d3b2f;
}

.checkout-error:focus {
  outline-offset: 2px;
}

.sku-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.sku {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.25rem 1.3rem;
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid var(--line);
  min-height: 100%;
}

.sku-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.sku h3 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
}

.price {
  margin: 0.6rem 0 0;
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
}

.sku-note {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sku ul {
  margin: 1rem 0 1.2rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.sku li {
  position: relative;
  padding-left: 0.9rem;
  margin: 0.3rem 0;
  font-size: 0.98rem;
}

.sku li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 1px;
  background: var(--ochre);
}

.sku .btn {
  width: 100%;
}

.sku-combo {
  background: var(--indigo);
  color: #f6f1e8;
  border-color: var(--indigo);
}

.sku-combo .sku-kicker,
.sku-combo .sku-note {
  color: #f3e6d4;
}

.sku-combo li::before {
  background: var(--shell);
}

.ribbon {
  align-self: flex-start;
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--shell);
  padding: 0.28rem 0.5rem;
}

.physical {
  margin-top: 1rem;
  display: grid;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.45);
}

.physical img {
  width: 5.2rem;
  aspect-ratio: 439 / 671;
  object-fit: cover;
  box-shadow:
    4px 0 0 #f7f2ea,
    5px 0 0 #e4d8c6,
    8px 10px 16px rgba(36, 28, 22, 0.18);
}

.physical h3 {
  margin: 0.15rem 0;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 500;
}

.physical .price {
  margin: 0;
}

.physical p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.pay-note {
  margin: 1.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* FAQ */

.faq {
  padding: 1rem 0 5rem;
}

.faq h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 0;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ochre-deep);
  flex: none;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0;
  padding: 0 0 1.15rem;
  max-width: 42rem;
  color: var(--ink-soft);
}

.faq-list a {
  color: var(--ochre-deep);
}

/* Footer / colophon */

.colophon {
  background: var(--indigo);
  color: rgba(244, 239, 230, 0.82);
  padding: 3.2rem 0 5.5rem;
}

.colophon strong {
  display: block;
  color: #f6f1e8;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.colophon p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.colophon a {
  color: var(--shell);
}

.signoff {
  margin-top: 1.4rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  color: #f6f1e8;
}

.colophon-links {
  margin-top: 1rem;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(243, 238, 230, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.dock a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
}

.dock a:first-child {
  background: var(--indigo);
  color: #f7f3ec;
}

.dock a:last-child {
  border: 1px solid rgba(28, 36, 48, 0.25);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .epigraph blockquote {
    max-width: none;
  }

  .epigraph p {
    font-size: clamp(1.55rem, 3.5vw, 2.85rem);
    white-space: nowrap;
    text-wrap: unset;
  }

  .luck {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 3rem;
  }

  .gazes {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .sku-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .physical {
    grid-template-columns: auto 1fr auto;
    padding: 1.2rem 1.4rem;
  }

  .real-grid,
  .author-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }

  .essay-grid {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
  }

  .margin-note {
    position: sticky;
    top: calc(var(--header) + 1.5rem);
    align-self: start;
  }
}

@media (min-width: 960px) {
  .chapter {
    grid-template-columns: 9.75rem 1fr;
  }

  .hero {
    padding: 2rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(280px, 24rem) minmax(0, 1fr);
    gap: 4.5rem;
    min-height: calc(100svh - var(--header));
  }

  .toc {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .toc li:nth-child(odd) .chapter,
  .toc li:nth-child(even) .chapter {
    border-top: 1px solid var(--line);
  }

  .dock {
    display: none;
  }

  .colophon {
    padding-bottom: 3.2rem;
  }
}

@media (max-width: 800px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  body {
    padding-bottom: 4.4rem;
  }
}

@media (max-width: 719px) {
  .chapters-head {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    padding: 1.4rem 0 2.2rem;
  }

  .hero-grid {
    gap: 1.4rem;
  }

  .volume {
    width: min(15.5rem, 70vw);
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .cover-note {
    margin-top: 0.75rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }
}

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

  .volume,
  .volume:hover,
  .snap {
    transform: none;
    transition: none;
  }
}

@media print {
  .site-header,
  .dock,
  .hero-actions,
  .btn,
  body::before {
    display: none !important;
  }

  body {
    background: white;
  }
}
