/* Clock It Nails — shared foundation.
   Every colour is taken from the storefront sign photos:
   - maroon:  the painted sign wall (#5C0E1E), shadow side (#3B0A14)
   - cream:   the lit letter faces (#F6E2C4), glow halo (#E9B98A)
   - paper:   cream mixed toward white for long reading (#FBF5EC) */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-full-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

/* Palette from the Clock It Nails brand kit (web/brand-tokens.css), plus tints derived from it. */
:root {
  --maroon: #4B0B20;       /* brand burgundy */
  --maroon-deep: #310817;  /* brand deep burgundy */
  --maroon-soft: #7A3448;  /* burgundy tint */
  --cream: #F8E6C8;        /* brand cream */
  --glow: #D9AE7E;         /* brand gold, lifted for use on burgundy */
  --gold: #B98955;         /* brand warm gold: decorative only */
  --paper: #F8F2EA;        /* brand ivory */
  --paper-2: #F1E6D7;
  --line: #E4D5C2;
  --ink: #25191B;          /* brand ink */
  --ink-2: #765E60;        /* brand muted — 5.4:1 on ivory */
  --ok: #2F6B3F;
  --warn: #8A5A00;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* type scale (1.25) */
  --t-xs: 0.8rem; --t-sm: 0.9rem; --t-md: 1rem; --t-lg: 1.25rem; --t-xl: 1.56rem; --t-2xl: 1.95rem; --t-3xl: 2.44rem;
  /* spacing (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-md)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; font-variation-settings: 'SOFT' 100, 'WONK' 0; }
p { margin: 0 0 var(--s4); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: one primary (maroon fill), one secondary (outline), one quiet (text). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--radius);
  border: 1.5px solid var(--maroon); background: var(--maroon); color: var(--cream);
  font: 500 var(--t-md)/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--maroon); }
.btn.secondary:hover { background: var(--paper-2); }
.btn.quiet { background: none; border-color: transparent; color: var(--maroon); padding: 0 var(--s3); text-decoration: underline; }
.btn.small { min-height: 38px; padding: 0 var(--s4); font-size: var(--t-sm); }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Forms */
label { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--s1); }
.field { margin-bottom: var(--s4); }
input:not([type]), input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: var(--s3); border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 16px; /* stops iOS zoom */
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--maroon); outline: none; }
.hint { font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s1); }
.error { color: #9B1C1C; font-size: var(--t-sm); margin: var(--s2) 0; }

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