/* ============================================================
   Neighbor Shelf Club — faithful transplant of the Aardvark
   Book Club design system. Tokens, fonts, type scale, radii and
   section geometry are copied verbatim from the mirrored CSS;
   identity + content are the user's own.
   ============================================================ */

/* ---- Fonts (self-hosted, mirrored from reference) ---- */
@font-face {
  font-family: "Champ";
  src: url("fonts/champ-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Degular";
  src: url("fonts/degular-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Degular";
  src: url("fonts/degular-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Degular";
  src: url("fonts/degular-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hello Organichand Webfont";
  src: url("fonts/hello-organichand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens (copied verbatim from reference :root) ---- */
:root {
  --black: #000;
  --white: #fff;
  --violet: #3b308f;
  --pale-yellow: #faed8f;
  --bright-pink: #fd48f2;
  --cyan: #1ce8ed;
  --wine: #670a2e;
  --yellow: #ffd24a;
  --periwinkle: #9982de;
  --magenta: #ff008c;
  --orange: #f9a220;
  --soft-orange: #fddaa6;
  --soft-pink: #ffdbfd;
  --pale-blue: #a4f6f8;
  --pale-orange: #fbbe63;
  --soft-blue: #ddfcfc;
  --pale-pink: #feb6fa;
  --olive: #857521;
  --soft-grey: #f2f2f2;
  --soft-wine: #f0e6ea;
  --pale-periwinkle: #c2b4eb;
  --soft-periwinkle: #d7cdf1;
  --green: #2de124;

  --font-size-heading-xxl: 10em;
  --font-size-heading-xl: 8em;
  --font-size-heading-l: 6.5em;
  --font-size-heading-m: 5em;
  --font-size-heading-s: 2.5em;
  --font-size-heading-xs: 1.875em;
  --font-size-paragraph-large: 2em;
  --font-size-paragraph-medium: 1.75em;
  --font-size-paragraph-regular: 1.5em;
  --font-size-paragraph-small: 1.25em;
  --font-size-paragraph-extra-small: 1.125em;
  --font-size-handwritten-regular: 2em;
  --font-size-handwritten-big: 2.5em;

  --grid-margin: 1.5em;
  --header-height: 6.625em;
  --radius-section: 10em;
  --radius-card: 2em;
  --radius-button: 6.25em;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background-color: var(--white);
  font-family: "Degular", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.u-container { width: 100%; padding-inline: var(--grid-margin); margin-inline: auto; max-width: 100em; }

/* Type scale (copied) */
.u-heading-xxl { font-family: "Champ", Arial, sans-serif; font-size: var(--font-size-heading-xxl); letter-spacing: -.01em; font-weight: 700; line-height: .8; max-width: 11ch; }
.u-heading-l   { font-family: "Champ", Arial, sans-serif; font-size: var(--font-size-heading-l); letter-spacing: -.01em; line-height: .8; max-width: 18ch; }
.u-heading-m   { font-family: "Champ", Arial, sans-serif; font-size: var(--font-size-heading-m); line-height: .8; }
.u-heading-s   { font-family: "Champ", Arial, sans-serif; font-size: var(--font-size-heading-s); line-height: .88; }
.u-heading-xs  { font-family: "Champ", Arial, sans-serif; font-size: var(--font-size-heading-xs); line-height: .88; }
.u-paragraph-large { font-size: var(--font-size-paragraph-large); line-height: 150%; }
.u-handwritten-regular { color: var(--violet); font-family: "Hello Organichand Webfont", Arial, sans-serif; font-size: var(--font-size-handwritten-regular); letter-spacing: -.02em; font-weight: 400; line-height: 100%; }

/* ---- Buttons (pill, magenta — copied geometry) ---- */
.button {
  display: inline-grid;
  place-items: center;
  height: 3.75em;
  padding: 0 1.375em;
  border: 0;
  border-radius: var(--radius-button);
  background-color: var(--magenta);
  color: var(--black);
  font-family: "Degular", Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background-color .25s ease;
}
.button:hover { transform: translateY(-2px) rotate(-1deg); }
.button--pale-yellow { background-color: var(--pale-yellow); }
.button--violet { background-color: var(--violet); color: var(--white); }
.button--white { background-color: var(--white); }

/* ---- Section geometry: rounded bottoms (copied clip-path) ---- */
.is--bg-yellow { background-color: var(--yellow); clip-path: inset(0 round 0 0 var(--radius-section) var(--radius-section)); position: relative; overflow: hidden; }
.is--bg-white  { background-color: var(--white); z-index: 1; clip-path: inset(0 round 0 0 var(--radius-section) var(--radius-section)); position: relative; overflow: clip; }
.is--bg-soft-pink { background-color: var(--soft-pink); }
.is--bg-bright-pink { background-color: var(--bright-pink); }

/* ---- Header ---- */
.header { background: var(--yellow); padding: 1.25em var(--grid-margin); display: flex; justify-content: space-between; align-items: center; gap: 1em; position: relative; z-index: 10; }
.header__title { display: flex; align-items: center; gap: .75em; }
.header__logo { width: 3em; height: 3em; border-radius: 50%; background: var(--black); color: var(--yellow); display: grid; place-items: center; font-family: "Champ", Arial, sans-serif; font-size: 1em; }
.header__name { font-family: "Champ", Arial, sans-serif; font-size: 1.5em; line-height: 1; }
.header__tag { font-size: 1em; font-weight: 600; opacity: .7; }
.header__nav { display: flex; align-items: center; gap: 2em; }
.header__nav a { font-size: 1.125em; font-weight: 700; }
.header__nav a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---- Hero ---- */
.hero { padding-top: 4em; }
.hero__inner { display: flex; flex-direction: column; gap: 3.375em; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 2em; margin-left: -.25em; }
.hero__text { font-size: var(--font-size-paragraph-regular); line-height: 150%; max-width: 24ch; opacity: .75; }
.hero__actions { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.hero__note { position: absolute; right: 6%; top: 2.5em; transform: rotate(4deg); z-index: 2; }
.hero__ship { display: inline-flex; align-items: center; gap: .5em; background: var(--white); border-radius: 1.5em; padding: .5em .875em; font-size: 1.125em; }
.hero__visual { display: flex; justify-content: flex-end; margin-bottom: -6em; padding-right: 2em; }
.hero__visual { margin-bottom: 2em; }

/* Box illustration — original artwork, no reference imagery */
.box-scene { position: relative; width: 30em; height: 26em; }
.box-scene__book { position: absolute; bottom: 7.5em; width: 8.5em; height: 12.5em; border-radius: .75em; box-shadow: 0 1.5em 2em rgba(0,0,0,.18); transform-origin: bottom center; }
.box-scene__book--1 { left: 3.5em; transform: rotate(-9deg); background: linear-gradient(160deg, var(--violet), var(--periwinkle)); }
.box-scene__book--2 { left: 10.5em; transform: rotate(2deg); background: linear-gradient(160deg, var(--wine), var(--pale-pink)); }
.box-scene__book--3 { left: 17.5em; transform: rotate(10deg); background: linear-gradient(160deg, var(--cyan), var(--soft-blue)); }
.box-scene__box { position: absolute; bottom: 0; left: 1.5em; width: 27em; height: 9.5em; background: var(--pale-orange); border-radius: 1.25em; box-shadow: 0 1.5em 2.5em rgba(0,0,0,.15); }
.box-scene__box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2.25em; background: var(--soft-orange); border-radius: 1.25em 1.25em 0 0; }
.box-scene__label { position: absolute; bottom: 3.25em; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--white); color: var(--black); border-radius: .75em; padding: .5em 1em; font-family: "Champ", Arial, sans-serif; font-size: 1.25em; box-shadow: 0 .5em 1em rgba(0,0,0,.12); }
.box-scene__ears { position: absolute; bottom: 9.25em; left: 50%; transform: translateX(-50%); display: flex; gap: 5.5em; }
.box-scene__ear { width: 3.5em; height: 4.5em; background: var(--pale-orange); border-radius: 50% 50% 0 0 / 65% 65% 0 0; }

/* ---- Books ---- */
.books { padding: 7.5em 0 6em; }
.books__header { display: flex; flex-direction: column; gap: 1em; padding-inline: var(--grid-margin); }
.books__title { color: var(--black); }
.books__sub { font-size: var(--font-size-paragraph-small); opacity: .75; max-width: 40ch; }
.books-slider { display: flex; gap: 1em; overflow-x: auto; padding: 3em var(--grid-margin) 2em; scroll-snap-type: x mandatory; scrollbar-width: none; }
.books-slider::-webkit-scrollbar { display: none; }
.books-slider__item { flex: none; width: 24em; scroll-snap-align: start; user-select: none; }
.books-slider__item-inner { display: grid; }
.books-slider__item-bg { background-color: var(--soft-pink); border-radius: var(--radius-card); grid-area: 1/1; display: flex; justify-content: center; align-items: flex-end; width: 100%; height: 100%; position: relative; }
.books-slider__item-container { grid-area: 1/1; z-index: 1; display: flex; flex-direction: column; gap: 1em; width: 100%; height: 100%; padding: 1em 1em 1.5em; }
.books-slider__item-cover { aspect-ratio: 320/493; border-radius: 1em; width: 100%; overflow: clip; display: grid; place-items: center; text-align: center; padding: 1.5em; color: var(--white); font-family: "Champ", Arial, sans-serif; font-size: 1.75em; line-height: 1; }
.books-slider__item-title { font-family: "Champ", Arial, sans-serif; font-size: var(--font-size-heading-s); line-height: .88; }
.books-slider__item-desc { font-size: var(--font-size-paragraph-extra-small); line-height: 1.45; opacity: .8; }
.books-slider__genre-list { display: flex; flex-wrap: wrap; gap: .25em; }
.books-slider__link { font-size: 1.25em; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.cover--violet { background: linear-gradient(160deg, var(--violet), var(--periwinkle)); }
.cover--pink { background: linear-gradient(160deg, var(--magenta), var(--pale-pink)); }
.cover--cyan { background: linear-gradient(160deg, #0a9ea2, var(--pale-blue)); color: var(--black); }
.cover--wine { background: linear-gradient(160deg, var(--wine), var(--soft-wine)); }
.cover--orange { background: linear-gradient(160deg, var(--orange), var(--soft-orange)); color: var(--black); }
.cover--green { background: linear-gradient(160deg, #1f8f1a, #b8f5b4); color: var(--black); }

/* Genre tag pills (copied) */
.tag-small { background-color: var(--yellow); color: var(--black); border-radius: 1.5em; display: inline-flex; justify-content: center; align-items: center; padding: .4375em .5em; }
.tag-small__text { font-family: "Degular", Arial, sans-serif; font-size: 1.125em; line-height: 1; }

/* ---- Flow (4 steps) ---- */
.flow { padding: 7.5em 0 7.5em; background: var(--soft-pink); clip-path: inset(0 round 0 0 var(--radius-section) var(--radius-section)); position: relative; }
.flow__header { display: flex; flex-direction: column; gap: 1em; padding-inline: 6em; }
.flow__list { display: flex; justify-content: center; align-items: center; gap: 1.5em; flex-wrap: wrap; padding-top: 4em; }
.flow__card { background-color: var(--cyan); border-radius: var(--radius-card); width: 22em; min-height: 30em; display: flex; padding: 2.5em 1.25em 1.5em; }
.flow__card-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25em; width: 100%; text-align: center; }
.flow__card-step { font-family: "Champ", Arial, sans-serif; font-size: 1.25em; letter-spacing: .02em; opacity: .85; }
.flow__card-title { font-family: "Champ", Arial, sans-serif; font-size: 1.875em; line-height: .95; margin-bottom: .6em; }
.flow__card-text { font-size: 1.25em; line-height: 1.4; }
.flow__card-visual { font-size: 4.5em; line-height: 1; padding: .25em 0; }

/* ---- CTA band ---- */
.cta-band { background: var(--soft-periwinkle); clip-path: inset(0 round 0 0 var(--radius-section) var(--radius-section)); padding: 6em var(--grid-margin); display: flex; flex-direction: column; align-items: center; gap: 1.5em; text-align: center; }
.cta-band__hand { color: var(--violet); transform: rotate(-2deg); }
.cta-band__note { font-size: 1.25em; opacity: .8; }

/* ---- Genre section (bright pink, giant words) ---- */
.genre { background: var(--bright-pink); padding: 7.5em 0 8em; }
.genre__header { text-align: center; padding-inline: var(--grid-margin); }
.genre__title { font-size: 1.5em; font-weight: 600; line-height: 1.2; max-width: 30ch; margin-inline: auto; opacity: .9; }
.genre__list { display: flex; flex-direction: column; align-items: center; padding-top: 1.5em; }
.genre__list-item { padding: .375em 0; }
.genre__link { display: flex; justify-content: center; align-items: baseline; position: relative; color: var(--black); white-space: nowrap; pointer-events: none; user-select: none; }
.genre__link-default { font-family: "Champ", Arial, sans-serif; font-size: 5em; font-weight: 700; line-height: .8; letter-spacing: -.01em; }
.genre__link-hover { font-family: "Hello Organichand Webfont", Arial, sans-serif; font-size: 6em; line-height: .8; letter-spacing: -.01em; position: absolute; margin-top: 3%; opacity: 0; transition: opacity .2s ease; }
.genre__link:hover .genre__link-hover { opacity: 1; }
.genre__link:hover .genre__link-default { opacity: 0; }

/* ---- FAQ ---- */
.faq { background: var(--white); padding: 7.5em var(--grid-margin) 8em; clip-path: inset(0 round 0 0 var(--radius-section) var(--radius-section)); }
.faq__list { max-width: 56em; margin: 3em auto 0; display: flex; flex-direction: column; gap: 1em; }
.accordion { background: var(--soft-grey); border-radius: 1.5em; overflow: hidden; }
.accordion__button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1.25em 1.5em; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; font-size: 1.25em; font-weight: 700; }
.accordion__icon { flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 1em; transition: transform .3s ease; }
.accordion.is--open .accordion__icon { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 1.5em 1.25em; font-size: 1.125em; line-height: 1.5; opacity: .8; }
.accordion.is--open .accordion__panel { display: block; }

/* ---- Footer ---- */
.footer { background: var(--black); color: var(--white); padding: 5em var(--grid-margin) 2.5em; }
.footer__inner { display: flex; justify-content: space-between; gap: 2em; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: .75em; max-width: 24ch; }
.footer__title { font-family: "Champ", Arial, sans-serif; font-size: 2.5em; line-height: .9; }
.footer__note { opacity: .7; font-size: 1.125em; line-height: 1.5; }
.footer__nav { display: flex; gap: 4em; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: .75em; font-size: 1.125em; }
.footer__col-title { font-family: "Champ", Arial, sans-serif; font-size: 1.25em; }
.footer__col a { opacity: .8; }
.footer__col a:hover { opacity: 1; text-decoration: underline; }
.footer__legal { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid rgba(255,255,255,.2); font-size: 1em; opacity: .6; }

/* ---- Focus / a11y ---- */
a:focus-visible, button:focus-visible, .accordion__button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

/* ---- Responsive (copied breakpoints) ---- */
@media (max-width: 991px) {
  .u-heading-xxl { font-size: 7em; }
  .u-heading-l { font-size: 4em; }
  .genre__link-default { font-size: 4em; }
  .genre__link-hover { font-size: 4.5em; }
  .header__nav { display: none; }
}
@media (max-width: 767px) {
  .u-heading-xxl { font-size: 5em; }
  .u-heading-l { font-size: 3.4375em; }
  .flow__header { padding-inline: var(--grid-margin); }
  .flow__card { width: 100%; min-height: 24em; }
  .books-slider__item { width: 20em; }
  .box-scene { width: 24em; height: 22em; }
  .box-scene__box { width: 21em; }
}
@media (max-width: 479px) {
  .u-heading-xxl { font-size: 4em; }
  .u-heading-l { font-size: 2.125em; }
  .books-slider__item { width: 17em; }
  .genre__link-default { font-size: 2.75em; }
  .genre__link-hover { font-size: 3em; }
  .box-scene { width: 19em; height: 19em; }
  .box-scene__box { width: 16.5em; }
  .box-scene__book { width: 6.5em; height: 9.5em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .genre__link-hover { transition: none; }
}
