:root {
  --black: #141414;
  --black-soft: #1e1e1c;
  --white: #f5f1ea;
  --amber: #e8a33d;
  --amber-dark: #9a6a1f;
  --terracotta: #c1602e;
  --stone: #8a8478;
  --stone-light: #c9c4b8;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid #2b2b28;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 22px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--amber);
}

.logo-mark {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--stone-light);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--white);
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, background .2s;
  cursor: pointer;
  border: none;
}

.btn-amber {
  background: var(--amber);
  color: var(--black);
}

.btn-amber:hover {
  transform: translateY(-2px);
  background: #f0b458;
}

.btn-outline {
  border: 1px solid var(--stone);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--white);
}

.btn-black {
  background: var(--black);
  color: var(--white);
}

.btn-black:hover {
  background: #000;
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */
header.hero {
  background: var(--black);
  color: var(--white);
  padding: 96px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--amber);
  margin-bottom: 22px;
}

.hero-logo {
  height: 44px;
  width: auto;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero p {
  color: var(--stone-light);
  font-size: 17px;
  max-width: 440px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.tag-btn {
  position: relative;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px 14px 34px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease;
}

.tag-btn:before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--black);
}

.tag-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.link-inline {
  color: var(--stone-light);
  font-size: 14px;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.link-inline:hover {
  color: var(--white);
  border-color: var(--white);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.tee-illustration {
  width: 100%;
  max-width: 380px;
}

.hangtag {
  position: absolute;
  top: 6%;
  right: 20%;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 2px;
  transform: rotate(8deg);
  box-shadow: none;
  border: 1px solid var(--black);
}

.hangtag .hole {
  width: 7px;
  height: 7px;
  border: 1px solid var(--black);
  border-radius: 50%;
  margin-bottom: 6px;
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--amber);
  color: var(--black);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.marquee-track {
  display: inline-block;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  animation: scroll 22s linear infinite;
}

.marquee-track span {
  margin: 0 20px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- SECTION HEADS ---------- */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
}

.on-dark .section-head .eyebrow {
  color: var(--amber);
}

.on-dark .section-head h2 {
  color: var(--white);
}

/* ---------- HOW IT WORKS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tag-card {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 2px;
  padding: 28px 24px 26px;
  position: relative;
}

.tag-card:nth-child(1) {
  transform: rotate(-1.4deg);
}

.tag-card:nth-child(2) {
  transform: rotate(0.8deg);
}

.tag-card:nth-child(3) {
  transform: rotate(-0.6deg);
}

.tag-card .hole {
  width: 10px;
  height: 10px;
  border: 1px solid var(--black);
  border-radius: 50%;
  position: absolute;
  top: 16px;
  right: 16px;
}

.tag-card .step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.tag-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tag-card p {
  font-size: 14px;
  color: #4a463f;
}

.tag-card .stitch {
  border-top: 1px dashed var(--stone);
  margin: 16px 0;
}

/* ---------- COLLECTION ---------- */
.collection-section {
  background: var(--black);
  color: var(--white);
}

.tee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tee-card {
  background: var(--black-soft);
  border: 1px solid #2b2b28;
  border-radius: 2px;
  padding: 22px 18px 20px;
  transition: border-color .2s, transform .2s;
}

.tee-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
}

.tee-card .tee-icon {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tee-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tee-card .price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone-light);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tee-card a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  border-bottom: 1px solid var(--amber-dark);
  padding-bottom: 2px;
}

/* Price display: struck-through "was" price, bold bigger selling price */
.price-was {
  text-decoration: line-through;
  color: var(--stone);
  font-size: 12px;
}

.price-now {
  color: var(--amber);
  font-weight: 700;
  font-size: 16px;
}

.tee-card .price:not(:has(.price-was)) .price-now {
  color: var(--stone-light);
  font-weight: 400;
  font-size: 13px;
}

/* Color swatches under a type card */
.swatch-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid #3a3a36;
  border-radius: 2px;
  background: var(--black);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, transform .12s;
}

.swatch img,
.swatch svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swatch:hover {
  border-color: var(--stone-light);
  transform: translateY(-1px);
}

.swatch.is-selected {
  border-color: var(--amber);
  border-width: 2px;
}

