
:root {
  --red: #e10600;
  --red-deep: #bd0500;
  --white: #fffdf8;
  --black: #090909;
  --line: rgba(255, 255, 255, .74);
  --max-width: 1480px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--red);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.055), transparent 29%),
    linear-gradient(135deg, var(--red) 0%, #eb0d08 48%, var(--red-deep) 135%);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.snow-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}

.snowflake {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: var(--white);
  animation: snow-fall linear forwards;
}

@keyframes snow-fall {
  from { transform: translate(0, 0); }
  to { transform: translate(var(--drift, 0px), 110vh); }
}

.page-shell {
  width: min(100%, 1800px);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    max(10px, env(safe-area-inset-top))
    clamp(20px, 4vw, 72px)
    clamp(42px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(500px, 1.08fr);
  gap: clamp(42px, 6vw, 104px);
  align-items: start;
}

.book-column {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.book-stage {
  position: relative;
  width: min(100%, 720px);
  line-height: 0;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 34px 22px rgba(70, 0, 0, .28));
}

.release-badge {
  position: absolute;
  z-index: 2;
  top: clamp(8px, 1.1vw, 16px);
  right: clamp(-8px, -.4vw, -2px);
  margin: 0;
  padding: 10px 15px 11px;
  display: grid;
  gap: 2px;
  line-height: 1;
  text-align: left;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--white);
  box-shadow: 7px 7px 0 rgba(116, 0, 0, .35);
  transform: rotate(1.5deg);
}

.release-badge span {
  font-size: clamp(10px, .76vw, 13px);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.release-badge strong {
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-column { min-width: 0; }

h1 {
  margin: clamp(8px, 1.2vw, 18px) 0 clamp(24px, 2.6vw, 42px);
  max-width: 13ch;
  font-size: clamp(56px, 5.1vw, 94px);
  line-height: .93;
  letter-spacing: -.045em;
  text-transform: uppercase;
  font-weight: 900;
}

h1 .h1-line,
h1 strong {
  display: block;
  white-space: nowrap;
  font-weight: inherit;
}

.counter-actions {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.counter-button {
  width: 100%;
  min-height: 72px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 12px 18px;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.15;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.counter-button:hover { transform: translateY(-2px); }
.counter-button:active { transform: translateY(0); }
.counter-button:focus-visible,
.postcode-form button:focus-visible,
.store-link:focus-visible,
.postcode-form input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 253, 248, .55);
}

.postcode-form input:focus-visible { border-color: var(--white); }

.counter-button-primary {
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--red);
  font-size: clamp(21px, 1.65vw, 31px);
}

.counter-button-secondary {
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: clamp(14px, 1.03vw, 18px);
}

.counter-button .symbol {
  grid-column: 1;
  font-size: 1.7em;
  line-height: 1;
  font-weight: 400;
}

.counter-button span:last-child { grid-column: 2; }
.counter-button[hidden] { display: none; }

.bookstore-section {
  max-width: 790px;
  margin-top: clamp(28px, 3vw, 52px);
}

.bookstore-section h2 {
  margin: 0 0 6px;
  font-size: clamp(23px, 1.8vw, 31px);
  line-height: 1.08;
}

.bookstore-section > p {
  max-width: 68ch;
  margin: 0 0 24px;
  font-size: clamp(16px, 1.18vw, 20px);
  line-height: 1.45;
}

.postcode-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  margin-bottom: 12px;
}

.postcode-form input,
.postcode-form button {
  min-height: 62px;
  border-radius: 8px;
  border: 2px solid var(--white);
}

.postcode-form input {
  min-width: 0;
  padding: 0 18px;
  color: var(--white);
  background: rgba(145, 0, 0, .12);
  font-size: clamp(18px, 1.4vw, 24px);
}

.postcode-form input::placeholder { color: rgba(255,255,255,.72); }

.postcode-form button {
  padding: 0 28px;
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}

.finder-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
}

.store-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.store-item { border-top: 1px solid var(--line); }
.store-item:last-child { border-bottom: 1px solid var(--line); }

.store-link {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 16px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(17px, 1.3vw, 23px);
}

