/* Momentum Lab hub — hand-written, no framework, no webfonts, no third-party requests. */

:root {
  --paper: #f5f2ea;
  --ink: #191714;
  --body: #2b2620;
  --muted: #4f4941;
  --rule: rgba(25, 23, 20, 0.16);
  --accent: #1b5e45;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
}

a { color: var(--accent); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 5;
}
.skip:focus { left: 12px; top: 12px; }

.sheet {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 72px;
}

/* ---------- masthead ---------- */

.masthead { padding-top: clamp(26px, 4.5vw, 52px); }

.brandbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
}
.wordmark b { font-weight: 600; }

.address {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: clamp(30px, 4.6vw, 48px) 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6.6vw, 74px);
  line-height: 0.97;
  letter-spacing: -0.026em;
  max-width: 17ch;
}
h1 em { font-style: italic; color: var(--accent); }

.lede {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.35vw, 18.5px);
  color: var(--body);
}

/* ---------- sections ---------- */

section { margin-top: clamp(44px, 6vw, 76px); }

.sectionhead {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- tool rows ---------- */

ol.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.tool {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 392px);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
}

.num {
  margin: 0;
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 2.7vw, 31px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 180ms ease;
}
h3 a:hover,
h3 a:focus-visible { background-size: 100% 1px; }

.desc {
  margin: 11px 0 0;
  max-width: 47ch;
  color: var(--body);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 0;
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a342b;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 4px 8px;
  white-space: nowrap;
}
.chip.free { color: var(--accent); border-color: rgba(27, 94, 69, 0.5); }

.open {
  margin: 15px 0 0;
  font-family: var(--mono);
  font-size: 12.7px;
  letter-spacing: 0.02em;
}
.open a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(27, 94, 69, 0.45);
  padding-bottom: 1px;
}
.open a:hover { border-bottom-color: var(--accent); }

.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #12110f;
}

/* ---------- what to expect ---------- */

.expect { border-top: 1px solid var(--ink); padding-top: 16px; }

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 14px;
}

.note h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 7px;
}
.note p { margin: 0; font-size: 15.5px; color: var(--body); }

/* ---------- footer ---------- */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  color: var(--muted);
}
footer p { margin: 0; }
footer a { color: var(--accent); }
.fine { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; }

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  h1 { max-width: none; }
  .tool {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .shot {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
  .desc { max-width: none; }
  .notes { grid-template-columns: 1fr; }
  .brandbar { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  h3 a { transition: none; }
}

@media (prefers-color-scheme: dark) {
  /* Stay on paper: the product pages carry their own themes. */
  html { color-scheme: light; }
}
