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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, #efe3d1 0, #efe3d1 64%, #173a46 64%, #173a46 100%);
  color: #111111;
  font-family: "Oswald", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.atlas-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #111111;
  color: #f6eddc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.atlas-bar__brand,
.atlas-bar__source {
  font-size: 0.9rem;
}

.atlas-bar__route {
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 1.4rem;
  max-width: 1480px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 4rem;
}

.atlas-hero,
.atlas-section,
.atlas-order,
.atlas-note {
  background: #f6eddc;
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 1rem;
  position: relative;
}

.atlas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 12px solid transparent;
  border-top-color: #c6502c;
  pointer-events: none;
}

.atlas-hero__copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1rem;
  background: #f2c96c;
  color: #111111;
}

.atlas-label {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atlas-hero h1,
.atlas-section h2 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.atlas-lead,
.atlas-note li,
.offer-band__copy p,
.offer-band li,
.print-sheet__meta span,
.receipt-stat span,
.receipt-line__info span,
.empty-state {
  font-family: "Space Mono", monospace;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.78);
}

.atlas-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.atlas-stats div {
  padding: 0.85rem;
  background: rgba(246, 237, 220, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.atlas-stats dt {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.atlas-stats dd {
  margin: 0.4rem 0 0;
  font-size: 1.45rem;
}

.atlas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.atlas-actions a,
.atlas-button,
.atlas-form button,
.receipt-line__actions button,
.size-switch button {
  border: 1px solid #111111;
  background: #111111;
  color: #f6eddc;
  padding: 0.72rem 1rem;
}

.atlas-button--ghost,
.receipt-line__actions button,
.size-switch button.is-active,
.atlas-actions a:last-child {
  background: transparent;
  color: #111111;
}

.size-switch button.is-active {
  background: #c6502c;
  color: #f6eddc;
}

.atlas-hero__wall {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 0.7rem;
  min-height: 32rem;
  background: #173a46;
  padding: 0.7rem;
}

.wall-cell {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #f6eddc;
}

.wall-cell--poster {
  grid-row: span 2;
}

.wall-cell img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.wall-cell figcaption {
  padding: 0.45rem 0.6rem 0.55rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.atlas-section,
.atlas-note,
.atlas-order {
  padding: 1.15rem;
}

.atlas-section__head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.atlas-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.atlas-packs-list {
  display: grid;
  gap: 0;
}

.offer-band {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 10rem;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.offer-band:first-child {
  border-top: 0;
  padding-top: 0;
}

.offer-band__index {
  font-family: "Space Mono", monospace;
  color: rgba(17, 17, 17, 0.58);
}

.offer-band h3 {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.offer-band__copy p {
  margin: 0.35rem 0 0;
}

.offer-band__copy ul,
.atlas-note ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.offer-band__buy {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.offer-band__buy strong {
  font-size: 1.5rem;
}

.atlas-order {
  position: sticky;
  top: 1rem;
  background:
    repeating-linear-gradient(
      to bottom,
      #f6eddc,
      #f6eddc 28px,
      #ecd9bf 28px,
      #ecd9bf 29px
    );
}

.atlas-summary {
  display: grid;
  gap: 0.65rem;
}

.receipt-stat {
  padding: 0.75rem 0 0.8rem;
  border-top: 1px dashed rgba(17, 17, 17, 0.38);
}

.receipt-stat:first-child {
  border-top: 0;
  padding-top: 0;
}

.receipt-stat strong {
  display: block;
  font-size: 1.4rem;
}

.receipt-stat a {
  text-decoration: underline;
}

.atlas-cart {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.receipt-line {
  padding: 0.85rem 0;
  border-top: 1px dashed rgba(17, 17, 17, 0.28);
}

.receipt-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.receipt-line__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.receipt-line__info strong {
  display: block;
  margin-bottom: 0.2rem;
}

.receipt-line__actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.6rem;
}

.atlas-form {
  display: grid;
  gap: 0.8rem;
}

.atlas-form label {
  display: grid;
  gap: 0.35rem;
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.atlas-form input,
.atlas-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.25);
  background: rgba(255, 255, 255, 0.48);
  color: #111111;
  padding: 0.8rem 0.9rem;
}

.atlas-form textarea {
  min-height: 7.2rem;
  resize: vertical;
}

.atlas-status {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  font-family: "Space Mono", monospace;
}

.atlas-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.print-sheet {
  display: grid;
  background: #fff8eb;
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.print-sheet img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.print-sheet__body {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
}

.print-sheet__meta strong {
  display: block;
  margin-bottom: 0.2rem;
}

.size-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.photo-fallback {
  position: relative;
  min-height: 12rem;
}

.photo-fallback::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(198, 80, 44, 0.18), rgba(23, 58, 70, 0.18));
  color: #111111;
}

@media (max-width: 1180px) {
  body {
    background: #efe3d1;
  }

  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .atlas-order {
    position: static;
  }
}

@media (max-width: 860px) {
  .atlas-bar,
  .atlas-hero,
  .atlas-scenes,
  .atlas-stats {
    grid-template-columns: 1fr;
  }

  .atlas-hero__wall {
    min-height: 0;
  }

  .wall-cell--poster {
    grid-row: auto;
  }

  .offer-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .atlas-layout,
  .atlas-bar {
    padding-inline: 1rem;
  }

  .atlas-scenes,
  .atlas-hero__wall {
    grid-template-columns: 1fr;
  }

  .receipt-line__row {
    flex-direction: column;
  }
}