/* ---------- WHY ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-item .eyebrow {
  color: var(--terracotta);
  margin-bottom: 16px;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.why-item p {
  font-size: 14px;
  color: #4a463f;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--amber);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  color: var(--black);
  margin-bottom: 16px;
}

.cta-banner p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #5c3f11;
  margin-bottom: 32px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--black);
  color: var(--stone-light);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2b2b28;
  margin-bottom: 24px;
}

.footer-top .logo {
  margin-bottom: 14px;
}

.footer-top p {
  font-size: 14px;
  max-width: 260px;
  color: var(--stone);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--stone-light);
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width:860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width:600px) {
  .wrap {
    padding: 0 18px;
  }

  section {
    padding: 56px 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tee-grid {
    grid-template-columns: 1fr;
  }

  .hangtag {
    display: none;
  }

  .collection-toggle {
    width: 100%;
  }

  .toggle-btn {
    padding: 12px 10px;
    font-size: 12px;
  }
}

@media(min-width: 300px) {
  .toggle-btn {
    padding: 8px 6px;
    font-size: 8px;
  }
}

/* ---------- FORM PAGE (customize) additions ---------- */
.form-page {
  background: var(--white);
  padding: 64px 0 96px;
}

.form-page .section-head {
  margin-bottom: 40px;
}

.order-item {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.order-item .hole {
  width: 10px;
  height: 10px;
  border: 1px solid var(--black);
  border-radius: 50%;
  position: absolute;
  top: 16px;
  right: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 12px;
  border: 1px solid var(--black);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
}

/* The native file input is visually hidden (not overlaid) — clicking is
   handled entirely by the .file-input <label for="..."> markup below it,
   which is a guaranteed-reliable, spec-defined way to activate a form
   control in every browser, unlike a position:absolute click overlay. */
.field input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.field select option:disabled {
  color: #c4bfb3;
}

.form-errors {
  color: #a13a1f;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 4px;
}


.color-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  margin-top: 4px;
}

.size-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  margin-top: 4px;
}



.line-total {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terracotta);
  font-weight: 700;
  margin-top: 4px;
  min-height: 14px;
}

.error-summary {
  background: #fdeeea;
  border: 1px solid var(--terracotta);
  color: #7a2e13;
  padding: 14px 18px;
  border-radius: 2px;
  margin-bottom: 28px;
  font-size: 14px;
}

.error-summary strong {
  display: block;
  margin-bottom: 2px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a13a1f;
  background: #fdf4f2;
}

.submit-row {
  text-align: right;
}

.confirmation {
  background: var(--black);
  color: var(--white);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
}

.confirmation h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.confirmation .order-no {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 14px;
  margin-bottom: 20px;
}

.confirmation p {
  color: var(--stone-light);
  max-width: 440px;
  margin: 0 auto 32px;
}

/* Live order summary — sits above the submit button, updates as the form changes */
.order-summary {
  position: sticky;
  bottom: 16px;
  z-index: 10;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: 2px;
  padding: 16px 20px;
  margin: 32px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.order-summary__line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone-light);
}

.order-summary__line span {
  color: var(--white);
  font-weight: 700;
}

.order-summary__total {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
}

.order-summary__caveat {
  font-size: 11px;
  font-weight: 400;
  color: var(--stone);
  margin-left: 4px;
}

/* ---------- COLLECTION TOGGLE (sharp-cornered segmented control, no pills — matches locked brand) ---------- */
.collection-toggle {
  position: relative;
  display: inline-flex;
  border: 1px solid var(--stone);
  border-radius: 2px;
  margin-bottom: 36px;
  background: var(--black-soft);
  overflow: hidden;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--amber);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
}

.toggle-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 12px;
  background: transparent;
  color: var(--stone-light);
  border: none;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}

.toggle-btn.is-active {
  color: var(--black);
}

.toggle-btn:not(.is-active):hover {
  color: var(--white);
}

