/* Good Machines — shared interior-page styles (home keeps its own hero treatment).
   Register: warm cream ground, charcoal ink, Figtree text, Plex Mono eyebrows. */

:root {
  --gm-charcoal: #111413;
  --gm-graphite: #4B4F52;
  --gm-orange: #E8593C;
  --gm-orange-deep: #CE4B30;
  --mita-amber: #E8954E;
  --gm-cream: #F4F1E9;
  --gm-paper: #FBFAF6;
  --gm-hairline: #E2DDD1;
  --gm-gray-warm: #8C867C;
  --gm-font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gm-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--gm-font-sans);
  color: var(--gm-charcoal);
  background: var(--gm-cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---------- Site nav ---------- */
.sitenav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  background: var(--gm-cream);
  border-bottom: 1px solid var(--gm-hairline);
}
.sitenav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--gm-charcoal);
  font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
}
.sitenav .brand img { width: 26px; height: 26px; display: block; }
.sitenav .links { display: flex; gap: clamp(14px, 3vw, 28px); }
.sitenav .links a {
  text-decoration: none; color: var(--gm-graphite);
  font-size: 14.5px; font-weight: 500;
}
.sitenav .links a:hover, .sitenav .links a[aria-current="page"] { color: var(--gm-charcoal); }
.sitenav .links a[aria-current="page"] { border-bottom: 2px solid var(--gm-orange); padding-bottom: 2px; }
@media (max-width: 560px) {
  .sitenav .links a.optional { display: none; }
}

/* ---------- Interior page scaffolding ---------- */
.page {
  max-width: 720px; margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) 24px 64px;
}
.page.wide { max-width: 980px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--gm-font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gm-gray-warm);
}
h1.pagetitle {
  margin: 14px 0 10px; font-size: clamp(30px, 5vw, 40px); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance;
}
.pagelede {
  font-size: 18px; color: var(--gm-graphite); max-width: 56ch; text-wrap: pretty;
}

.page h2 { margin: 44px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.005em; }
.page h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; }
.page p { margin: 0 0 14px; color: var(--gm-graphite); max-width: 62ch; }
.page ul { margin: 0 0 14px 1.2em; color: var(--gm-graphite); max-width: 60ch; }
.page li { margin-bottom: 6px; }
.page a { color: var(--gm-orange-deep); text-decoration: none; }
.page a:hover { text-decoration: underline; }
.page .rule { border: 0; border-top: 1px solid var(--gm-hairline); margin: 40px 0; }
.page strong { color: var(--gm-charcoal); font-weight: 600; }

/* ---------- Product feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 280px; gap: clamp(24px, 5vw, 56px);
  align-items: center; margin: 56px 0;
}
.feature.flip { grid-template-columns: 280px 1fr; }
.feature.flip .copy { order: 2; }
.feature .shot { justify-self: center; }
.feature .shot img {
  width: 100%; max-width: 280px; display: block; border-radius: 28px;
  border: 1px solid var(--gm-hairline);
  box-shadow: 0 24px 60px -28px rgba(17, 20, 19, 0.35);
}
.feature .copy h2 { margin-top: 0; }
@media (max-width: 720px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
}

/* ---------- Journal ---------- */
.postlist { list-style: none; margin: 36px 0 0; padding: 0; }
.postlist li { border-top: 1px solid var(--gm-hairline); }
.postlist li:last-child { border-bottom: 1px solid var(--gm-hairline); }
.postlist a {
  display: block; padding: 22px 4px; text-decoration: none; color: inherit;
}
.postlist a:hover .post-title { color: var(--gm-orange-deep); }
.post-date {
  font-family: var(--gm-font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gm-gray-warm);
}
.post-title { margin: 6px 0 4px; font-size: 20px; font-weight: 600; color: var(--gm-charcoal); }
.post-sub { color: var(--gm-graphite); font-size: 15.5px; max-width: 60ch; }

article.post .post-date { display: block; margin-bottom: 8px; }
article.post h1 { margin: 0 0 18px; font-size: clamp(26px, 4.5vw, 34px); font-weight: 600; line-height: 1.2; }
article.post p { font-size: 16.5px; }
article.post .shot-inline img {
  width: 100%; max-width: 320px; display: block; margin: 26px auto;
  filter: drop-shadow(0 20px 40px rgba(17, 20, 19, 0.25));
}

/* ---------- Contact / info card ---------- */
.infocard {
  margin-top: 28px; padding: 24px 26px;
  background: var(--gm-paper); border: 1px solid var(--gm-hairline); border-radius: 14px;
  max-width: 480px;
}
.infocard dt {
  font-family: var(--gm-font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gm-gray-warm); margin-top: 14px;
}
.infocard dt:first-child { margin-top: 0; }
.infocard dd { margin: 3px 0 0; color: var(--gm-charcoal); font-size: 15.5px; }

/* ---------- Footer ---------- */
.pagefoot {
  background: var(--gm-cream);
  border-top: 1px solid var(--gm-hairline);
  padding: 28px 24px 40px; text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.pagefoot .rowlinks { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.pagefoot a { color: var(--gm-graphite); text-decoration: none; font-size: 14px; }
.pagefoot a:hover { color: var(--gm-charcoal); }
.pagefoot .legal { color: var(--gm-gray-warm); font-size: 12.5px; }
