: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: clamp(24px, 4vw, 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(360px, .93fr) minmax(520px, 1.07fr);
  gap: clamp(50px, 7vw, 120px);
  align-items: start;
}

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

.book-cover {
  display: block;
  width: min(100%, 760px);
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  filter: drop-shadow(0 38px 24px rgba(70, 0, 0, .28));
}

.cover-date {
  margin: 0 0 16px;
  padding: 9px 0;
  width: 100%;
  max-width: 300px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  border-top: 1px solid rgba(255, 253, 248, .55);
  border-bottom: 1px solid rgba(255, 253, 248, .55);
}

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

h1 { margin: 0 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, 0.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: 980px) {
  .page-shell { padding: 28px clamp(20px, 5vw, 48px) 52px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .book-cover { width: min(76vw, 600px); max-height: none; }
  .content-column { width: min(100%, 760px); margin: 0 auto; }
  h1 { max-width: none; font-size: clamp(38px, 8.2vw, 68px); }
}

@media (max-width: 620px) {
  .page-shell { padding: 20px 18px 42px; }
  .book-cover { width: min(88vw, 450px); }
  .hero { gap: 14px; }
  h1 { margin-bottom: 22px; font-size: clamp(24px, 8vw, 44px); }
  .counter-actions { gap: 10px; }
  .counter-button { min-height: 68px; grid-template-columns: 44px 1fr 10px; padding: 10px 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 (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .snowflake, .shooting-star { display: none; }
}
