@import url('https://fonts.googleapis.com/css2?family=Allura&family=Italiana&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  color-scheme: light;
  --red: oklch(0.55 0.22 27);
  --red-dark: oklch(0.34 0.15 25);
  --crimson: oklch(0.27 0.105 24);
  --ink: oklch(0.19 0.02 30);
  --muted: oklch(0.42 0.025 35);
  --paper: oklch(0.985 0.008 80);
  --cream: oklch(0.94 0.025 80);
  --aqua: oklch(0.82 0.08 196);
  --gold: oklch(0.72 0.12 82);
  --display: 'Italiana', 'Bodoni 72', Didot, Georgia, serif;
  --body: 'Source Sans 3', 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --script: 'Allura', 'Snell Roundhand', cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 76rem;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--aqua); color: var(--ink); }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .75rem 1rem; background: var(--ink); color: var(--paper); border-radius: .25rem; }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.eyebrow { margin: 0 0 1rem; font-weight: 700; font-size: .82rem; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 400; line-height: .96; letter-spacing: -.035em; }
.section-title { margin: 0; font: 400 clamp(2.7rem, 6vw, 5.5rem)/.98 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lede { max-width: 62ch; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .78rem 1.35rem; border: 1px solid transparent; border-radius: .2rem; font-weight: 700; line-height: 1; text-decoration: none; transition: transform .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--paper); box-shadow: 0 .65rem 1.4rem oklch(0.28 0.12 25 / .18); }
.button-primary:hover { background: var(--red-dark); }
.button-outline { border-color: currentColor; background: transparent; }
.text-link { font-weight: 700; text-decoration-thickness: .1em; text-underline-offset: .25em; }
.purchase-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.review-link { font-weight: 700; text-decoration-thickness: .1em; text-underline-offset: .25em; }
.review-link:hover { color: var(--red); }
.book-object { position: relative; width: min(70vw, 22rem); filter: drop-shadow(1.25rem 1.7rem 1.4rem oklch(0.15 0.04 30 / .2)); transform: perspective(70rem) rotateY(-5deg) rotateX(1deg); transition: transform .55s var(--ease-out); }
.book-object::after { content: ''; position: absolute; z-index: -1; inset: .45rem -.5rem -.6rem .5rem; background: oklch(0.78 0.025 75); border-radius: 0 .1rem .1rem 0; }
.book-object:hover { transform: perspective(70rem) rotateY(-1deg) translateY(-.35rem); }
.book-object img { width: 100%; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid oklch(0.5 0.02 35 / .2); background: oklch(0.985 0.008 80 / .94); backdrop-filter: blur(12px); }
.nav { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font: 400 1.5rem/1 var(--display); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.75rem); }
.nav-links > a:not(.button) { font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav-links > a:not(.button):hover { color: var(--red); }

.site-footer { padding-block: 2rem 5.5rem; border-top: 1px solid oklch(0.5 0.02 35 / .2); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-row p { margin: 0; }

[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.js [data-reveal][data-visible] { opacity: 1; transform: none; }

@media (max-width: 760px) {
  html { scroll-padding-top: 8rem; }
  body { font-size: 1rem; }
  .nav { min-height: auto; flex-wrap: wrap; gap: .55rem; padding-block: .65rem; }
  .brand { width: 100%; font-size: 1.25rem; text-align: center; }
  .nav-links { position: static; display: flex; width: 100%; padding: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; background: transparent; box-shadow: none; }
  .nav-links a { min-height: 2.75rem; display: flex; align-items: center; }
  .nav-links > a:not(.button) { font-size: .84rem; }
  .nav-links .button { min-height: 2.75rem; padding: .7rem .85rem; justify-content: center; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
