/* Millwright Labs — brand tokens v1.0 */
:root {
  /* brand */
  --ink:        #182338;
  --ink-90:     #2A3550;
  --rust:       #B8623F;
  --rust-hover: #A0522F;
  --rust-text:  #9A4E30; /* use for small rust text on light grounds (5.9:1) */

  /* neutrals */
  --bone:       #E7E2D6;
  --paper:      #FBFAF8;
  --graphite:   #5A5751;
  --hairline:   #DAD5CB;

  /* type */
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* space — 8px grid */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  /* shape */
  --r-input: 4px;
  --r-card:  8px;
  --shadow-card: 0 1px 2px rgba(24, 35, 56, 0.06);

  /* measure */
  --max-w:    1200px;
  --max-text: 68ch;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 0.85; }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 24px;
     line-height: 1.25; text-transform: none; letter-spacing: 0; }

p { max-width: var(--max-text); text-wrap: pretty; margin: 0 0 var(--s-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}

a { color: var(--rust-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* dark sections */
.on-ink { background: var(--ink); color: var(--bone); }
.on-ink .eyebrow { color: #8093B5; }
.on-ink a { color: var(--rust); }
.on-ink a:hover { color: var(--bone); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 14px 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--r-input); border: 0; cursor: pointer;
  text-decoration: none; transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--rust); color: var(--paper); }
.btn--primary:hover { background: var(--rust-hover); color: var(--paper); }
.btn--secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--secondary:hover { background: rgba(24, 35, 56, 0.06); }
.on-ink .btn--secondary { color: var(--bone); border-color: var(--bone); }
.on-ink .btn--secondary:hover { background: rgba(231, 226, 214, 0.1); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-ink .btn:focus-visible { outline-color: var(--bone); }

/* cards */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
}

/* forms */
.field {
  width: 100%; padding: 14px 16px; font-size: 16px;
  font-family: var(--font-body); color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--hairline); border-radius: var(--r-input);
}
.field:focus {
  outline: none; border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(184, 98, 63, 0.2);
}
.label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite);
}

/* bar motif divider — the logo extended into layout */
.bars { display: flex; flex-direction: column; gap: var(--s-1); }
.bars i { display: block; height: 5px; background: currentColor; }
.bars i:nth-child(1) { width: 100%; }
.bars i:nth-child(2) { width: 62%; }
.bars i:nth-child(3) { width: 33%; background: var(--rust); }

/* layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-3); }
.section { padding: var(--s-7) 0; }
@media (max-width: 720px) {
  .section { padding: var(--s-5) 0; }
  body { font-size: 16px; }
}