.tee-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--amber);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.collection-hookline {
  font-size: 15px;
  color: var(--stone-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.see-more-btn {
  display: block;
  margin: 44px auto 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s, background .2s;
}

.see-more-btn:hover {
  border-color: var(--amber);
  color: var(--black);
  background: var(--amber);
  transform: translateY(-2px);
}

.see-more-btn:active {
  transform: translateY(0);
}

/* ---------- DYNAMIC ORDER ITEM ROWS ---------- */
.form-subhead {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin: 32px 0 16px;
}

.form-subhead--tight {
  margin: 20px 0 12px;
  font-size: 12px;
}

.optional-tag {
  color: var(--stone);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.order-item {
  position: relative;
  transition: opacity .16s ease, transform .16s ease;
}

.order-item[data-item] {
  padding-top: 40px;
}

.order-item--new {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.order-item--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.order-item--removing {
  opacity: 0;
  transform: translateX(12px) scale(0.97);
}

.order-item .hole {
  left: 16px;
  right: auto;
}

.remove-item {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  border: 1px solid var(--terracotta);
  border-radius: 2px;
  background: var(--white);
  color: var(--terracotta);
  cursor: pointer;
  transition: background .15s, color .15s, transform .12s, border-color .15s;
}

.remove-item:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: scale(1.06);
}

.remove-item:active {
  transform: scale(0.94);
}

.remove-item:disabled {
  opacity: .5;
  cursor: default;
}

.add-item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  background: var(--white);
  border: 1.5px dashed var(--black);
  color: var(--black);
  padding: 14px 20px;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 32px;
  transition: background .18s, border-color .18s, transform .12s;
}

.add-item:hover {
  background: var(--amber);
  border-style: solid;
  border-color: var(--black);
}

.add-item:active {
  transform: scale(0.99);
}

.item-preview {
  width: 160px;
  height: 160px;
  border: 1px solid var(--black);
  border-radius: 2px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color .2s;
}

.item-preview:has(img:not([hidden])) {
  border-color: var(--amber);
}

.item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-preview svg {
  width: 64px;
  height: 64px;
  fill: var(--stone);
}

@media (max-width:600px) {
  .item-preview {
    width: 120px;
    height: 120px;
  }
}

/* ---------- FRONT/BACK & PLACEMENT TOGGLES ---------- */

/* The placement field is the only field-row that needs full form width,
   not the standard 2-column split every other field-row uses. */
.field-row[data-placement-field] {
  grid-template-columns: 1fr;
}

.side-toggle,
.preview-side-toggle,
.placement-toggle {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--stone);
  border-radius: 2px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.side-toggle__btn,
.preview-side-toggle__btn,
.placement-toggle__btn {
  flex: 1 1 0;
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 10px 8px;
  background: transparent;
  color: var(--stone);
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.side-toggle__btn.is-active,
.preview-side-toggle__btn.is-active,
.placement-toggle__btn.is-active {
  background: var(--amber);
  color: var(--black);
}

.side-toggle__btn:not(.is-active):hover,
.preview-side-toggle__btn:not(.is-active):hover,
.placement-toggle__btn:not(.is-active):hover {
  color: var(--black);
}

/* Under ~360px even three flexed buttons get uncomfortably cramped —
   stack them full-width instead of shrinking text further. */
@media (max-width: 360px) {
  .placement-toggle {
    flex-direction: column;
  }

  .placement-toggle__btn {
    flex: 1 1 auto;
    border-bottom: 1px solid var(--stone);
  }

  .placement-toggle__btn:last-child {
    border-bottom: none;
  }
}

/* Product card (index.html) front/back toggle — dark background, so it
   needs light-on-dark idle state instead of the form page's light bg */
.tee-card .side-toggle {
  border-color: #3a3a36;
  margin-bottom: 14px;
  width: auto;
  display: inline-flex;
}

.tee-card .side-toggle__btn {
  color: var(--stone-light);
  flex: initial;
  padding: 6px 14px;
}

/* Customize page (light bg) versions */
.form-page .preview-side-toggle {
  width: auto;
  display: inline-flex;
  margin-bottom: 16px;
}

.form-page .preview-side-toggle__btn {
  flex: initial;
  padding: 6px 14px;
}

.form-page .placement-toggle {
  margin-top: 6px;
}

/* ---------- CUSTOM FILE INPUT (front/back design uploads) ---------- */
/* The native "No file chosen" text isn't reliably stylable across browsers
   (it overflows instead of truncating), so the real <input type="file"> is
   hidden (see .field input[type="file"] above) and this label — a sibling
   of that input, both pointing at the same id — drives the visible control.
   Clicking any label associated with an input via `for` is guaranteed by
   the HTML spec to activate that input in every browser.

   Button and filename are stacked vertically (not side-by-side) so neither
   has to fight the other for width on narrow screens — the filename gets
   the full field width to itself for its ellipsis truncation. */
.file-input {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--black);
  border-radius: 2px;
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
}

.file-input__btn {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--black);
  color: var(--white);
  padding: 10px 12px;
  display: block;
  width: 100%;
}

.file-input:hover .file-input__btn {
  background: var(--amber-dark);
}

input[type="file"]:focus+.file-input {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.file-input__name {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--black);
}

@media (max-width: 400px) {
  .file-input__btn {
    padding: 9px 10px;
    font-size: 10px;
  }

  .file-input__name {
    font-size: 11px;
    padding: 7px 10px;
  }
}