/* ==========================================================================
   Base: tokens, reset, typography
   Matches the EM Embroidery & Workwear coming soon page and customiser
   prototype: warm cream, soft ink, gold hairlines, Bodoni Moda + Montserrat.
   ========================================================================== */

:root {
  /* Palette */
  --cream:       #F1E7E6;
  --cream-2:     #E8DDD8;
  --panel:       #FBF7F4;
  --ink:         #2B2A26;
  --ink-soft:    #6B6862;
  --gold:        #B6862F;
  --gold-bright: #C99A3E;
  --gold-deep:   #8A6424;   /* gold for small text and filled buttons, keeps contrast */
  --line:        #E1D6D0;
  --line-strong: #D6CBB4;
  --good:        #5C7A5E;
  --good-bg:     #EAF0E9;
  --good-text:   #3B5A3D;
  --warn:        #A8452F;
  --warn-bg:     #F4E6E1;
  --note-bg:     #FBF2EA;
  --note-line:   #E9D3BC;
  --note-text:   #6B4A24;
  --white:       #FFFFFF;

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--2: 0.6875rem;   /* 11px caps labels */
  --step--1: 0.8125rem;   /* 13px */
  --step-0:  0.9375rem;   /* 15px body */
  --step-1:  1.2rem;
  --step-2:  1.5rem;
  --step-3:  clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  --step-4:  clamp(1.7rem, 1.1rem + 2.6vw, 2.5rem);

  /* Space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;

  --radius: 4px;
  --wrap: 1100px;
  --focus: 0 0 0 2px var(--cream), 0 0 0 4px var(--gold);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--s4);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.3;
}
h3, h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--s4); max-width: 68ch; }

a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.15s; }
a:hover { color: var(--gold-deep); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }

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

address { font-style: normal; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }

code { font-size: 0.9em; background: var(--cream-2); padding: 0.1em 0.3em; border-radius: var(--radius); }

::selection { background: var(--gold-bright); color: var(--white); }

/* Small uppercase label, the house style for field and section labels */
.caps {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.strong { font-weight: 500; }
.text-danger { color: var(--warn); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: var(--s4); top: -3rem; z-index: 100; background: var(--panel); padding: var(--s2) var(--s4); }
.skip-link:focus { top: var(--s4); }

.plain-list { list-style: none; margin: 0; padding: 0; }

[hidden] { display: none !important; }

/* Entrance, as on the coming soon page */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes growLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
