/* ==========================================================================
   Northfold Books — Maple Street
   Design tokens and components, ported from the Claude Design artboards.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #fff7ec;
  --white: #fff;
  --cream: #ffeedf;
  --field: #f5f7fb;
  --muted-surface: #f1f3f7;

  /* Ink */
  --ink: #14284b;
  --ink-2: #33506f;
  --ink-3: #5a6e8c;

  /* Brand */
  --coral: #ee5d42;
  --coral-light: #ff8a5b;
  --coral-deep: #e8452c;
  --yellow: #ffc53d;
  --green: #4fa86a;
  --green-deep: #3c8f76;
  --mint: #effaf1;

  /* Type */
  --display: Fredoka, "Trebuchet MS", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  /* Shape */
  --pill: 999px;
  --r-card: 34px;
  --r-lg: 40px;
  --r-xl: 44px;
  --r-slab: 90px;
  --r-hero: 80px;

  /* Shadow */
  --shadow-card: 0 18px 36px -26px rgba(20, 40, 75, 0.55);
  --shadow-lift: 0 22px 44px -30px rgba(20, 40, 75, 0.6);
  --shadow-coral: 0 12px 22px -12px rgba(238, 93, 66, 0.9);

  /* Rhythm */
  --shell: 1160px;
  --bleed: 1320px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

/* Must beat component display rules so JS filtering actually hides cards. */
[hidden] {
  display: none !important;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: var(--pill);
  font-family: var(--display);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.skip:focus {
  transform: translate(-50%, 0);
  color: var(--paper);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --------------------------------------------------------------- header -- */

.header {
  position: sticky;
  top: 16px;
  z-index: 50;
  max-width: var(--shell);
  margin: 16px auto 0;
}

.header__bar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-radius: var(--pill);
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
  box-shadow: 0 10px 30px -12px rgba(20, 40, 75, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(140deg, var(--coral-light), var(--coral));
}

.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 600;
}

.nav__link {
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--pill);
}

.nav__link:hover,
.nav__link.is-current {
  color: var(--ink);
  background: var(--cream);
}

.nav__cta {
  padding: 11px 20px;
  font-size: 16px;
  box-shadow: 0 8px 18px -6px rgba(238, 93, 66, 0.7);
}

/* Mobile menu — <details> so it works with no JavaScript. */
.menu {
  display: none;
  position: relative;
}

.menu__toggle {
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--ink);
  list-style: none;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__panel {
  position: absolute;
  right: 0;
  top: 54px;
  width: 232px;
  background: var(--white);
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 22px 44px -18px rgba(20, 40, 75, 0.45);
  display: grid;
  gap: 2px;
  z-index: 60;
}

.menu__link {
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}

.menu__link:hover,
.menu__link.is-current {
  color: var(--ink);
  background: var(--cream);
}

.menu__cta {
  margin-top: 6px;
  padding: 13px 18px;
  font-size: 16px;
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 20px;
  border-radius: var(--pill);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: linear-gradient(140deg, var(--coral-light), var(--coral));
  color: var(--white);
  box-shadow: var(--shadow-coral);
}

.btn--primary:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 38px;
  font-size: 20px;
  box-shadow: 0 16px 30px -10px rgba(238, 93, 66, 0.85);
}

.btn--lg:hover {
  transform: translateY(-3px);
}

.btn--block {
  display: block;
  margin: 0 6px;
}

.btn--soon {
  background: var(--muted-surface);
  color: var(--ink-3);
  cursor: default;
  box-shadow: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(20, 40, 75, 0.5);
}

.btn--ghost:hover,
.btn--white:hover,
.btn--cream:hover {
  color: var(--ink);
  transform: translateY(-3px);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.45);
}

.btn--cream {
  background: var(--cream);
  color: var(--ink);
}

.btn--hero {
  padding: 17px 32px;
  font-size: 18px;
  box-shadow: 0 14px 26px -10px rgba(238, 93, 66, 0.85);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  max-width: var(--bleed);
  margin: -78px auto 0;
  border-radius: 0 0 var(--r-hero) var(--r-hero);
  overflow: hidden;
  padding-top: 78px;
}

