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

@font-face {
  font-family: "Sekuya";
  src: url("/static/fonts/Sekuya-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f2f2f2;
  --panel: #ffffff;
  --panel-soft: #f7f7f7;
  --ink: #111111;
  --muted: #555555;
  --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: 1260px;
}

* {
  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.04) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fafafa 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-x: clip;
  overflow-y: visible;
}

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

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

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

.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,
.store-shell,
.category-strip {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  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__name {
  color: var(--white);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

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

.nav a,
.nav button,
.badge-link,
.button,
.button--ghost,
.button--muted,
.chip,
.qty-button,
.quote-option,
.size-button,
.category-pill,
.modal-option {
  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, border-color 160ms ease;
}

.nav a,
.nav button {
  flex: 1 1 14rem;
  min-height: 3.25rem;
  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.75rem;
  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,
.category-pill:hover,
.modal-option: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);
}

.nav a.nav-link--highlight,
.nav a.nav-link--highlight:hover,
.nav a.nav-link--highlight[aria-current="page"] {
  background: #facc15;
  color: var(--ink);
}

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

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

.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.7);
  font-size: 0.7rem;
}

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

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

.button--ghost.is-info-link,
.category-pill.is-active,
.size-button.is-active,
.modal-option.is-active,
.segmented button.is-active {
  background: var(--blue);
  color: var(--white);
}

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

.main {
  padding-bottom: 3rem;
  overflow-x: clip;
}

.promo-banner {
  margin-top: 2.3rem;
  margin-bottom: 2rem;
  padding: 1.15rem 1.6rem;
  background: var(--blue);
  color: #facc15;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  font-family: "Space Mono", monospace;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.promo-banner--flash {
}

.promo-banner__text {
  display: inline-block;
}

.promo-banner--flash .promo-banner__text {
  animation: promoFlash 8s infinite;
}

.promo-banner strong {
  color: #facc15;
}

@keyframes promoFlash {
  0%, 86%, 100% {
    opacity: 1;
    filter: brightness(1);
  }

  90% {
    opacity: 0.28;
    filter: brightness(1.45);
  }

  94% {
    opacity: 1;
    filter: brightness(1);
  }
}

.category-strip {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.category-pill {
  min-height: 3.25rem;
  flex: 1 0 0;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  text-align: center;
  white-space: nowrap;
}

.store-shell {
  padding-top: 2.5rem;
  padding-bottom: 1.4rem;
}

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

.store-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem 2.2rem;
  align-items: stretch;
}

.store-item {
  position: relative;
  display: grid;
  gap: 1.2rem;
  align-content: start;
  z-index: 1;
}

.store-item:hover,
.store-item:focus-within {
  z-index: 20;
}

.store-item--quote {
  gap: 1rem;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
}

.store-item.is-in-bag .store-window {
  border-color: var(--red);
  box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.12), var(--shadow);
}

.store-window {
  width: min(100%, 19.4rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.98) 0%, rgba(242, 242, 242, 0.98) 62%, rgba(230, 230, 230, 0.96) 100%);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.store-window--contrast {
  background:
    radial-gradient(circle at top, rgba(236, 236, 236, 0.98) 0%, rgba(224, 224, 224, 0.98) 62%, rgba(210, 210, 210, 0.96) 100%);
}

.store-window:hover {
  transform: translateY(-3px);
}

.store-tee,
.shirt-shape {
  position: relative;
  width: 76%;
  aspect-ratio: 0.82;
  background: var(--shirt-colour, #151515);
  clip-path: polygon(34% 5%, 66% 5%, 84% 13%, 100% 29%, 83% 39%, 76% 34%, 76% 99%, 24% 99%, 24% 34%, 17% 39%, 0% 29%, 16% 13%);
  box-shadow:
    inset 0 0 0 2px rgba(17, 17, 17, 0.08),
    inset 0 -15px 18px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  padding: 0.85rem 0.7rem 0.75rem;
  transition: transform 180ms ease;
  border: 2px solid rgba(17, 17, 17, 0.18);
}

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

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

.store-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.94rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.store-window.is-expanded .store-tee,
.designer-window.is-expanded .shirt-shape {
  transform: scale(1.1);
}

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

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

.store-meta--left {
  text-align: left;
}

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

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

.store-title {
  font-size: 1.12rem;
}

.store-price,
.modal-price {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
}

.store-note,
.lead,
.muted,
.about-card p,
.faq-answer,
.tiny,
.site-footer__inner p,
.modal-copy,
.modal-summary,
.upsell-copy {
  color: var(--muted);
  line-height: 1.62;
}

.quality-note {
  color: var(--blue);
}

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

.store-actions--split .button,
.store-actions--split .button--ghost {
  flex: 1 1 11rem;
}

.size-button {
  min-width: 3rem;
  min-height: 2.7rem;
  padding: 0 0.85rem;
}

.store-actions .button,
.store-actions .button--ghost {
  flex: 1 1 10rem;
}

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

.eyebrow,
.modal-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: 54rem;
  margin-top: 1.2rem;
}

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

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

