/* Swarf Suite sites: one stylesheet, an accent per app (set --accent on <html>). */
:root {
  --iron: #1a1c1f;        /* page */
  --plate: #222529;       /* raised surfaces */
  --rule: #34383e;        /* lines */
  --chalk: #ebe7df;       /* text */
  --dust: #a6a299;        /* secondary text */
  --accent: #d6a74b;      /* SwarfGRBL brass by default */
  --on-accent: #1a1c1f;
  --wide: "Archivo", system-ui, sans-serif;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--iron);
  color: var(--chalk);
  font-family: var(--wide);
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.mark { font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(0.9rem, 3vw, 2rem); font-size: 0.95rem; color: var(--dust); }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--chalk); }

/* Hero: the headline is set wide, like a machine's nameplate */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(2.4rem, 6.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
.lede { margin: 1.5rem 0 0; max-width: var(--measure); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--dust); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.button {
  display: inline-block; padding: 0.8rem 1.35rem; border-radius: 0.4rem;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.textlink { color: var(--chalk); text-decoration-color: var(--rule); text-underline-offset: 0.25em; }
.textlink:hover { text-decoration-color: var(--accent); }
.fine { margin: 1rem 0 0; font-size: 0.9rem; color: var(--dust); max-width: var(--measure); }

/* The window shot, with the job's progress drawn along its top edge once */
.shot { position: relative; margin: 0; }
.shot img { border-radius: 0.6rem; border: 1px solid var(--rule); box-shadow: 0 2rem 4rem -2rem #000; }
.cutline { position: absolute; left: 0.6rem; right: 0.6rem; top: -1px; height: 2px; overflow: hidden; }
.cutline::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--cut, 0.6));
  animation: cut 2.4s cubic-bezier(.3,.1,.2,1) 0.4s both;
}
@keyframes cut { from { transform: scaleX(0); } }

/* Feature rows: text left, picture right, every time — read like a spec sheet */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start; padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule);
}
.feature h2, .section h2 {
  margin: 0 0 1rem; font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.feature p, .section p { margin: 0 0 1rem; max-width: var(--measure); }
.feature figure { margin: 0; }
.feature figure img { border-radius: 0.5rem; border: 1px solid var(--rule); }
.feature figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--dust); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }

/* Short items: a plain two/three-column list, no boxes */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); margin: 2rem 0 0; padding: 0; list-style: none; }
.details h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; font-variation-settings: "wdth" 108; }
.details h3::before { content: ""; display: block; width: 1.5rem; height: 2px; margin-bottom: 0.8rem; background: var(--accent); }
.details p { margin: 0; color: var(--dust); font-size: 0.98rem; }

/* Facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.9rem 2.5rem; margin: 2rem 0 0; max-width: 46rem; }
.facts dt { color: var(--dust); }
.facts dd { margin: 0; }

/* Suite footer */
footer { border-top: 1px solid var(--rule); padding-block: 3rem 4rem; color: var(--dust); font-size: 0.95rem; }
.suite { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.suite a { color: var(--chalk); font-weight: 700; font-variation-settings: "wdth" 115; text-decoration: none; }
.suite a:hover { color: var(--accent); }
.suite [aria-current] { color: var(--accent); }
.suite p { margin: 0.2rem 0 0; }
footer small { display: block; font-size: 0.85rem; }

@media (max-width: 52rem) {
  .feature { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0.2rem; }
  .facts dd { margin-bottom: 0.9rem; }
}
@media (max-width: 30rem) {
  .bar nav a.optional { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cutline::after { animation: none; }
}
