/* Wordmark font supplied by the user; Satoshi files are loaded locally. */
@font-face {
  font-family: "bauhaub";
  src: url("https://static.wfonts.com/data/2016/05/19/bauhaus-bold/bauhaub.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/satoshi/Satoshi-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/satoshi/Satoshi-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/satoshi/Satoshi-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: "Satoshi", Arial, sans-serif;
  color: #242622;
  background: var(--page-background);
  font-synthesis: none;
  --page-background: #f7f6f2;
  --muted: #71736e;
  --line: #e8e5de;
  --surface: #f2f0eb;
  --panel: #fffefa;
  --radius-small: 10px;
  --radius-media: 20px;
  --radius-panel: 24px;
  --gutter: clamp(16px, 3vw, 56px);
}

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

body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

body:has(dialog[open]) {
  overflow: hidden;
}

html {
  scrollbar-gutter: stable;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid #435e50;
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

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

.page-width {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--page-background);
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 80px;
}

.site-logo img {
  width: auto;
  height: 72px;
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .site-header {
    background: rgb(247 246 242 / 78%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "bauhaub", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px;
  color: #373c44;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: lowercase;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
}

.cart-icon {
  flex-shrink: 0;
}

/* A single color wave using the product cover backgrounds, from warm to cool. */
@keyframes wordmark-rainbow {
  0%, 100% { color: #373c44; }
  12% { color: #d7b1ab; } /* Sister of Battle: pink */
  22% { color: #dd9788; } /* World Eater: coral */
  32% { color: #dbb671; } /* Greyknight: gold */
  40% { color: #9f8e66; } /* Thunder Warrior: ochre */
  48% { color: #d3cca5; } /* Jump pack: cream */
  56% { color: #d3ce99; } /* Imperial Fists: yellow */
  64% { color: #aed1ae; } /* Corvus: green */
  72% { color: #aac5b7; } /* Dark Angel: sage */
  80% { color: #9ad3b9; } /* Carnifex: mint */
  88% { color: #9ec7e2; } /* Classic Marine: blue */
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .site-header .wordmark > span,
  .site-footer .wordmark.is-visible > span {
    animation: wordmark-rainbow 3s ease-in-out 1;
    animation-delay: calc(350ms + var(--letter-index) * 90ms);
  }
}

.catalog {
  padding-top: 20px;
  padding-bottom: 72px;
}

.catalog-status {
  padding-block: 40px;
  color: var(--muted);
}

.site-footer-content {
  container-type: inline-size;
  border-top: 1px solid var(--line);
  padding-block: 24px 12px;
}

.site-footer .wordmark {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 56px);
  font-size: 21cqw;
  line-height: 1;
  white-space: nowrap;
}

.site-footer-copyright {
  color: var(--muted);
  font-size: 12px;
}

.site-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-popover-trigger {
  min-height: 40px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: #c4c7bf;
  text-underline-offset: 3px;
}

.footer-popover-trigger:hover {
  color: #373c44;
  text-decoration-color: currentColor;
}

.footer-popover {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  color: #242622;
  background: var(--panel);
  box-shadow: 0 20px 70px rgb(36 38 34 / 16%);
  font-family: inherit;
}

.footer-popover::backdrop {
  background: rgb(24 28 24 / 22%);
}

.footer-popover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-popover-heading h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.footer-popover-close {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}

.footer-popover p {
  margin-top: 16px;
  color: #5f625c;
  font-size: 13px;
  line-height: 1.6;
}

.footer-popover-link {
  color: #3e5f49;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
}

.product-grid > li,
.product-card,
.product-copy {
  min-width: 0;
}

.product-card {
  border-radius: var(--radius-media);
  background: var(--panel);
  box-shadow: 0 10px 30px rgb(0 0 0 / 4.5%);
}

.product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--surface);
}

.product-media img {
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: inherit;
}

/* Fallback for missing or unavailable product images. */
.placeholder-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: inherit;
  background: var(--surface);
  color: #7b7e75;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
}

.product-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px;
}

.product-copy h2 {
  font-size: inherit;
  font-weight: 700;
}

.product-name {
  display: block;
  padding: 0;
  text-align: left;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-price {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.quick-add {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.quick-add.is-added,
.primary-button.is-added {
  color: #274a38;
  background: #e0ebe3;
  border-color: #d0dfd4;
}

.quick-add-check,
.quick-add.is-added > span {
  display: none;
}

.quick-add.is-added .quick-add-check {
  display: block;
}

dialog {
  color: inherit;
  background: var(--panel);
  border: 0;
  padding: 0;
  max-height: calc(100dvh - 48px);
  box-shadow: 0 16px 64px rgb(36 38 34 / 12%);
}

dialog::backdrop {
  background: rgb(24 28 24 / 28%);
}

.product-dialog {
  width: min(920px, calc(100% - 48px));
  max-width: none;
  margin: auto;
  border-radius: var(--radius-panel);
}

.product-dialog .dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-label {
  font-size: 13px;
  font-weight: 500;
}

.close-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}

.close-button span {
  font-size: 25px;
  font-weight: 400;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  padding: 24px;
}

.detail-gallery,
.detail-info {
  min-width: 0;
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.detail-thumbnail {
  min-width: 0;
  min-height: 44px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  overflow: hidden;
}

.detail-thumbnail img {
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: calc(var(--radius-small) - 3px);
}

.detail-thumbnail[aria-pressed="true"] {
  border-color: #242622;
}

.detail-info {
  padding-top: 12px;
}

.detail-info h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.detail-price {
  margin-top: 12px;
  font-size: 16px;
}

.detail-description {
  margin-top: 24px;
  color: var(--muted);
  white-space: pre-line;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: #242622;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .065em;
}

.detail-info .primary-button {
  margin-top: 32px;
}

.detail-status {
  min-height: 36px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.detail-status:empty {
  min-height: 0;
  margin-top: 0;
}

.purchase-notice {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.detail-info .purchase-notice {
  margin-top: 12px;
}

.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  border-radius: var(--radius-panel) 0 0 var(--radius-panel);
}

.cart-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-panel > .dialog-header,
.cart-footer {
  flex-shrink: 0;
}

.cart-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline: 24px;
}

.cart-empty {
  padding-block: 48px;
  color: var(--muted);
}

.cart-empty .text-button {
  margin-top: 8px;
  color: #242622;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--surface);
}

.cart-item-image img {
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.cart-item-total {
  flex-shrink: 0;
}

.cart-item-price {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.text-button {
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-footer {
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 16px;
}

.subtotal-row strong {
  font-weight: 500;
}

.primary-button:disabled:not(.is-added) {
  color: #fff;
  background: #484c46;
}

.checkout-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.cart-purchase-notice {
  margin-top: 12px;
  text-align: center;
}

@media (min-width: 761px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgb(0 0 0 / 7%);
  }
}

@media (hover: hover) {
  .product-name:hover,
  .cart-trigger:hover,
  .close-button:hover {
    color: var(--muted);
  }

  .quick-add:hover:not(:disabled) {
    background: var(--surface);
  }

  .primary-button:hover:not(:disabled):not(.is-added) {
    background: #3e443b;
  }

  .quick-add.is-added:hover {
    background: #e0ebe3;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 88px;
  }

  .site-logo {
    min-height: 64px;
  }

  .site-logo img {
    height: 56px;
  }

  .product-grid {
    row-gap: 32px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .detail-info {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .footer-popover {
    padding: 20px;
  }

  .site-header {
    min-height: 80px;
    gap: 16px;
  }

  .wordmark {
    font-size: 26px;
  }

  .site-header .wordmark {
    font-size: clamp(16px, 6vw, 26px);
  }

  .catalog {
    padding-top: 12px;
    padding-bottom: 40px;
  }

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

  .product-info {
    padding: 12px 16px 16px;
  }

  .product-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .dialog-header,
  .detail-layout,
  .cart-footer {
    padding-inline: 16px;
  }

  .cart-content {
    padding-inline: 16px;
  }

  .detail-layout {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .detail-thumbnails {
    gap: 4px;
  }
}

@media (max-width: 359px) {
  .detail-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 299px) {
  .wordmark {
    font-size: 22px;
  }
}
.order-site-header {
  position: relative;
  min-height: 96px;
}

.order-site-header::after {
  content: "";
  position: absolute;
  inset-inline: var(--gutter);
  bottom: 0;
  border-bottom: 1px solid var(--line);
}

.order-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #51564f;
  font-size: 13px;
  font-weight: 500;
}

.order-header-link span,
.order-continue span {
  font-size: 18px;
  line-height: 1;
}

.order-page {
  min-height: calc(100dvh - 180px);
  padding-block: clamp(48px, 7vw, 96px) 80px;
}

.order-intro {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.order-confirmation-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  color: #385846;
  background: #e3eee5;
}

.order-confirmation-mark svg {
  width: 32px;
  height: 32px;
}

.order-page:not([data-state="ready"]) .order-confirmation-mark {
  color: #73746e;
  background: #ebe9e2;
}

.order-page:not([data-state="ready"]) .order-confirmation-mark svg {
  display: none;
}

.order-page:not([data-state="ready"]) .order-confirmation-mark::after {
  content: "···";
  margin-top: -8px;
  font-size: 28px;
  letter-spacing: 2px;
}

.order-eyebrow,
.order-panel-kicker {
  color: #74776f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.order-intro h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.order-status {
  margin-top: 16px;
  color: #686b64;
  font-size: clamp(14px, 2vw, 16px);
}

.order-panel {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
  box-shadow: 0 16px 48px rgb(36 38 34 / 5%);
}

.order-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 36px 26px;
  border-bottom: 1px solid var(--line);
}

.order-panel-header h2 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.order-file-type {
  flex: none;
  padding: 8px 11px;
  border: 1px solid #dce6dc;
  border-radius: 999px;
  color: #42604a;
  background: #f1f6ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
}

.order-empty {
  padding: 44px 36px;
  color: var(--muted);
  text-align: center;
}

.order-downloads li + li {
  border-top: 1px solid var(--line);
}

.order-download-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 110px;
  padding: 18px 36px;
}

.order-download-link:hover {
  background: #f7f8f4;
}

.order-download-icon {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 12px;
  color: #55715e;
  background: #eaf0e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

.order-download-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-download-details {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.order-download-name {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.order-download-type {
  color: var(--muted);
  font-size: 12px;
}

.order-download-action {
  flex: none;
  margin-left: auto;
  color: #3e5f49;
  font-size: 13px;
  font-weight: 700;
}

.order-panel-footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 23px 36px;
  border-top: 1px solid var(--line);
  background: #faf9f5;
}

.order-panel-footer svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #777b73;
}

.order-help {
  max-width: 620px;
  color: #6c7069;
  font-size: 12px;
  line-height: 1.6;
}

.order-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  margin: 32px auto 0;
  padding: 12px 24px;
  border-radius: 999px;
  color: #fff;
  background: #3e443b;
  font-size: 13px;
  font-weight: 500;
}

.order-continue:hover {
  background: #30372e;
}

.order-site-footer .site-footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 600px) {
  .order-site-header {
    min-height: 76px;
  }

  .order-page {
    padding-block: 52px 64px;
  }

  .order-intro {
    margin-bottom: 32px;
  }

  .order-confirmation-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
  }

  .order-panel-header {
    padding: 24px 20px;
  }

  .order-panel-header h2 {
    font-size: 21px;
  }

  .order-file-type {
    display: none;
  }

  .order-download-link {
    gap: 12px;
    min-height: 96px;
    padding: 16px 20px;
  }

  .order-download-icon {
    width: 58px;
    height: 58px;
  }

  .order-download-action {
    font-size: 0;
  }

  .order-download-action::after {
    content: "↓";
    font-size: 22px;
    font-weight: 400;
  }

  .order-empty,
  .order-panel-footer {
    padding-inline: 20px;
  }

  .order-site-footer .site-footer-content span {
    display: none;
  }
}