.hero--sky {
  background: linear-gradient(170deg, #cfe9f7 0%, #eaf5ec 62%, var(--paper) 100%);
}

.hero--sky-soft {
  background: linear-gradient(170deg, #cfe9f7 0%, #eaf5ec 70%, var(--paper) 100%);
}

.hero--green {
  background: linear-gradient(165deg, var(--green), var(--green-deep) 70%, #46997a 100%);
  color: var(--paper);
}

.hero--warm {
  background: linear-gradient(170deg, #ffe7cb 0%, #fff1df 65%, var(--paper) 100%);
}

.hero__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 58px 32px 76px;
}

.hero__grid {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-2);
}

.hero__title {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--coral);
}

.hero__lede {
  font-size: 20px;
  line-height: 1.55;
  max-width: 30em;
  margin: 0 0 32px;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__covers {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

.hero__cover-a {
  width: 44%;
  transform: rotate(-6deg);
  animation: floaty 7s ease-in-out infinite;
}

.hero__cover-b {
  width: 54%;
  transform: rotate(4deg) translateY(-18px);
  animation: floaty 6s ease-in-out infinite 0.8s;
}

/* Page-title hero (catalogue, about, faq, contact, series). */
.page-title {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero--green .page-title {
  color: var(--paper);
  font-size: clamp(40px, 5.6vw, 70px);
}

.page-lede {
  font-size: 20px;
  line-height: 1.55;
  max-width: 34em;
  margin: 0;
  color: var(--ink-2);
}

.hero--green .page-lede {
  color: var(--mint);
  line-height: 1.6;
  max-width: 38em;
}

/* Decorative organic blobs. */
.blob {
  position: absolute;
  pointer-events: none;
}

.blob--a {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 58% 42% 46% 54% / 50% 45% 55% 50%;
  background: rgba(255, 197, 61, 0.55);
}

.blob--b {
  bottom: -160px;
  left: -120px;
  width: 380px;
  height: 380px;
  border-radius: 46% 54% 62% 38% / 55% 48% 52% 45%;
  background: rgba(79, 168, 106, 0.22);
}

.blob--sun {
  top: -110px;
  right: -60px;
  width: 380px;
  height: 380px;
  border-radius: 58% 42% 46% 54% / 50% 45% 55% 50%;
  background: rgba(255, 197, 61, 0.45);
}

.blob--sky {
  top: -110px;
  left: -60px;
  width: 340px;
  height: 340px;
  border-radius: 46% 54% 62% 38% / 55% 48% 52% 45%;
  background: rgba(127, 198, 236, 0.4);
}

.blob--pale {
  top: -80px;
  right: 8%;
  width: 340px;
  height: 340px;
  border-radius: 52% 48% 40% 60% / 45% 55% 45% 55%;
  background: rgba(255, 255, 255, 0.12);
}

.blob--pale-left {
  top: -90px;
  left: 22%;
  width: 320px;
  height: 320px;
  border-radius: 52% 48% 40% 60% / 45% 55% 45% 55%;
  background: rgba(255, 255, 255, 0.1);
}

.blob--pale-corner {
  right: -70px;
  bottom: -110px;
  width: 340px;
  height: 340px;
  border-radius: 48% 52% 58% 42% / 52% 44% 56% 48%;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------------------------------------------------------- proof strip -- */

.proof {
  max-width: var(--shell);
  margin: -44px auto 0;
  position: relative;
  z-index: 5;
}

.proof__inner {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 26px 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px 30px;
  box-shadow: 0 24px 50px -24px rgba(20, 40, 75, 0.6);
}

.proof__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
}

.proof__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

/* ------------------------------------------------------------- sections -- */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 92px 8px 40px;
}

.section--tight {
  padding: 76px 8px 0;
}

.section--flush {
  padding: 84px 8px 0;
}

.section--narrow {
  max-width: 900px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.section__title {
  font-size: clamp(32px, 4vw, 50px);
  margin: 0 0 8px;
}

.section__title--sm {
  font-size: clamp(28px, 3.4vw, 42px);
}

.section__title--md {
  font-size: clamp(30px, 3.6vw, 46px);
}

.section__sub {
  margin: 0;
  font-size: 18px;
  color: var(--ink-3);
}

.section__link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  background: var(--cream);
  color: var(--ink);
  padding: 11px 22px;
  border-radius: var(--pill);
}

.section__link:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.fine-print {
  margin: 30px 6px 0;
  font-size: 15px;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- slab -- */

.slab {
  position: relative;
  max-width: var(--bleed);
  margin: 76px auto 0;
  border-radius: var(--r-slab);
  overflow: hidden;
}

.slab--flush {
  margin: 0 auto;
}

.slab--green {
  background: linear-gradient(155deg, var(--green), var(--green-deep));
}

.slab--blue {
  background: linear-gradient(160deg, #dceef8, #f0f6ff);
}

.slab--coral {
  background: linear-gradient(150deg, var(--coral-light), var(--coral-deep));
  border-radius: var(--r-slab) var(--r-slab) var(--r-lg) var(--r-lg);
}

.slab__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 76px 32px;
}

.slab__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}

.slab__row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}

.slab__title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  margin: 0 0 20px;
}

.slab__title--sm {
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 10px;
}

.slab__body {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  max-width: 34em;
}

.slab--green .slab__title,
.slab--coral .slab__title,
.slab--green .slab__title--sm,
.slab--coral .slab__title--sm {
  color: var(--paper);
}

.slab--green .slab__body {
  color: var(--mint);
}

.slab--coral .slab__body {
  color: #ffefe8;
  max-width: 30em;
}

.slab--blue .slab__body {
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- grid -- */

.grid {
  display: grid;
  gap: 24px;
}

.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.grid--thirds {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--cast {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.grid--values {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 170px lets all six specs sit on one row at full width instead of
   stranding the last one alone under a row of five. */
.grid--specs {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

/* ----------------------------------------------------------------- card -- */

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow-card);
}

.card--link {
  color: var(--ink);
  padding-bottom: 22px;
}

.card--link:hover {
  color: var(--ink);
  transform: translateY(-3px);
}

.card__cover {
  display: block;
  position: relative;
}

.card__cover-link {
  display: block;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  padding: 0 6px;
}

.card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

.card__title a {
  color: var(--ink);
}

.card__title a:hover {
  color: var(--coral);
}

.card__line {
  margin: 0;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.45;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pill);
}

.badge--live {
  background: var(--ink);
  color: var(--paper);
}

/* Solid, not translucent: the badge sits over the cream title band on lettered
   covers, where a washed-out chip disappears. */
.badge--soon {
  background: var(--white);
  color: var(--ink-2);
  box-shadow: 0 0 0 1.5px rgba(20, 40, 75, 0.16);
}

.badge--live {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------------- cover -- */

/* Covers size their own type against their width, so one component reads
   correctly from a 150px phone card up to a 550px product hero. The query
   container is this shell rather than .cover, so the cover's own cqi-based
   padding can't shrink the box the queries measure. */
.cover-shell {
  container-type: inline-size;
  width: 100%;
}

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: clamp(20px, 13cqi, 40px);
  overflow: hidden;
  background: linear-gradient(155deg, var(--hue-from, #ffd97a), var(--hue-to, #ffb74a));
  box-shadow: 0 22px 40px -20px rgba(20, 40, 75, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 9cqi, 34px);
}

/* Real artwork fills the frame; the flex padding belongs to the placeholder. */
.cover--photo {
  padding: 0;
  justify-content: flex-start;
  background: var(--cream);
}

.cover__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Title band drawn over artwork that was supplied without lettering. It echoes
   the finished covers: series line, title, age badge. */
.cover--lettered .cover__plate {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(7px, 3.4cqi, 17px) clamp(10px, 4cqi, 20px) clamp(8px, 3.8cqi, 19px);
  /* A crisp band with a defined edge, like the finished covers. A long fade
     here muddies the top third of the artwork instead of framing it. */
  background: rgba(255, 247, 236, 0.95);
  border-bottom: clamp(2px, 0.8cqi, 4px) solid var(--coral);
  text-align: center;
}

.cover--lettered .cover__series {
  color: var(--coral);
  margin: 0 0 clamp(2px, 1.2cqi, 6px);
}

.cover--lettered .cover__title {
  margin: 0;
  font-size: clamp(15px, 8.6cqi, 34px);
  color: var(--ink);
}

.cover__ages {
  display: inline-block;
  margin: clamp(5px, 2.6cqi, 12px) 0 0;
  padding: clamp(2px, 1cqi, 5px) clamp(7px, 3cqi, 14px);
  border-radius: var(--pill);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(8px, 3.4cqi, 14px);
  letter-spacing: 0.04em;
}

.cover__blob {
  position: absolute;
  right: -18%;
  top: -14%;
  width: 62%;
  padding-bottom: 62%;
  border-radius: 52% 48% 44% 56% / 48% 52% 48% 52%;
  background: rgba(255, 255, 255, 0.35);
}

.cover__stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0 8px,
    transparent 8px 20px
  );
}

.cover__series {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(9px, 4.8cqi, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Keep the series line clear of the status pill sitting in the same corner. */
.card__cover .cover__series {
  padding-right: 62px;
}

.cover__foot {
  position: relative;
}

.cover__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 11.5cqi, 44px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.cover__sub {
  margin: 0;
  font-size: clamp(10px, 5.2cqi, 16px);
  color: var(--ink-2);
}

.cover__note {
  margin: clamp(6px, 5cqi, 12px) 0 0;
  font-family: var(--mono);
  font-size: clamp(8px, 4cqi, 10px);
  letter-spacing: 0.06em;
  color: rgba(20, 40, 75, 0.5);
}

/* A small cover can't hold four lines inside a square. Shed the optional ones
   rather than let them spill past the clipped edge. */
@container (max-width: 200px) {
  .cover__note {
    display: none;
  }
}

@container (max-width: 150px) {
  .cover__sub {
    display: none;
  }
}

/* -------------------------------------------------------------- filters -- */

.filters {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter {
  cursor: pointer;
  border: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  white-space: nowrap;
  border-radius: var(--pill);
  background: var(--white);
  color: var(--ink-2);
  box-shadow: 0 10px 22px -16px rgba(20, 40, 75, 0.8);
  transition: background 0.18s ease, color 0.18s ease;
}

.filter:hover {
  background: var(--cream);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.filters__count {
  margin-left: auto;
  font-size: 16px;
  color: var(--ink-3);
}

.catalogue__empty {
  padding: 40px 6px;
  font-size: 18px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- steps -- */

.step {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 12px;
  padding: 32px 30px;
  box-shadow: 0 18px 36px -26px rgba(20, 40, 75, 0.6);
}

.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 18px;
}

.step__text {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
}

/* ----------------------------------------------------------------- cast -- */

.cast-pill {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--pill);
  padding: 14px 24px 14px 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.6);
}

.cast-pill__dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: none;
}

.cast-pill__name {
  display: block;
  margin: 0 0 2px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.cast-pill__bio {
  display: block;
  margin: 0;
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.4;
}

.cast-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 20px 40px -28px rgba(20, 40, 75, 0.6);
}

.cast-card__dot {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 52% 48% 44% 56% / 48% 52% 48% 52%;
  margin-bottom: 22px;
}

.cast-card__name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.cast-card__bio {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

.placeholder-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- promise -- */

.promise {
  background: linear-gradient(160deg, #fff3de, #ffe7cb);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 12px;
  padding: 32px 30px;
}

.promise__text {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.3;
}

/* --------------------------------------------------------------- values -- */

.value {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 12px;
  padding: 34px 30px;
  box-shadow: 0 20px 40px -30px rgba(20, 40, 75, 0.6);
}

.value__mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 10px;
  margin-bottom: 20px;
}

.value__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.value__body {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-3);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--pill);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 16px;
}

/* ------------------------------------------------------------- interior -- */

.peek {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 22px 44px -28px rgba(20, 40, 75, 0.6);
}

.peek__title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.peek__note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.interior {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.peek .interior {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.interior__page {
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background: var(--white);
  background-image: repeating-linear-gradient(
    var(--angle, 20deg),
    rgba(20, 40, 75, 0.13) 0 2px,
    transparent 2px 15px
  );
  box-shadow: 0 16px 32px -26px rgba(20, 40, 75, 0.7);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.peek .interior__page {
  border-radius: 20px;
  background-color: #f7f9fc;
  box-shadow: none;
  padding: 0;
}

/* Real sample pages: the art is already white-backed, so the tile is just a
   rounded, shadowed frame around it. */
.interior__page--art {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-image: none;
  background-color: var(--white);
  display: block;
}

.interior__page--art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.peek .interior__page--art {
  background-color: var(--white);
}

.interior__tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--white);
  padding: 3px 8px;
  border-radius: var(--pill);
}

/* --------------------------------------------------------------- product */

.back-link {
  max-width: var(--shell);
  margin: 28px auto 0;
  padding: 0 8px;
}

.back-link a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-3);
}

.back-link a:hover {
  color: var(--coral);
}

.product {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 8px 0;
}

.product__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 52px;
  align-items: center;
}

.product__badge {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--pill);
  margin-bottom: 18px;
}

