/* doitmachina.com — the company. Owns its own styles (not shared with davidcrandall.dev).
   Tokens borrow slideinto.house's exactly: the parent looks like what it makes. See docs/DESIGN.md. */

:root {
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #f5f4f1;
  --surface: #ffffff;
  --sunk: #f8f7f4;
  --ink: #1c1d1f;
  --muted: #5f5a53;
  --line: #e3e0da;
  --edge: #8f887e;
  --accent: #33724d;
  --link: #33724d;
  --primary: #33724d;
  --primary-ink: #ffffff;
  --primary-hover: #2a5f40;
  --focus: var(--ink);

  --radius: 10px;
  --pill: 999px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141517;
    --surface: #1c1e21;
    --sunk: #17181a;
    --ink: #eceae6;
    --muted: #a3a09a;
    --line: #33363a;
    --edge: #6f737a;
    --accent: #7cc49a;
    --link: #7cc49a;
    --primary-hover: #3b7c56;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
}

:root[data-theme="dark"] {
  --bg: #141517;
  --surface: #1c1e21;
  --sunk: #17181a;
  --ink: #eceae6;
  --muted: #a3a09a;
  --line: #33363a;
  --edge: #6f737a;
  --accent: #7cc49a;
  --link: #7cc49a;
  --primary-hover: #3b7c56;
  color-scheme: dark;
}
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 900px) { .wrap { padding-inline: 40px; } }

section { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
section + section { border-top: 1px solid var(--line); }
#slideinto { padding-top: 0; }
.about-contact { display: grid; gap: 40px 64px; }
@media (min-width: 900px) { .about-contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.about-contact h2 { font-size: 1.5rem; letter-spacing: -0.015em; }

h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }

/* Nav */
nav { border-bottom: 1px solid var(--line); }
nav .wrap { min-height: 64px; display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-block: 10px; }
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }
nav ul a { color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none; }
nav ul a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 639px) {
  nav ul { order: 3; width: 100%; margin: 0; }
  .nav-end { margin-left: auto; }
}

.theme-btn {
  width: 44px; height: 44px; border-radius: var(--pill);
  border: 1px solid var(--edge); background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-btn:hover { background: var(--surface); }
.theme-btn .i-sun { display: none; }
html:not(.js) .theme-btn { display: none; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--pill);
  font: 600 1.0625rem/1 var(--sans); text-decoration: none;
  border: 1px solid var(--edge); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--surface); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) 56px; }
.eyebrow { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); line-height: 1.4; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700;
}
.hero .lede { margin-top: 24px; max-width: 36rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; }
.hero .cta { margin-top: 32px; }

/* Product */
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  display: grid; gap: 40px;
}
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 48px; align-items: start; }
}
.product figure { grid-column: 1 / -1; }
.product-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.product-mark { font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.product-mark span { color: var(--accent); }
.live { padding: 2px 10px; border: 1px solid var(--accent); border-radius: var(--pill); font: 500 1rem/1.5 var(--mono);
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.product-head + .product-pitch { margin-top: 16px; }
.product h3 { margin-top: 16px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.02em; font-weight: 700; }
.product-pitch { margin-top: 12px; }
.included { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px 24px; }
@media (min-width: 640px) and (max-width: 899px) { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .included { margin-top: 0; } }
.included li { position: relative; padding-left: 20px; }
.included li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--accent); }
.price-line { margin-top: 20px; color: var(--muted); }
.product-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.product-links a { font-weight: 600; text-decoration: none; }
.product-links a:hover { text-decoration: underline; }
.product figure { margin: 0; }
.product figure img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--sunk); }
.product figcaption { margin-top: 12px; font-size: 1rem; color: var(--muted); line-height: 1.5; }

/* How we build */
.section-sub { margin-top: 12px; max-width: 40rem; color: var(--muted); }
.beats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; counter-reset: beat; }
@media (min-width: 900px) { .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.beats li { border-top: 1px solid var(--line); padding-top: 16px; counter-increment: beat; }
.beats li::before { content: counter(beat, decimal-leading-zero); display: block; font: 500 1rem/1 var(--mono); letter-spacing: 0.02em; color: var(--accent); margin-bottom: 12px; }
.beats p { margin-top: 8px; color: var(--muted); }

/* About */
.about p { margin-top: 16px; max-width: 40rem; }
.about .quiet { margin-top: 12px; color: var(--muted); }

/* Contact */
.contact-list { margin: 16px 0 0; display: grid; }
.contact-list div { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }

.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; }
.contact-list dd a { font-weight: 500; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 32px; color: var(--muted); font-size: 1rem; }
