@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-extra-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy: #071b3f;
  --cream: #fef5e2;
  --gold: #ffe337;
  --blue: #0e4487;
  --paper: #ffffff;
  --rule: #e6d9bd;
  --ink-soft: #294261;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --radius-sm: 0.7rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shadow-paper: 0 1.1rem 2.5rem rgb(7 27 63 / 14%);
  --shadow-button: 0 0.3rem 0 #071b3f;
  --content-width: 72rem;
  --readable-width: 46rem;
  --step--1: clamp(0.88rem, 0.84rem + 0.18vw, 1rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem);
  --step-3: clamp(2.5rem, 1.7rem + 3.2vw, 4.5rem);
}

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

html {
  color: var(--navy);
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  color: var(--navy);
  background:
    linear-gradient(rgb(255 255 255 / 22%) 1px, transparent 1px), var(--cream);
  background-size: 100% 2rem;
  font-family:
    "Nunito",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: var(--step-0);
  font-weight: 800;
  line-height: 1.5;
}

body.gallery-open {
  overflow: hidden;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 0.22rem solid var(--blue);
  outline-offset: 0.22rem;
  border-radius: 0.2rem;
}

h1,
h2,
h3,
.wordmark,
.price {
  margin-block-start: 0;
  color: var(--navy);
  font-family: "Lilita One", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

h1 {
  max-width: 14ch;
  margin-block-end: var(--space-4);
  font-size: var(--step-3);
}

h2 {
  margin-block-end: var(--space-4);
  font-size: var(--step-2);
}

p {
  margin-block: 0 var(--space-3);
  line-height: 1.65;
}

.shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.readable {
  max-width: var(--readable-width);
}

.skip-link {
  position: absolute;
  z-index: 20;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--paper);
  background: var(--navy);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.site-header {
  border-block-end: 1px solid var(--rule);
  background: rgb(254 245 226 / 94%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  min-height: 5rem;
  padding-block: var(--space-2);
}

.wordmark {
  color: var(--navy);
  font-size: var(--step-1);
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-block: var(--space-2);
  color: var(--navy);
  font-size: var(--step--1);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.28rem;
}

.hero,
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  align-items: center;
  gap: var(--space-6);
  min-height: min(46rem, calc(100vh - 5rem));
  padding-block: var(--space-7);
}

.hero__deck,
.product-promise {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.eyebrow {
  margin-block-end: var(--space-2);
  color: var(--blue);
  font-size: var(--step--1);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--gold);
  box-shadow: var(--shadow-button);
  font-family: "Nunito", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  color: var(--navy);
  background: var(--paper);
  transform: translateY(0.12rem);
  box-shadow: 0 0.18rem 0 var(--navy);
}

.button--disabled {
  color: #536278;
  background: var(--rule);
  box-shadow: none;
  cursor: not-allowed;
}

.hero__visual,
.product-hero__media,
.product-card__covers {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.hero__visual {
  min-height: 38rem;
}

.hero__cover,
.product-cover,
.product-card__cover {
  width: min(56%, 21rem);
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  object-fit: contain;
}

.hero__cover--back,
.product-cover--back,
.product-card__cover--back {
  position: absolute;
  inset-block-start: 8%;
  inset-inline-end: 4%;
  z-index: 1;
  transform: rotate(4deg);
}

.hero__cover--front,
.product-cover--front,
.product-card__cover--front {
  position: absolute;
  inset-block-start: 2%;
  inset-inline-start: 7%;
  z-index: 2;
  transform: rotate(-3deg);
}

.hero__note {
  position: absolute;
  z-index: 3;
  inset-inline-end: 1%;
  inset-block-end: 4%;
  max-width: 14rem;
  padding: var(--space-3);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0.35rem 0.35rem 0 var(--gold);
  transform: rotate(-2deg);
}

.hero__note span {
  color: var(--gold);
  font-size: 1.8rem;
  -webkit-text-stroke: 1px var(--navy);
}

.hero__note p {
  margin: 0;
  line-height: 1.35;
}

.catalog,
.product-gallery,
.differentials,
.editorial-care,
.product-faq,
.legal-page {
  padding-block: var(--space-7);
}

.chapter-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-5);
  border-block-end: 2px solid var(--navy);
}

.chapter-heading p {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  color: var(--navy);
  background: var(--gold);
}

.chapter-heading h2 {
  margin: 0;
  padding-block-end: var(--space-2);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-6);
  align-items: center;
}

.product-card__covers,
.product-hero__media {
  min-height: 36rem;
}

.product-card__copy {
  max-width: 38rem;
}