.cart-layout__summary {
  display: grid;
  gap: 1.6rem;
  align-content: start;
}

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

.quote-wordmark {
  position: relative;
  display: grid;
  gap: 0.55rem;
  min-height: 14.5rem;
  align-content: start;
  padding: 1.1rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
}

.quote-wordmark:hover,
.quote-wordmark:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.quote-wordmark__text {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.95rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

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

.quote-hover-preview {
  position: absolute;
  left: calc(100% - 1.5rem);
  top: 50%;
  width: 17rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(0.6rem, -50%) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 40;
}

.quote-wordmark:hover .quote-hover-preview,
.quote-wordmark:focus-visible .quote-hover-preview {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.quote-hover-preview img {
  width: 100%;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #e8e8e8;
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.11);
}

.quote-hover-preview__print {
  position: absolute;
  left: 50%;
  top: 31%;
  width: 52%;
  min-height: 13%;
  max-height: 20%;
  transform: translateX(-50%);
  display: grid;
  align-content: center;
  gap: 0.08rem;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--preview-text, #ffffff);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.quote-hover-preview__plate,
.wearer-preview__plate,
.cart-item__preview-plate {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 72%;
  height: 64%;
  transform: translate(-50%, -50%);
  border-radius: 0;
  clip-path: polygon(34% 2%, 66% 2%, 80% 9%, 95% 22%, 84% 34%, 75% 27%, 73% 98%, 27% 98%, 25% 27%, 16% 34%, 5% 22%, 20% 9%);
  pointer-events: none;
  z-index: 0;
  backdrop-filter: blur(4px) saturate(0.92);
  -webkit-backdrop-filter: blur(4px) saturate(0.92);
}

.preview-photo--woman .wearer-preview__plate,
.preview-photo--woman .cart-item__preview-plate {
  top: 47%;
  width: 74%;
  height: 68%;
  clip-path: polygon(35% 2%, 65% 2%, 80% 9%, 94% 21%, 86% 31%, 74% 24%, 72% 98%, 28% 98%, 26% 24%, 14% 31%, 6% 21%, 20% 9%);
}

.preview-tone--white .quote-hover-preview__plate,
.preview-tone--white .wearer-preview__plate,
.preview-tone--white .cart-item__preview-plate {
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,0.995) 0%, rgba(255,255,255,0.985) 28%, rgba(245,245,245,0.975) 68%, rgba(232,232,232,0.97) 100%);
  border: 1px solid rgba(196, 196, 196, 0.66);
  box-shadow:
    inset 0 20px 26px rgba(255,255,255,0.6),
    inset 0 -22px 26px rgba(201, 201, 201, 0.18),
    0 0 0 1px rgba(255,255,255,0.54);
}