.product__badge--live {
  background: var(--ink);
  color: var(--paper);
}

.product__badge--soon {
  background: var(--cream);
  color: var(--ink-2);
}

.product__title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.product__sub {
  margin: 0 0 22px;
  font-size: 19px;
  color: var(--ink-3);
}

.product__blurb {
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}

.product__cta-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}

.chip {
  background: var(--white);
  white-space: nowrap;
  border-radius: var(--pill);
  padding: 9px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  box-shadow: 0 10px 22px -18px rgba(20, 40, 75, 0.8);
}

.spec {
  background: var(--white);
  border-radius: 28px;
  padding: 22px 24px;
  box-shadow: 0 16px 32px -26px rgba(20, 40, 75, 0.6);
}

.spec__k {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.spec__v {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
}

.disclosure {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 44em;
}

/* ------------------------------------------------------------------ faq -- */

.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  border-radius: 30px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 14px 30px -24px rgba(20, 40, 75, 0.6);
}

.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  font-size: 22px;
  line-height: 1;
  color: var(--coral);
}

.faq__sign::before {
  content: "+";
}

.faq__item[open] .faq__sign::before {
  content: "–";
}

.faq__a {
  margin: 0;
  padding: 0 26px 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46em;
}

.faq-cta {
  background: linear-gradient(160deg, #dceef8, #f0f6ff);
  border-radius: var(--r-lg);
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.faq-cta p {
  margin: 0;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 26em;
}

/* -------------------------------------------------------------- contact -- */

.contact {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 8px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}

.field input,
.field textarea {
  border: none;
  background: var(--field);
  border-radius: var(--pill);
  padding: 15px 20px;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink);
}

.field textarea {
  border-radius: 26px;
  padding: 16px 20px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa8bd;
}

.form__submit {
  justify-self: start;
  padding: 16px 34px;
  font-size: 18px;
  box-shadow: 0 14px 26px -12px rgba(238, 93, 66, 0.85);
}

.form__status {
  margin: 0;
  font-size: 16px;
  color: var(--ink-3);
}

.aside-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 18px 36px -28px rgba(20, 40, 75, 0.6);
}

