@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;900&family=Space+Mono:wght@400;700&display=swap");

:root {
  --paper: #f2f2f2;
  --panel: #ffffff;
  --panel-soft: #f8f8f8;
  --ink: #111111;
  --muted: #505050;
  --red: #dc2626;
  --blue: #1d4ed8;
  --blue-deep: #1e3a8a;
  --white: #ffffff;
  --line: #111111;
  --shadow: 8px 8px 0 #111111;
  --shadow-sm: 4px 4px 0 #111111;
  --radius: 28px;
  --radius-sm: 18px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #f8f8f8 0%, var(--paper) 100%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  top: 9rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.14);
}

.page-shell::after {
  left: -4rem;
  bottom: 12rem;
  width: 10rem;
  height: 10rem;
  transform: rotate(18deg);
  background: rgba(220, 38, 38, 0.12);
}

.site-header,
.main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  border-bottom: 4px solid var(--red);
}

.site-header__inner,
.site-footer__inner,
.page-intro,
.content-wrap,
.promo-banner,
.delivery-bar,
.catalogue-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand__mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--red);
  border: 3px solid var(--white);
  color: var(--white);
  font-family: "Space Mono", monospace;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.16);
}

.brand__text {
  display: grid;
}

.brand__name {
  color: var(--white);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__tag {
  display: none;
}

.nav,
.header-actions,
.button-row,
.chip-row,
.segmented,
.cart-item__actions,
.site-footer__links,
.catalogue-actions,
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.nav {
  flex: 1 1 32rem;
  justify-content: center;
  max-width: 760px;
}

.nav a,
.nav button,
.badge-link,
.button,
.button--ghost,
.button--muted,
.chip,
.qty-button,
.quote-option,
.size-button {
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.nav a,
.nav button {
  flex: 1 1 14rem;
  min-height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background: var(--white);
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav button:hover,
.badge-link:hover,
.button:hover,
.button--ghost:hover,
.button--muted:hover,
.qty-button:hover,
.quote-option:hover,
.size-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--red);
  color: var(--white);
}

.badge-link,
.button,
.button--ghost,
.button--muted,
.size-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
}

.badge-link {
  background: var(--red);
  color: var(--white);
  gap: 0.55rem;
}

