/* ==========================================================================
   Papyri Stores - Home page
   Design reference: 1440px desktop frame, iPhone mobile frame.
   ========================================================================== */

:root {
  --red: #d61319;
  --red-dark: #c3090f;
  --yellow: #d6d213;
  --ink: #252820;
  --black: #000;
  --white: #fff;
  --grey: #d9d9d9;

  --container: 1147px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.red { color: var(--red); }

.btn {
  display: inline-block;
  min-width: 91px;
  padding: 7px 18px 6px;
  border: 0;
  border-radius: 5px;
  background: var(--red);
  color: var(--yellow);
  font: 700 19px/1 var(--font-body);
  text-transform: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, transform .1s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible,
a:focus-visible,
input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ===== Header ===== */
.site-header { padding: 46px 0 44px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* the design lets the header run a little wider than the content column */
  max-width: calc(1154px + var(--gutter) * 2);
  padding-left: calc(var(--gutter) - 7px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.brand-logo { width: 70px; height: auto; }
.brand-name {
  font: 400 32px/1 var(--font-brand);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: .01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  padding: 6px 10px;
  border-radius: 5px;
  font: 400 19px/1 var(--font-body);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active {
  min-width: 91px;
  text-align: center;
  background: var(--red);
  color: var(--yellow);
  font-weight: 700;
}

/* ===== Ticker (right-to-left announcement) ===== */
.ticker {
  overflow: hidden;
  height: 20px;
  background: var(--red);
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  flex-shrink: 0;
  padding-inline: 60px;
  font: 400 14px/1 var(--font-fun);
  color: var(--yellow);
  white-space: nowrap;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* The track holds 4 identical copies: moving by half loops seamlessly. */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Hero ===== */
.hero { padding: 58px 0 81px; }

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 57px;
  font: 400 36px/35px var(--font-hero);
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.hero-icon { width: 74px; }

.carousel {
  position: relative;
  aspect-ratio: 1147 / 484;
  background: var(--grey);
  border-radius: 5px;
  overflow: hidden;
}
.carousel-signature {
  position: absolute;
  left: 2%;
  bottom: 8%;
  font: 400 80px/1 var(--font-signature);
  color: var(--ink);
  opacity: .8;
  pointer-events: none;
  z-index: 2;
}

.carousel-viewport {
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.carousel.dragging .carousel-track { transition: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2%;
  padding: 0 7% 0 9%; /* clear of the arrow buttons */
  user-select: none;
}
.slide--cream  { background: #f7efdf; }
.slide--pink   { background: #fbe2df; }
.slide--yellow { background: #f2efc6; }

.slide-text {
  flex: 0 1 40%;
  margin-bottom: 9%; /* keep clear of the Minook signature */
}
.slide-text h2 {
  font: 400 clamp(26px, 3.4vw, 46px)/1.05 var(--font-hero);
  text-transform: uppercase;
  color: var(--ink);
}
.slide-text p {
  margin-top: 14px;
  font: 400 clamp(15px, 1.5vw, 21px)/1.35 var(--font-body);
  color: var(--ink);
}
.slide-art {
  flex: 0 1 54%;
  width: 54%;
  max-height: 96%;
  object-fit: contain;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  font: 400 32px/1 var(--font-body);
  padding-bottom: 4px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.carousel-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.carousel-btn--prev { left: 14px; }
.carousel-btn--next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width .25s, background-color .25s;
}
.carousel-dots button[aria-current="true"] {
  width: 26px;
  border-radius: 5px;
  background: var(--red);
  border-color: var(--red);
}
.carousel-btn:focus-visible,
.carousel-dots button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.selling-fast {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: 99px;
  font: 400 36px/1 var(--font-brand);
  text-transform: uppercase;
  color: var(--black);
}
.selling-fast span { padding-bottom: 12px; }
.selling-fast img { width: 47px; }

/* ===== What's inside ===== */
.inside {
  border: 4px solid var(--red);
  border-top: 0;
  padding: 50px 0 28px;
}

.section-title {
  font: 700 32px/1.1 var(--font-body);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}

.inside .section-title { margin-bottom: 28px; }

.item-card img,
.sheet-card img {
  width: 100%;
  aspect-ratio: 209 / 296;
  object-fit: cover;
  border: 1px solid var(--black);
  background: var(--white);
}
.item-card h3 {
  margin: 16px 0 8px;
  font: 700 20px/1 var(--font-body);
}
.item-card p {
  font: 400 12px/16px var(--font-body);
}

/* ===== Bands ===== */
.band {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.band-edition { height: 149px; }
.band-edition h2 {
  font: 400 40px/1 var(--font-brand);
  text-transform: uppercase;
  color: var(--white);
}
.band-plain { height: 172px; }

/* ===== Coloring sheets ===== */
.sheets {
  border-inline: 1px solid var(--black);
  padding: 58px 0 54px;
}
.sheets-box {
  border: 1px solid var(--black);
  border-radius: 15px;
  padding: 34px 38px 38px;
  max-width: 1272px;
  margin-inline: calc((var(--container) - 1272px) / 2);
}
.sheets-title {
  margin-bottom: 26px;
  font: 400 32px/1 var(--font-grow);
  text-align: center;
}
.sheet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sheet-card .level {
  margin-top: 13px;
  font: 400 14px/1 var(--font-grow);
}
.sheet-card .level-name {
  margin-top: 4px;
  font: 400 24px/1 var(--font-grow);
}

.levels-tagline {
  margin-top: 52px;
  font: 400 33.5px/1.1 var(--font-fun);
  color: var(--red);
  text-align: center;
}
.levels-note {
  margin-top: 18px;
  font: italic 400 24px/1 var(--font-body);
  text-align: center;
}

/* ===== Bulk enquiry ===== */
.enquiry { padding: 108px 0 112px; }
.enquiry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-inline: calc(var(--gutter) + 134px);
}

.enquiry-title { font-size: 48px; margin-bottom: 30px; }

.enquiry-form {
  width: 360px;
  max-width: 100%;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field {
  display: block;
  margin-bottom: 21px;
}
.field span {
  display: block;
  margin-bottom: 5px;
  font: 400 24px/1 var(--font-body);
}
.field .req {
  color: var(--red);
  text-decoration: none;
}
.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--white);
  font: 400 20px/1 var(--font-body);
  color: var(--ink);
}
.field input:disabled { background: #f3f3f3; }
.field.invalid input { border-color: var(--red); }
.field .error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--red);
}

.same-as {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -14px 0 36px;
  font: 400 12px/1 var(--font-body);
  cursor: pointer;
}
.same-as input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--red);
}

.enquiry-form .btn {
  min-width: 100px;
  padding-block: 8px 7px;
  font-size: 21px;
}
.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  font-size: 16px;
}
.form-status.error { color: var(--red); }
.form-status.success { color: #1d7a32; }
.field input[readonly] { background: #f3f3f3; }

.enquiry-quote {
  max-width: 332px;
  font: 700 45px/60px var(--font-body);
  text-align: right;
  color: var(--ink);
}

/* ===== Monthly club ===== */
.club {
  background: var(--ink);
  color: var(--white);
  padding: 84px 0 94px;
  text-align: center;
}
.club-title {
  font: 400 48px/1 var(--font-brand);
  text-transform: uppercase;
  color: var(--yellow);
}
.club-intro {
  margin-top: 40px;
  font: 400 32px/43px var(--font-body);
}

.plans {
  display: flex;
  justify-content: center;
  gap: 69px;
  margin-top: 150px;
}
.plan { width: 246px; }
.plan-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--grey);
  overflow: hidden;
}
.plan-image--minook { background: #f7efdf; }
.plan-image--sheets { background: #f2efc6; }
.plan-image--combo  { background: #fbe2df; }

.plan-image .minook-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Coloring sheets fanned out like a hand of cards */
.fan {
  position: absolute;
  inset: 0;
}
.fan img {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 40%;
  aspect-ratio: 209 / 296;
  object-fit: cover;
  margin-left: -20%;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 0 6px 14px rgba(37, 40, 32, .25);
  transform-origin: 50% 120%;
  transition: transform .35s ease;
}
/* Centre card on top, outer cards tucked underneath */
.fan img:nth-child(1) { transform: rotate(-28deg); z-index: 1; }
.fan img:nth-child(2) { transform: rotate(-14deg); z-index: 2; }
.fan img:nth-child(3) { transform: rotate(0deg);   z-index: 5; }
.fan img:nth-child(4) { transform: rotate(14deg);  z-index: 4; }
.fan img:nth-child(5) { transform: rotate(28deg);  z-index: 3; }
.plan:hover .fan img:nth-child(1) { transform: rotate(-34deg); }
.plan:hover .fan img:nth-child(2) { transform: rotate(-17deg) translateY(-4px); }
.plan:hover .fan img:nth-child(3) { transform: translateY(-8px); }
.plan:hover .fan img:nth-child(4) { transform: rotate(17deg) translateY(-4px); }
.plan:hover .fan img:nth-child(5) { transform: rotate(34deg); }

/* Combo: smaller fan behind, Minook in front */
.plan-image--combo .fan { transform: translate(-14%, -8%) scale(.82); }
.plan-image--combo .minook-shot {
  inset: auto -4% -6% auto;
  width: 66%;
  height: 66%;
  filter: drop-shadow(0 8px 12px rgba(37, 40, 32, .25));
}

.plan-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px 3px;
  border-radius: 999px;
  background: var(--red);
  color: var(--yellow);
  font: 700 14px/1.2 var(--font-body);
  letter-spacing: .02em;
  z-index: 10;
}
.plan-image--combo .minook-shot { z-index: 6; }

@media (prefers-reduced-motion: reduce) {
  .fan img { transition: none; }
}
.plan h3 {
  margin-top: 18px;
  font: 700 24px/1.1 var(--font-body);
}
.plan .price {
  margin-top: 4px;
  font: italic 600 24px/1.1 var(--font-body);
  color: var(--red);
}
.plan-note {
  margin-top: 4px;
  font: italic 400 15px/1.2 var(--font-body);
}
.club-cta { margin-top: 50px; }

/* ===== Join modal ===== */
.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 40px 40px 32px;
  border: 1px solid var(--black);
  border-top: 8px solid var(--red);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  overflow-y: auto;
}
.modal::backdrop {
  background: rgba(37, 40, 32, .7);
}
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font: 400 32px/1 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.modal-close:hover { color: var(--red); }
.modal-title {
  font: 400 32px/1 var(--font-brand);
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
}
.modal-intro {
  margin: 12px 0 24px;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}
.join-form .field { margin-bottom: 16px; }
.join-form .field span { font-size: 20px; }
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--white);
  font: 400 20px/1.3 var(--font-body);
  color: var(--ink);
}
.field select {
  height: 50px;
  padding: 0 40px 0 14px;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23252820' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.field textarea {
  display: block;
  padding: 10px 14px;
  resize: vertical;
  min-height: 100px;
}
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.field.invalid select,
.field.invalid textarea { border-color: var(--red); }
.join-form .btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding-block: 12px 11px;
  font-size: 21px;
}
.join-form .form-status { text-align: center; }
body.modal-open { overflow: hidden; }

@media (max-width: 767px) {
  .modal { padding: 36px 20px 24px; }
  .modal-title { font-size: 26px; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 167px;
  background: var(--black);
  color: var(--white);
  padding: 120px 24px 110px;
  text-align: center;
  font: 400 20px/1.2 var(--font-body);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand {
  margin-bottom: 38px;
  font: 400 40px/45px var(--font-footer);
  text-transform: uppercase;
}
/* Design: the ™ is a separate mark ~8px to the right, top-aligned with the word */
.footer-brand sup {
  margin-left: 8px;
  font: 400 28px/1 var(--font-body);
  vertical-align: top;
  position: relative;
  top: -.15em;
}
.footer-place { margin-top: 28px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1200px) {
  .sheets-box { margin-inline: 0; }
  .enquiry-inner { padding-inline: var(--gutter); }
  .plans { gap: 40px; }
}

@media (max-width: 1024px) {
  .card-row { gap: 16px; }
  .enquiry-quote { font-size: 36px; line-height: 48px; }
  .plans { margin-top: 80px; }
}

/* ==========================================================================
   Mobile (design: iPhone frame)
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .site-header { padding: 32px 0 20px; }
  .header-inner { justify-content: center; padding-left: var(--gutter); }
  .main-nav { display: none; }
  .brand-logo { width: 52px; }
  .brand-name { font-size: 26px; }

  .hero { padding: 36px 0 22px; }
  .hero-title {
    margin-bottom: 26px;
    font-size: 30px;
    line-height: 30px;
  }
  .hero-icon { display: none; }
  .carousel { aspect-ratio: 4 / 5; }
  .carousel-signature { font-size: 40px; bottom: 5%; left: 4%; }
  .slide {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 9% 7% 0;
  }
  .slide-text { flex: none; margin: 0; text-align: center; }
  .slide-text h2 { font-size: 26px; }
  .slide-text p { margin-top: 8px; font-size: 15px; }
  .slide-art { flex: none; width: 100%; max-height: 62%; margin-top: 4%; }
  .carousel-btn { width: 36px; height: 36px; margin-top: -18px; font-size: 26px; }
  .carousel-btn--prev { left: 8px; }
  .carousel-btn--next { right: 8px; }
  .carousel-dots { bottom: 14px; left: auto; right: 6%; transform: none; }

  .selling-fast { margin-top: 44px; font-size: 28px; }
  .selling-fast span { padding-bottom: 10px; }
  .selling-fast img { width: 40px; }

  .inside { padding: 22px 0 22px; border-width: 0; }
  .section-title { font-size: 22px; }
  .inside .section-title { margin-bottom: 14px; }

  /* Cards scroll sideways on phones, as in the mobile design */
  .card-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .card-row::-webkit-scrollbar { display: none; }
  .card-row > li {
    flex: 0 0 36%;
    scroll-snap-align: start;
  }
  .item-card h3 { font-size: 16px; margin-top: 10px; }
  .item-card p { font-size: 10px; line-height: 13px; }

  .band-edition { height: 64px; }
  .band-edition h2 { font-size: 28px; }
  .band-plain { height: 72px; }

  .sheets { border: 0; padding: 4px 0 26px; }
  .sheets-box {
    border: 0;
    padding: 18px 0 0;
  }
  .sheets-title { font-size: 24px; margin-bottom: 14px; }
  .sheet-row > li { flex-basis: 33%; }
  .sheet-card .level { font-size: 10px; margin-top: 8px; }
  .sheet-card .level-name { font-size: 18px; }

  .levels-tagline { margin-top: 22px; font-size: 18px; }
  .levels-note { margin-top: 10px; font-size: 13px; }

  .enquiry { padding: 46px 0 60px; }
  .enquiry-inner {
    flex-direction: column-reverse;
    gap: 36px;
  }
  .enquiry-quote {
    max-width: 340px;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
  }
  .enquiry-form-wrap { width: 100%; max-width: 360px; }
  .enquiry-title { font-size: 40px; text-align: center; margin-bottom: 30px; }
  .enquiry-form { width: 100%; text-align: center; }
  .field { text-align: left; }
  .same-as { justify-content: flex-start; }

  .club { padding: 52px 0 64px; }
  .club-title { font-size: 34px; }
  .club-intro { margin-top: 24px; font-size: 20px; line-height: 28px; }
  .br-desktop { display: none; }

  .plans {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin-top: 48px;
  }
  .plan { width: min(100%, 300px); }
  .plan h3 { font-size: 26px; }
  .plan .price { font-size: 26px; }
  .plan-note { font-size: 16px; }
  .club-cta { margin-top: 28px; }

  .site-footer { margin-top: 100px; padding: 72px 16px 64px; font-size: 18px; }
  .footer-brand { font-size: 34px; margin-bottom: 26px; }
}