.aside-card--warm {
  background: linear-gradient(160deg, #fff3de, #ffe7cb);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 12px;
  box-shadow: none;
}

.aside-card__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
}

.aside-card__body {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-3);
}

.aside-stack {
  display: grid;
  gap: 18px;
}

/* ---------------------------------------------------------------- legal -- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 8px 0;
}

.legal__title {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.legal__meta {
  margin: 0 0 34px;
  font-size: 16px;
  color: var(--ink-3);
}

.legal__card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 40px 40px 44px;
  box-shadow: 0 22px 44px -32px rgba(20, 40, 75, 0.6);
  display: grid;
  gap: 20px;
}

.legal__card p {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
}

.legal__card .btn {
  justify-self: start;
  margin-top: 6px;
  padding: 13px 26px;
  font-size: 17px;
}

/* --------------------------------------------------------------- footer -- */

.footer {
  max-width: var(--shell);
  margin: 0 auto;
}

.footer__inner {
  padding: 56px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
}

.footer__link {
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--pill);
}

.footer__link:hover,
.footer__link.is-current {
  color: var(--ink);
  background: var(--cream);
}

.footer__note {
  font-size: 16px;
  color: var(--ink-3);
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

  .menu {
    display: block;
    margin-left: auto;
  }

  .hero {
    border-radius: 0 0 44px 44px;
  }

  .slab {
    border-radius: 44px;
  }

  .slab--coral {
    border-radius: 44px;
  }

  .hero__inner,
  .hero__grid,
  .slab__inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .slab__split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product__grid {
    gap: 34px;
  }

  /* Narrow the tilted hero pair so rotation doesn't push it past the
     hero's clipped edge. */
  .hero__covers {
    gap: 12px;
  }

  .hero__cover-a {
    width: 40%;
  }

  .hero__cover-b {
    width: 46%;
  }

  .section {
    padding-top: 68px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero {
    border-radius: 0 0 30px 30px;
  }

  .slab,
  .slab--coral {
    border-radius: 30px;
  }

  .hero__inner,
  .slab__inner {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .legal__card {
    padding: 28px 24px 32px;
  }

  .form {
    padding: 24px;
  }

  .peek .interior {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__cover-a {
    transform: rotate(-6deg);
  }

  .hero__cover-b {
    transform: rotate(4deg) translateY(-18px);
  }
}

@media print {
  .header,
  .footer__nav,
  .skip {
    display: none;
  }

  body {
    background: #fff;
  }
}