.preview-tone--black .quote-hover-preview__plate,
.preview-tone--black .wearer-preview__plate,
.preview-tone--black .cart-item__preview-plate {
  background:
    radial-gradient(circle at 50% 8%, rgba(39,39,42,0.995) 0%, rgba(24,24,27,0.992) 42%, rgba(13,13,15,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 18px 24px rgba(255,255,255,0.05),
    inset 0 -20px 30px rgba(0,0,0,0.18);
}

.wearer-preview {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: radial-gradient(circle at 35% 20%, #ffffff 0%, #ededed 62%, #d8d8d8 100%);
}

.wearer-preview--circle {
  width: min(100%, 20rem);
}

.wearer-preview--large {
  width: min(100%, 31rem);
}

.wearer-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.11);
}

.wearer-preview__print {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 54%;
  min-height: 13%;
  max-height: 21%;
  transform: translate(-50%, -50%);
  display: grid;
  align-content: center;
  gap: 0.12rem;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(0.9rem, 1.7vw, 1.35rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.preview-photo--woman .wearer-preview__print,
.preview-photo--woman .cart-item__preview-text {
  top: 29%;
  width: 56%;
}

.designer-window {
  width: min(100%, 31rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(240, 240, 240, 0.96));
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.designer-window__hint {
  text-align: center;
}

.shirt-shape {
  width: 78%;
}

.field label {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  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;
}

.content-wrap + .content-wrap,
.content-wrap + .delivery-bar,
.category-strip + .store-shell,
.store-shell + .delivery-bar,
.delivery-bar + .content-wrap {
  margin-top: 2.6rem;
}

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

.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.05rem;
  padding: 0 0.8rem;
  background: var(--panel-soft);
}

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

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

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

.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);
  grid-template-areas:
    "figure body"
    "figure actions";
  gap: 1.8rem;
  align-items: start;
  padding: 1.55rem 0;
  border-bottom: 3px solid rgba(17, 17, 17, 0.1);
}

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

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

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

.cart-item__figure {
  grid-area: figure;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.cart-item__preview {
  position: relative;
  width: 8.9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  background: radial-gradient(circle at 35% 20%, #ffffff 0%, #ededed 62%, #d8d8d8 100%);
}

.cart-item__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.11);
}

.cart-item__preview-text {
  position: absolute;
  top: 31%;
  left: 50%;
  width: 52%;
  min-height: 13%;
  max-height: 20%;
  transform: translate(-50%, -50%);
  display: grid;
  align-content: center;
  gap: 0.06rem;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  pointer-events: none;
  overflow: hidden;
}

.preview-line {
  display: block;
}

.quote-hover-preview__print[data-lines="1"],
.wearer-preview__print[data-lines="1"] {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.quote-hover-preview__print[data-lines="2"],
.wearer-preview__print[data-lines="2"] {
  font-size: clamp(0.92rem, 1.7vw, 1.3rem);
}

.quote-hover-preview__print[data-lines="3"],
.wearer-preview__print[data-lines="3"] {
  font-size: clamp(0.76rem, 1.35vw, 0.98rem);
}

.quote-hover-preview__print[data-lines="4"],
.wearer-preview__print[data-lines="4"] {
  font-size: clamp(0.62rem, 1.05vw, 0.82rem);
}

.cart-item__preview-text[data-lines="1"] {
  font-size: 0.68rem;
}

.cart-item__preview-text[data-lines="2"] {
  font-size: 0.61rem;
}

.cart-item__preview-text[data-lines="3"],
.cart-item__preview-text[data-lines="4"] {
  font-size: 0.52rem;
}

.cart-item__body {
  grid-area: body;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.4rem;
  align-items: start;
  min-width: 0;
}

.cart-item__meta-main {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.cart-item__meta-side {
  display: grid;
  gap: 0.8rem;
  justify-items: end;
  align-content: start;
  min-width: 12.5rem;
  max-width: 15rem;
}

.cart-item__meta-side .button-row {
  justify-content: flex-end;
  width: 100%;
}

.cart-item__meta-side .button--ghost {
  width: 100%;
  text-align: center;
  white-space: normal;
}

.cart-item__title,
.cart-item .store-note {
  max-width: none;
}

.cart-item .store-note {
  overflow-wrap: anywhere;
}

.cart-item__actions {
  grid-area: actions;
  align-self: start;
}

.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);
}

.upsell-card {
  margin-bottom: 1rem;
  background: #fff3f3;
}

.upsell-card strong {
  color: var(--red);
}

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

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: 2rem;
}

.quiz-layout--compact {
  align-items: start;
}

.quiz-card,
.newsletter-card,
.success-card {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.7rem;
}

.newsletter-card--cta {
  gap: 0.8rem;
  align-content: start;
  padding: 1.15rem 1.6rem;
}

.newsletter-card--gallery {
  gap: 0.8rem;
  padding: 1.35rem;
}

.quiz-form,
.quiz-questions,
.quiz-question,
.quiz-options,
.newsletter-card,
.quiz-gallery,
.success-card {
  display: grid;
  gap: 1rem;
}

.newsletter-title {
  margin: 0;
  color: #facc15;
  font-family: "DM Sans", sans-serif;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.button--large {
  min-height: 3.6rem;
  width: 100%;
  font-size: 0.82rem;
}

.button-row--compact {
  gap: 0.7rem;
}

.newsletter-card--wide {
  width: 100%;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  align-items: center;
  gap: 1rem 1.8rem;
}

.newsletter-card--wide .newsletter-copy {
  max-width: none;
  margin: 0;
}

.newsletter-card--wide .button-row,
.newsletter-card--wide .field {
  margin: 0;
}

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

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.quiz-option input {
  margin-top: 0.1rem;
}

.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
  line-height: 1.55;
}

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

