/* Monomer 3D — site styles.
   Colours, type and spacing come from the Monomer 3D design system (tokens.json).
   Change a value here and it changes everywhere. */

:root {
  /* Colour */
  --surface: #F6F5F1;        /* page background */
  --surface-raised: #FFFFFF; /* cards, fields */
  --ink: #1E2226;            /* text, primary button */
  --ink-secondary: #3A3F45;  /* secondary text */
  --ink-muted: #5B6168;      /* labels, captions */
  --on-ink: #F6F5F1;         /* text on an ink fill */
  --line: #DEDBD3;           /* borders */
  --link: #4F46E5;           /* links, focus rings */
  --error: #B42318;          /* form errors (6.0:1 on surface-raised) */

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-14: 56px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 14px;

  --max-width: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
}

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #3730A3; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 32px); line-height: 1.19; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }
@media (min-width: 900px) { .wrap { padding: 0 var(--space-14); } }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); background: var(--surface-raised); padding: var(--space-2) var(--space-3); z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 76px; flex-wrap: wrap; }
.site-header .logo img { width: 190px; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ink-secondary); text-decoration: underline; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: none; border-radius: var(--radius-md);
  background: var(--ink); color: var(--on-ink);
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: #000; color: var(--on-ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.site-nav .button { color: var(--on-ink); min-height: 44px; }
.site-nav .button:hover { text-decoration: none; }

/* Sections */
section { padding: var(--space-14) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 640px; }

.hero { padding: 88px 0 var(--space-14); }
.hero .wrap { display: flex; flex-direction: column; gap: var(--space-6); }
.hero p.lead { font-size: 18px; line-height: 29px; color: var(--ink-secondary); max-width: 620px; }
.hero .actions { display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; }

.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.card ul { margin: 0; padding-left: 20px; color: var(--ink-secondary); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li .label::before { content: "0" counter(step) " · "; }
.steps p { color: var(--ink-secondary); }

/* Callout: points quick, one-off prints to Local 3D Printing */
.callout {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4) var(--space-8); flex-wrap: wrap;
}
.callout > div { display: flex; flex-direction: column; gap: var(--space-1); flex: 1 1 320px; }
.callout p { color: var(--ink-secondary); }
.button-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--on-ink); }

/* Contact form */
.contact .wrap { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-intro p { color: var(--ink-secondary); }
form.card { gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label { font-weight: 500; font-size: 15px; }
.field .optional { color: var(--ink-muted); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid #8B9096; /* 3.2:1 control border */
  border-radius: var(--radius-md);
  padding: 10px 12px; min-height: 44px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 26px; font-size: 15px; }
.form-status.error { color: var(--error); }
.form-status.ok { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-8) 0; color: var(--ink-muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* Simple pages (thanks, 404) */
.simple { min-height: 60vh; display: flex; align-items: center; }
.simple .wrap { display: flex; flex-direction: column; gap: var(--space-4); }