.fact-list,
.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.fact-list li,
.product-facts li {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: var(--step--1);
}

.price {
  margin-block: var(--space-3);
  font-size: var(--step-2);
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  font-size: var(--step-1);
}

.section-band {
  padding-block: var(--space-7);
  border-block: 1px solid var(--rule);
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  display: grid;
  gap: var(--space-2);
  padding-block-start: var(--space-3);
  border-block-start: 0.4rem solid var(--gold);
  counter-increment: steps;
}

.steps li::before {
  color: var(--blue);
  content: "0" counter(steps);
  font-family: "Lilita One", Impact, sans-serif;
  font-size: var(--step-1);
}

.steps--four {
  grid-template-columns: repeat(4, 1fr);
}

.steps li {
  align-content: start;
}

.steps span {
  color: var(--ink-soft);
}

.differential-list,
.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.differential-list li,
.included-list li {
  padding: var(--space-4);
  border-inline-start: 0.45rem solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--paper);
}

details {
  border-block-start: 1px solid var(--rule);
}

details:last-of-type {
  border-block-end: 1px solid var(--rule);
}

summary {
  min-height: 48px;
  padding-block: var(--space-3);
  cursor: pointer;
}

details p {
  color: var(--ink-soft);
}

.site-footer {
  padding-block: var(--space-5);
  border-block-start: 0.45rem solid var(--gold);
  color: var(--paper);
  background: var(--navy);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer strong {
  font-family: "Lilita One", Impact, sans-serif;
  font-size: var(--step-1);
}

.site-footer p {
  max-width: 32rem;
  margin-block: var(--space-1) 0;
}

.site-footer a,
.site-footer nav a {
  color: var(--paper);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-block-start: var(--space-4);
  font-size: var(--step--1);
}

.product-hero {
  min-height: auto;
}

.checkout-support {
  margin-block-start: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.checkout-guarantee {
  margin-block-start: var(--space-1);
  color: var(--navy);
  font-size: var(--step--1);
}

.checkout-guarantee::before {
  margin-inline-end: 0.35rem;
  color: var(--blue);
  content: "✓";
}

.product-name {
  margin-block-end: var(--space-1);
  color: var(--ink-soft);
  font-size: var(--step-0);
}

.product-buy .price {
  margin-block-end: 0.25rem;
}

.price-note {
  margin-block: 0 var(--space-3);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.product-description {
  margin-block-start: var(--space-4);
}

.buy-bar {
  display: none;
}

.site-header__inner--delivery {
  min-height: 4.25rem;
}

.delivery-header__label {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.delivery-page {
  padding-block: var(--space-6) var(--space-7);
}

.delivery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 24rem);
  align-items: center;
  gap: var(--space-6);
}

.delivery-intro__copy {
  max-width: 42rem;
}

.delivery-intro__copy > p {
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.delivery-covers {
  position: relative;
  min-height: 23rem;
}

.delivery-cover {
  position: absolute;
  inset-block-start: 50%;
  width: min(58%, 13rem);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-paper);
}

.delivery-cover--front {
  inset-inline-start: 11%;
  z-index: 2;
  transform: translateY(-54%) rotate(-3deg);
}

.delivery-cover--back {
  inset-inline-end: 8%;
  transform: translateY(-46%) rotate(4deg);
}

.delivery-files {
  max-width: 58rem;
  padding-block-start: var(--space-5);
}

.delivery-files > h2 {
  text-align: center;
}

.delivery-file-list {
  display: grid;
  gap: var(--space-3);
}

.delivery-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 0.7rem 1.8rem rgb(7 27 63 / 10%);
}

.delivery-file h3 {
  margin-block-end: var(--space-1);
  font-size: var(--step-1);
}

.delivery-file p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.download-action {
  min-width: 13.5rem;
  box-shadow: 0 0.65rem 1.3rem rgb(7 27 63 / 18%);
}

.download-action:hover {
  box-shadow: 0 0.4rem 1rem rgb(7 27 63 / 16%);
}

.delivery-print {
  max-width: 46rem;
  margin-block-start: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 56%);
}

.delivery-print h2 {
  margin-block-end: var(--space-2);
  font-size: var(--step-1);
}

.delivery-print p {
  margin: 0;
}

.delivery-footer__inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-5);
}

.gallery__item {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  color: var(--navy);
  background: var(--paper);
  box-shadow: 0 0.6rem 1.4rem rgb(7 27 63 / 8%);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gallery__item:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--shadow-paper);
}