.pin {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--white);
  flex-shrink: 0;
}

.pin svg { width: 100%; height: 100%; }
.store-name { font-weight: 800; }
.store-city { font-weight: 400; }

.rating-section {
  width: min(100%, var(--max-width));
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding-top: clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.rating-section h2 {
  margin: 0 0 10px;
  font-size: clamp(12px, .9vw, 14px);
  font-weight: 400;
  opacity: .75;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.star {
  background: none;
  border: none;
  color: rgba(255, 253, 248, .35);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1;
  padding: 2px;
  transition: transform .12s ease, color .12s ease;
}

.star:hover,
.star:focus-visible { transform: scale(1.12); }
.star.filled { color: #ffd54a; }

.shooting-star {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff6d8;
  box-shadow: 0 0 30px 10px rgba(255, 246, 216, .95);
  z-index: 60;
  animation: shoot-star-arc 1.3s cubic-bezier(.25, .7, .3, 1) forwards;
}

.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 380px;
  height: 5px;
  transform: translateY(-50%);
  background: linear-gradient(to left, rgba(255, 246, 216, .95), transparent);
}

@keyframes shoot-star-arc {
  0%   { transform: translate(0, 0) rotate(0deg) scale(.5); opacity: 1; }
  15%  { transform: translate(-40px, -90px) rotate(-20deg) scale(1); opacity: 1; }
  40%  { transform: translate(-170px, -230px) rotate(-45deg) scale(1.05); }
  70%  { transform: translate(-400px, -320px) rotate(-70deg) scale(1); }
  100% { transform: translate(-680px, -270px) rotate(-92deg) scale(.6); opacity: 0; }
}

.store-cta {
  min-width: 116px;
  padding: 10px 18px;
  border: 2px solid var(--white);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.store-link:hover .store-cta { background: var(--white); color: var(--red); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .page-shell {
    padding-top: max(4px, env(safe-area-inset-top));
    padding-right: clamp(20px, 5vw, 48px);
    padding-left: clamp(20px, 5vw, 48px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .book-stage { width: min(72vw, 540px); }
  .content-column { width: min(100%, 760px); margin: 0 auto; }
  h1 {
    max-width: none;
    margin-top: 0;
    font-size: clamp(38px, 8.2vw, 68px);
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding:
      max(0px, env(safe-area-inset-top))
      18px
      42px;
  }

  .book-stage {
    width: min(93vw, 440px);
    margin-top: -2px;
  }

  .release-badge {
    top: 8px;
    right: -4px;
    padding: 8px 11px 9px;
    border-width: 1.5px;
    box-shadow: 5px 5px 0 rgba(116, 0, 0, .34);
  }

  .release-badge span { font-size: 9px; }
  .release-badge strong { font-size: clamp(14px, 4.1vw, 18px); }

  .hero { gap: 4px; }
  h1 {
    margin: 0 0 22px;
    font-size: clamp(24px, 8vw, 44px);
  }

  .counter-actions { gap: 10px; }
  .counter-button {
    min-height: 68px;
    grid-template-columns: 44px 1fr 10px;
    padding: 10px;
  }
  .counter-button-primary { font-size: clamp(19px, 5.7vw, 25px); }
  .counter-button-secondary { font-size: clamp(12px, 3.7vw, 16px); }

  .bookstore-section { margin-top: 26px; }
  .bookstore-section h2 { font-size: 24px; }
  .bookstore-section > p { font-size: 17px; }

  .postcode-form { grid-template-columns: 1fr; gap: 10px; }
  .postcode-form input,
  .postcode-form button { width: 100%; min-height: 58px; }

  .store-link {
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    min-height: 68px;
    font-size: 17px;
  }

  .store-name,
  .store-city { display: block; }
  .store-city { margin-top: 2px; }
  .store-cta { min-width: 82px; padding: 9px 11px; }
}

@media (max-width: 390px) {
  .page-shell { padding-right: 14px; padding-left: 14px; }
  .book-stage { width: min(96vw, 410px); }
  .release-badge { right: 0; }
  .counter-button-secondary { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .snowflake, .shooting-star { display: none; }
}