.badge-link__count {
  min-width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.button {
  background: var(--red);
  color: var(--white);
}

.button--ghost {
  background: var(--white);
  color: var(--ink);
}

.button--muted {
  background: var(--panel-soft);
  color: var(--ink);
}

.button--ghost.is-info-link {
  background: var(--blue);
  color: var(--white);
}

.main {
  padding-bottom: 3.5rem;
}

.promo-banner {
  margin-top: 1.25rem;
  padding: 1rem 1.4rem;
  background: var(--white);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.promo-banner strong {
  color: var(--red);
}

.catalogue-shell {
  padding-top: 1.8rem;
}

.catalogue-grid,
.about-grid,
.designer-layout,
.cart-layout,
.faq-layout {
  display: grid;
  gap: 1.4rem;
}

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

.catalogue-item,
.control-card,
.designer-layout__preview,
.designer-layout__controls,
.cart-layout__list,
.cart-layout__summary,
.about-card,
.faq-group,
.page-panel {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.catalogue-item,
.control-card,
.designer-layout__preview,
.designer-layout__controls,
.cart-layout__list,
.cart-layout__summary,
.about-card,
.faq-group,
.page-panel {
  padding: 1.35rem;
}

.catalogue-item {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.catalogue-window {
  width: min(100%, 18rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96) 0%, rgba(240, 240, 240, 0.95) 62%, rgba(225, 225, 225, 0.92) 100%);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.catalogue-tee,
.shirt-shape {
  position: relative;
  width: 68%;
  aspect-ratio: 0.9;
  background: var(--shirt-colour, #151515);
  clip-path: polygon(34% 5%, 66% 5%, 84% 12%, 100% 28%, 82% 38%, 75% 33%, 75% 98%, 25% 98%, 25% 33%, 18% 38%, 0% 28%, 16% 12%);
  box-shadow:
    inset 0 0 0 2px rgba(17, 17, 17, 0.08),
    inset 0 -14px 18px rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  padding: 1rem 0.85rem 0.8rem;
}

.catalogue-tee::before,
.shirt-shape::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: 31%;
  height: 10%;
  transform: translateX(-50%);
  border-radius: 0 0 55% 55% / 0 0 100% 100%;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-top: 0;
  background: rgba(255, 255, 255, 0.78);
}

.catalogue-tee::after,
.shirt-shape::after {
  content: "";
  position: absolute;
  inset: 8% 12% auto;
  height: 56%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.catalogue-tee__quote,
.shirt-shape__text {
  position: relative;
  z-index: 1;
  width: 72%;
  text-align: center;
  color: var(--shirt-text, #ffffff);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  line-height: 1.28;
}

.catalogue-meta,
.designer-controls,
.summary-list,
.faq-list,
.control-grid,
.field,
.cart-item__meta {
  display: grid;
  gap: 0.6rem;
}

.catalogue-meta {
  text-align: center;
}

.catalogue-title,
.cart-item__title,
.page-intro h1,
.faq-group h2,
.about-card h2,
.control-card h2,
.control-card h3 {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.catalogue-title {
  font-size: 1.18rem;
}

.catalogue-price {
  font-family: "Space Mono", monospace;
  font-size: 1.02rem;
  font-weight: 700;
}

.catalogue-note,
.lead,
.muted,
.about-card p,
.faq-answer,
.catalogue-meta p,
.tiny,
.site-footer__inner p {
  color: var(--muted);
  line-height: 1.65;
}

.size-row,
.catalogue-actions {
  justify-content: center;
}

.size-button {
  min-width: 3.1rem;
  min-height: 2.7rem;
  padding: 0 0.9rem;
}

.size-button.is-active {
  background: var(--blue);
  color: var(--white);
}

.page-intro {
  padding: 2.2rem 0 1.4rem;
}

.eyebrow,
.chip,
.site-footer__links {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  background: var(--blue);
  color: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.page-intro h1 {
  margin-top: 1rem;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.92;
}

.page-intro h1 span {
  color: var(--blue);
}

.lead {
  max-width: 52rem;
}

.designer-layout,
.cart-layout {
  grid-template-columns: minmax(0, 1.03fr) minmax(21rem, 0.97fr);
}

.designer-preview {
  display: grid;
  place-items: center;
  gap: 1rem;
}

.shirt-large {
  width: min(100%, 24rem);
  aspect-ratio: 0.88;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(242, 242, 242, 0.96));
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

.shirt-shape {
  width: 70%;
}

.field label {
  font-family: "Space Mono", monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  padding: 0.95rem 1rem;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.14);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.segmented button,
.qty-button,
.quote-option {
  min-height: 2.8rem;
  padding: 0 0.95rem;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.segmented button.is-active {
  background: var(--blue);
  color: var(--white);
}

.quote-option {
  width: 100%;
  padding: 0.9rem 1rem;
  text-align: left;
  line-height: 1.5;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.8rem;
  background: var(--panel-soft);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.status {
  min-height: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.status[data-tone="error"] {
  color: #8e2419;
}

.status[data-tone="success"] {
  color: #1f5c38;
}

.summary-row,
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.summary-row {
  color: var(--muted);
}

.summary-row--total {
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--line);
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.cart-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 3px solid rgba(17, 17, 17, 0.1);
}

.cart-item:last-child {
  border-bottom: 0;
}

.shirt-badge {
  width: 7.6rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(242, 242, 242, 0.96));
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.shirt-badge .shirt-shape {
  width: 68%;
}

.qty-value {
  min-width: 2rem;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.empty-state,
.loading-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-answer {
  display: none;
  padding-top: 0.8rem;
}

.faq-item[data-open="true"] .faq-answer {
  display: block;
}

.delivery-bar {
  margin-top: 1.75rem;
  padding: 1rem 1.4rem;
  background: var(--blue);
  color: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 2.6rem;
  padding: 1.6rem 0 2.4rem;
  background: var(--ink);
  border-top: 4px solid var(--red);
}

.site-footer__inner {
  align-items: center;
}

.site-footer__inner p,
.site-footer__links {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.site-footer__links a:hover {
  color: var(--white);
}

@media (max-width: 1180px) and (min-width: 961px) {
  .catalogue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) and (min-width: 561px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .about-grid,
  .designer-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav,
  .header-actions,
  .button-row,
  .catalogue-actions,
  .size-row,
  .site-footer__links {
    width: 100%;
  }

  .badge-link,
  .button,
  .button--ghost,
  .button--muted {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cart-item__actions {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}