.gallery__image {
  width: 100%;
  aspect-ratio: 720 / 1019;
  border-radius: calc(var(--radius-md) - var(--space-1));
  background: var(--cream);
  object-fit: contain;
}

.final-offer__inner {
  text-align: center;
}

.final-offer__inner h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.preview-notice {
  padding: var(--space-4);
  border: 2px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.gallery-dialog {
  width: min(94vw, 68rem);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--navy);
  background: var(--cream);
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 45%);
}

.gallery-dialog::backdrop {
  background: rgb(7 27 63 / 88%);
}

.gallery-dialog__frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 92vh;
}

.gallery-dialog__top,
.gallery-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
}

.gallery-dialog__image {
  width: 100%;
  max-height: 72vh;
  padding-inline: var(--space-3);
  object-fit: contain;
}

.gallery-dialog button {
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--paper);
  font: inherit;
  cursor: pointer;
}

.gallery-dialog__close {
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-1);
  }

  .hero,
  .product-hero,
  .product-card {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .site-header__inner--delivery {
    align-items: center;
    flex-direction: row;
  }

  .delivery-page {
    padding-block-start: var(--space-4);
  }

  .delivery-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }

  .delivery-intro__copy {
    text-align: center;
  }

  .delivery-intro__copy h1 {
    margin-inline: auto;
    margin-block-end: var(--space-2);
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .delivery-intro__copy > p {
    margin-block-end: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .delivery-covers {
    min-height: 8rem;
  }

  .delivery-cover {
    width: min(30%, 5.8rem);
  }

  .delivery-cover--front {
    inset-inline-start: 33%;
  }

  .delivery-cover--back {
    inset-inline-end: 32%;
  }

  .delivery-files {
    padding-block-start: var(--space-1);
  }

  .delivery-files > h2 {
    margin-block-end: var(--space-2);
    font-size: var(--step-1);
  }

  .delivery-file {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 9.75rem);
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
  }

  .delivery-file h3 {
    margin-block-end: 0.2rem;
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .delivery-file p {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .download-action {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .delivery-footer__inner {
    min-height: 7rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .hero,
  .product-hero {
    min-height: auto;
    padding-block: var(--space-6);
  }

  .hero__visual,
  .product-card__covers,
  .product-hero__media {
    min-height: min(135vw, 34rem);
  }

  .hero__cover,
  .product-cover,
  .product-card__cover {
    width: min(55%, 18rem);
  }

  .steps,
  .steps--four,
  .differential-list,
  .included-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog,
  .product-gallery,
  .differentials,
  .editorial-care,
  .product-faq,
  .legal-page,
  .section-band {
    padding-block: var(--space-6);
  }

  /* Product page: name, headline, price and button come before the covers. */
  .product-hero {
    padding-block: var(--space-4) var(--space-5);
  }

  .product-hero__copy {
    order: -1;
  }

  .product-hero__copy h1 {
    margin-block-end: var(--space-2);
    font-size: clamp(1.7rem, 7.6vw, 2.2rem);
    line-height: 1.05;
  }

  .product-promise {
    margin-block-end: var(--space-2);
  }

  .product-facts {
    padding-block-start: 0;
  }

  .product-buy .price {
    margin-block-start: var(--space-2);
  }

  .product-hero__media {
    min-height: min(105vw, 26rem);
  }

  .buy-bar:not([hidden]) {
    position: fixed;
    z-index: 20;
    inset-inline: 0;
    inset-block-end: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-block-start: 2px solid var(--navy);
    background: var(--cream);
    box-shadow: 0 -0.6rem 1.5rem rgb(7 27 63 / 14%);
  }

  .buy-bar__title {
    display: grid;
    margin: 0;
    color: var(--navy);
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .buy-bar__title span {
    color: var(--ink-soft);
    font-size: 0.78rem;
  }

  .buy-bar .button {
    flex-shrink: 0;
    padding-inline: 0.9rem;
    font-size: 0.92rem;
  }

  .site-footer {
    padding-block-end: 5.5rem;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .site-header nav a {
    font-size: 0.78rem;
  }

  .hero__note {
    max-width: 11rem;
    font-size: 0.82rem;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-dialog__footer {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .button,
  .text-link,
  .breadcrumb,
  .gallery-dialog,
  .buy-bar,
  .hero__note {
    display: none !important;
  }

  body,
  .section-band {
    color: #071b3f;
    background: #ffffff;
  }

  .hero,
  .product-hero,
  .product-card {
    display: block;
  }

  .hero__visual,
  .product-card__covers,
  .product-hero__media {
    min-height: 26rem;
  }
}
