/* WGLL — What Good Looks Like. Palette from the print files:
   espresso ink, cream ground, coral + editor's red accents. */

:root {
  --espresso: #3A2A20;
  --cream: #EFE9DB;
  --paper: #F7F3E8;      /* page ground, slightly lighter than the print cream */
  --coral: #EE8F6B;
  --red: #B3402F;        /* editor's red — accents + small emphasised text */
  --ink-soft: #6B5B4E;   /* secondary text on paper */
  --line: #DCD2BD;       /* hairlines on paper */
  --serif: 'Instrument Serif', Georgia, serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/caveat-medium.woff2') format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--espresso);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--espresso);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark .dot { color: var(--red); font-style: normal; }
.header-note { font-family: var(--hand); font-size: 1.15rem; color: var(--red); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; text-align: center; }
.hero-art { max-width: min(560px, 100%); margin: 0 auto; }
/* artwork carries the title visually; keep the h1 for screen readers/SEO */
.hero h1 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-sub {
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--espresso);
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 999px;
}
.hero-cta:hover { background: #4a3729; }
.hero-hand { margin-top: 14px; font-family: var(--hand); font-size: 1.2rem; color: var(--red); }

/* ---------- sections ---------- */
section { padding: 48px 0; }
.section-head {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 6px;
}
.section-sub { color: var(--ink-soft); margin-bottom: 28px; max-width: 60ch; }

/* ---------- configurator ---------- */
.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) { .config-grid { grid-template-columns: 1fr; } }

/* mockup */
.mockup-panel { position: sticky; top: 16px; }
.mockup {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8% 12%;
  overflow: hidden;
}
.mockup-stage { position: relative; margin: 0 auto; }
.mockup-stage img.tee { width: 100%; height: auto; }
.mockup-stage img.art {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
/* placement calibrated per cut & view — % of tee image dimensions
   (S&S/Gildan official photos, tight-trimmed; recalibrate if replaced) */
.mockup-stage[data-cut="unisex"][data-view="front"] img.art { width: 38%; top: 20%; }
.mockup-stage[data-cut="unisex"][data-view="back"]  img.art { width: 22%; top: 10.5%; }
.mockup-stage[data-cut="ladies"][data-view="front"] img.art { width: 45%; top: 20%; }
.mockup-stage[data-cut="ladies"][data-view="back"]  img.art { width: 28%; top: 9.5%; }
/* dark ink on light fabric sits into the weave */
.mockup-stage img.art.on-light { mix-blend-mode: multiply; }
.mockup-stage img.art.on-dark { opacity: 0.96; }

.view-toggle { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.view-toggle button {
  font: inherit;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}
.view-toggle button[aria-pressed="true"] {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}
.view-note { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }

/* choices */
.choice-block { margin-bottom: 26px; }
.choice-label { font-weight: 600; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.choice-label small { font-weight: 400; color: var(--ink-soft); }

.cut-tabs { display: flex; gap: 8px; }
.cut-tabs button {
  font: inherit;
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--espresso);
}
.cut-tabs button[aria-pressed="true"] { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); }
.cut-tabs .cut-model { display: block; font-size: 0.75rem; color: var(--ink-soft); }

.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(58, 42, 32, 0.25);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.chip[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--espresso);
  border-radius: 50%;
}
.chip-name { font-size: 0.9rem; color: var(--ink-soft); min-height: 1.4em; margin-top: 8px; }

.size-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btns button {
  font: inherit;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--espresso);
}
.size-btns button[aria-pressed="true"] { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row button {
  font: inherit; font-size: 1.2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.qty-row button:disabled { opacity: 0.4; cursor: default; }
.qty-val { min-width: 2ch; text-align: center; font-weight: 600; }

.add-btn {
  font: inherit;
  width: 100%;
  margin-top: 6px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1.05rem;
  cursor: pointer;
}
.add-btn:hover { background: #9a3628; }

/* order list */
.order-list { margin-top: 26px; border-top: 2px solid var(--espresso); padding-top: 14px; }
.order-list h3 { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin-bottom: 10px; }
.order-list ul { list-style: none; }
.order-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}
.order-list .line-desc { flex: 1; }
.order-list .line-remove {
  font: inherit;
  background: none; border: none;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
}
.order-empty { color: var(--ink-soft); font-style: italic; }

/* ---------- size chart ---------- */
.size-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.size-tables h3 { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin-bottom: 10px; }
.size-tables .size-diagram {
  width: min(260px, 100%);
  margin: 0 auto 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}
.size-tables .table-scroll { overflow-x: auto; }
.size-tables table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); }
.size-tables th, .size-tables td { padding: 8px 12px; border: 1px solid var(--line); text-align: center; font-size: 0.95rem; }
.size-tables th { background: var(--cream); font-weight: 600; }
.size-tables td small { color: var(--ink-soft); display: block; }
.size-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- about ---------- */
.about { background: var(--espresso); color: var(--cream); }
.about .section-head { color: var(--cream); }
.about p { max-width: 62ch; margin-bottom: 14px; }
.about .stet { font-family: var(--hand); color: var(--coral); font-size: 1.25rem; }
.about a { color: var(--coral); }

/* ---------- order form ---------- */
.order-form { max-width: 560px; }
.order-form label { display: block; font-weight: 600; margin: 18px 0 6px; }
.order-form label small { font-weight: 400; color: var(--ink-soft); }
.order-form input, .order-form textarea {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--espresso);
}
.order-form input:focus, .order-form textarea:focus { outline: 2px solid var(--espresso); outline-offset: 1px; }
.order-form .botcheck { position: absolute; left: -9999px; }
.submit-btn {
  font: inherit;
  margin-top: 24px;
  background: var(--espresso);
  color: var(--cream);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1.05rem;
  cursor: pointer;
}
.submit-btn:hover:not(:disabled) { background: #4a3729; }
.submit-btn:disabled { opacity: 0.5; cursor: default; }
.form-hint { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.form-error { margin-top: 12px; color: var(--red); font-weight: 600; }

.success-panel {
  background: #fff;
  border: 2px solid var(--espresso);
  border-radius: 14px;
  padding: 28px;
  max-width: 560px;
}
.success-panel h3 { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin-bottom: 8px; }
.success-panel .order-id { font-family: var(--hand); font-size: 1.3rem; color: var(--red); }
.success-panel p { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
