/* m3dowprints.ca — built from the m3dowprints brand book
   Layout: one column of full-width bands; content held to a 1120px wrap. */
:root {
  --surface: #fafaf8;
  --surface-raised: #ffffff;
  --line: #e3e2dc;
  --ink: #1e1f22;
  --ink-muted: #5d5f66;
  --maple: #d22f2d;
  --maple-soft: #fce6e4;
  --on-maple: #ffffff;
  --marigold: #fde02d;
  --on-marigold: #1e1f22;
  --autumn: #eb5016;
  --charcoal: #1e1f22;

  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #141416;
    --surface-raised: #1e1f23;
    --line: #33343a;
    --ink: #f1f1ee;
    --ink-muted: #a6a8b0;
    --maple: #ff6b5e;
    --maple-soft: #3b1514;
    --on-maple: #141416;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/26px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maple); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  font: 600 12px/16px var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--maple);
  margin-bottom: var(--space-3);
}
.lead { font-size: 18px; line-height: 29px; color: var(--ink-muted); max-width: 34em; }
.spec { font: 400 13px/20px var(--font-mono); color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--maple); color: var(--on-maple);
  font: 600 16px/22px var(--font-sans); text-decoration: none;
  border: 2px solid var(--maple);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: block; flex-shrink: 0; }
.logo { height: 46px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--maple); }

/* Hero */
.hero { padding-block: var(--space-16); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-art { position: relative; margin: 0; display: grid; gap: var(--space-3); }
.hero-art picture { position: relative; display: block; }
.hero-art img { position: relative; width: 100%; aspect-ratio: 1; }
.hero-art figcaption { position: relative; font: 400 13px/20px var(--font-mono); color: var(--ink-muted); }
/* The one layer-line block: stripes like the stepped layers on the printed nameplate */
.layer-block {
  position: absolute; right: 0; top: 34%; width: 72%; height: 52%;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(to bottom, transparent 0 6px, var(--autumn) 6px 8px),
    var(--marigold);
}

/* Sections */
.section { padding-block: var(--space-16); }
.section-alt { background: var(--surface-raised); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: var(--space-8); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.steps li { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.steps p { color: var(--ink-muted); }
.step-no { font: 800 32px/1 var(--font-display); color: var(--maple); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.work { margin: 0; display: grid; gap: var(--space-3); align-content: start; }
.work img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; border: 1px solid var(--line); }
.work figcaption { display: grid; gap: 2px; }
.work figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.work figcaption span { color: var(--ink-muted); font-size: 14px; line-height: 22px; }

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-12); }
.about-grid h2 { margin-bottom: 0; }
.about-copy { display: grid; gap: var(--space-4); max-width: 38em; }
.about-copy p { font-size: 17px; line-height: 28px; }

/* Contact band: charcoal in both themes */
.contact { background: var(--charcoal); color: #f1f1ee; padding-block: var(--space-16); }
.contact-inner { display: flex; align-items: center; gap: var(--space-12); }
.contact-badge { width: 180px; height: 180px; flex-shrink: 0; object-fit: contain; background: #fff; border-radius: 50%; padding: 22px; box-sizing: border-box; }
.eyebrow-on-dark { color: var(--marigold); }
.contact h2 { margin-bottom: var(--space-3); }
.phone {
  display: inline-block;
  font: 800 clamp(30px, 6vw, 52px)/1.1 var(--font-display);
  color: var(--marigold); text-decoration: none; letter-spacing: .02em;
}
.phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-note { margin-top: var(--space-3); color: #a6a8b0; }

.site-footer { padding-block: var(--space-6); font-size: 14px; color: var(--ink-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* Tablet and phone */
@media (max-width: 860px) {
  .hero { padding-block: var(--space-8) var(--space-12); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-art { max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-feature { grid-column: 1 / -1; }
  .section, .contact { padding-block: var(--space-12); }
}
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .logo { height: 38px; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: var(--space-6); }
  .contact-badge { width: 120px; height: 120px; padding: 14px; }
  .actions .btn { width: 100%; }
}
.contact-email { margin-top: var(--space-3); font-size: 18px; }
.contact-email a { color: #f1f1ee; text-decoration-color: var(--marigold); text-underline-offset: 4px; }
.contact-email a:hover { color: var(--marigold); }