.design-mini {
  display: grid;
  gap: 0.7rem;
  text-align: center;
}

.design-mini .store-window {
  width: min(100%, 12rem);
}

.newsletter-copy {
  color: var(--muted);
  line-height: 1.6;
}

.quiz-score {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.success-card {
  justify-items: center;
  text-align: center;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.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: 2.8rem;
  padding: 1.15rem 1.6rem;
  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: 3.4rem;
  padding: 1.9rem 0 2.8rem;
  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);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 17, 17, 0.6);
  padding: 1.2rem;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-card {
  width: min(100%, 760px);
  max-height: calc(100vh - 2.4rem);
  overflow: auto;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 rgba(17, 17, 17, 0.9);
  padding: 1.6rem;
}

.modal-body {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.modal-header,
.modal-stage {
  display: grid;
  gap: 1rem;
}

.modal-close {
  margin-left: auto;
  min-width: 2.8rem;
  min-height: 2.8rem;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: 1.6rem;
}

.modal-preview {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.modal-preview .store-window {
  width: min(100%, 19rem);
}

.modal-stage[hidden] {
  display: none;
}

.modal-checkout-row {
  justify-content: space-between;
  align-items: center;
}

.modal-checkout-row--spaced,
.modal-actions--spaced,
.size-row--spaced {
  gap: 1rem;
}

.modal-pay-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.google-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.google-auth-button {
  min-width: 12rem;
}

.google-auth-box {
  display: grid;
  gap: 0.85rem;
}

.cart-layout__summary .control-card {
  display: grid;
  gap: 0.95rem;
}

.control-card--compact {
  padding: 1.35rem;
}

.control-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

  .control-grid--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__inner {
    min-height: auto;
    gap: 0.85rem;
    padding: 0.85rem 0 1rem;
  }

  .brand {
    justify-content: flex-start;
  }

  .nav {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0.55rem;
  }

  .nav a,
  .nav button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 2.8rem;
    padding: 0.5rem 0.45rem;
    font-size: 0.56rem;
    line-height: 1.15;
    letter-spacing: 0.08em;
  }

  .header-actions {
    width: auto;
    align-self: flex-end;
  }

  .badge-link {
    width: auto;
    min-height: 2.8rem;
  }

  .button-row,
  .modal-actions,
  .store-actions {
    width: 100%;
  }

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

  .cart-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "figure"
      "body"
      "actions";
    align-items: start;
  }

  .cart-item__body {
    grid-template-columns: 1fr;
  }

  .cart-item__meta-side,
  .cart-item__meta-side .button-row {
    justify-items: start;
    justify-content: flex-start;
  }

  .cart-item__meta-side {
    min-width: 0;
    max-width: none;
  }

  .cart-item__meta-side .button--ghost {
    width: auto;
  }

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

  .quiz-options,
  .quiz-gallery {
    grid-template-columns: 1fr;
  }

  .quote-hover-preview {
    display: none;
  }

  .newsletter-card--wide {
    grid-template-columns: 1fr;
  }

  .promo-banner,
  .delivery-bar,
  .category-strip,
  .store-shell,
  .page-intro,
  .content-wrap {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .promo-banner {
    margin-top: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.95rem 1rem;
    font-size: 0.64rem;
  }

  .page-intro {
    padding: 1.6rem 0 1.25rem;
  }

  .page-intro h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .category-strip + .store-shell,
  .store-shell + .delivery-bar,
  .delivery-bar + .content-wrap {
    margin-top: 1.5rem;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
    align-items: center;
  }

  .brand__mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand__name {
    font-size: 0.86rem;
  }

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

  .nav a.nav-link--highlight {
    grid-column: 1 / -1;
  }

  .store-grid {
    grid-template-columns: 1fr;
    gap: 2rem 1rem;
  }

  .quote-wordmark {
    min-height: 10.8rem;
    padding: 1rem;
  }

  .quote-wordmark__text {
    font-size: clamp(1.16rem, 6vw, 1.55rem);
  }

  .wearer-preview--large {
    width: min(100%, 21rem);
  }

  .modal {
    padding: 0.7rem;
  }

  .modal-card {
    padding: 1rem;
  }

  .category-pill {
    flex: 0 0 auto;
    min-width: 12.75rem;
  }

  .cart-item__actions {
    width: 100%;
  }

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