/* Maximus skin — bone ground, ink text, Rust as the ONLY action color.
   (Founder call 2026-08-31: light site; the product itself stays dark-first.)
   One deliberate dark object: the sample SMS card renders on Ink, so the
   product's voice looks like the product. */

:root {
  --bone: #F4EFE6;      /* ground */
  --ink: #14141A;       /* text */
  --muted: #6E6960;     /* secondary text */
  --faint: #8E8A7E;     /* captions, footer */
  --card: #ECE5D6;      /* light surface: inputs, number cards */
  --line: #DcD4C2;      /* rules and borders */
  --rust: #A0522D;      /* THE action color */
  --rust-deep: #8A4526; /* hover only */
  --tide: #2D3F50;      /* deep secondary — the call-screen disc */
  --lichen: #7A8471;    /* quiet tertiary: eyebrows */
  --ink-card: #14141A;  /* the SMS object */
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 58rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 0;
  font-family: var(--sans);
}
.nav-mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.nav-mark { display: inline-flex; align-items: center; gap: 0.45rem; }
/* SVG rebuild of the circle-M in full-strength Ink (founder call: the
   app's mask PNG renders faded — soft alpha — so the site draws the shape
   itself; the canonical PNG stays in assets/ as the shape reference). */
.nav-mark .mark-m { width: 1.6em; height: 1.6em; color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.nav-join {
  color: var(--bone);
  background: var(--rust);
  padding: 0.4rem 0.95rem;
  border-radius: 4px;
}
.nav-menu a.nav-join:hover { background: var(--rust-deep); color: var(--bone); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 3.8rem; right: 1.5rem;
    background: var(--bone);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(20,20,26,0.08);
    padding: 1rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    z-index: 10;
  }
  .nav-menu.open { display: flex; }
}

/* ---------- page ---------- */
.page {
  max-width: 58rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}
.page h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.page h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 3.4rem 0 0.8rem;
}
.page h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 2.2rem 0 0.6rem;
}
.eyebrow {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lichen);
  margin: 0 0 0.9rem;
}
.lede {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 2.2rem;
}
.page a { color: var(--rust); text-decoration: none; }
.page a:hover { color: var(--rust-deep); text-decoration: underline; }
.page ul, .page ol { padding-left: 1.3rem; margin: 0.7em 0; }
.page li { margin: 0.6rem 0; }
.page li p { margin: 0.25rem 0; }

/* ---------- home layout (v3 — hero + beta box, cards, dark band) ---------- */
/* Founder call 2026-09-02: one 58rem frame everywhere — nav, footer, and
   every page body match the home page's width. */

/* the loop diagram on /build */
.diagram { margin: 2.2rem 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { text-align: center; margin-top: 0.6rem; }

/* the seam — where the builder/VC reader peels off to /build */
.seam {
  margin-top: 3.5rem;
  color: var(--ink);
  font-size: 1rem;
}
.seam b { font-family: var(--sans); font-weight: 600; }
.seam a { font-family: var(--sans); font-weight: 600; white-space: nowrap; }

/* the rust seal — the circle-M closing a page */
.mark-seal { display: flex; justify-content: center; margin-top: 3rem; }
.mark-seal svg { width: 2.6rem; height: 2.6rem; color: var(--rust); }
.rust-lead { color: var(--rust); }

.page.index { max-width: none; padding-left: 0; padding-right: 0; }
.sect { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }
.sect-wide { max-width: 58rem; }

/* centered hero */
.hero { text-align: center; }
.hero .beta-box { margin-left: auto; margin-right: auto; }
.sect-center { text-align: center; }
.sect-center .cta-block { margin-bottom: 0; }

.beta-box {
  background: #FBF8F1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.7rem;
  margin: 2.4rem 0 0;
  max-width: 30rem;
}
.beta-box .btn { margin: 0; }
.beta-box .cta-note { margin: 0.8rem 0 0; }

.cards { display: grid; gap: 1rem; margin: 1.6rem 0 0; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
}
.card {
  background: #FBF8F1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
}
.card h2 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.card h2 em { font-weight: 400; }
.card h4 { margin: 0 0 0.5rem; }
.card .actor { color: var(--rust); }
.card p { margin: 0.5rem 0 0; }

/* mechanism: stacked cards beside the phone */
.mech-grid {
  display: grid;
  grid-template-columns: 1fr 16rem;
  gap: 2.8rem;
  align-items: center;
  margin-top: 1.8rem;
}
.mech-grid .cards { margin-top: 0; }
@media (max-width: 720px) { .mech-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* the phone — drawn from real parts: Ink screen, the circle-M, tap to talk */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 14.5rem;
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border: 7px solid #2A2A33;
  border-radius: 2.4rem;
  box-shadow: 0 20px 44px rgba(20, 20, 26, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}
.phone::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  width: 4.6rem;
  height: 0.42rem;
  background: #2A2A33;
  border-radius: 999px;
}
/* the real call screen: a Tide disc with the circle-M inside it
   (matched to reference/call-screen-screenshot.png) */
.phone .disc {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  background: var(--tide);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone .mark-m { width: 4.1rem; height: 4.1rem; color: #F4EFE6; }
.phone .tap {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #A9A498;
}
.phone button.disc {
  border: none;
  padding: 0;
  cursor: pointer;
}
.phone button.disc:focus-visible { outline: 2px solid #B8663E; outline-offset: 4px; }
.voice-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 72%;
  margin-top: 0.4rem;
}
.voice-bar input[type="range"] {
  width: 100%;
  accent-color: var(--rust);
  height: 4px;
  cursor: pointer;
}
.voice-time {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  color: #8E8A7E;
  white-space: nowrap;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 26rem) 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; gap: 1rem; } }
.duo .sms { margin: 0; }

.band {
  background: var(--ink);
  margin: 4.5rem 0;
  padding: 3.2rem 1.5rem;
}
.band-stack {
  max-width: 43rem;
  margin: 0 auto;
  border-left: 3px solid var(--rust);
  padding-left: 1.5rem;
}
.band-lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: #F4EFE6;
  margin: 0 0 1.1rem;
}
.band-line {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #A9A498;
  margin: 0 0 1.1rem;
}
.band-punch {
  font-family: var(--serif);
  font-size: 1.15rem;
  /* rust on Ink: the dark-ground rust variant for legible contrast
     (pure --rust reads muddy on the band) */
  color: #B8663E;
  margin: 0;
}

.mech b { font-family: var(--sans); font-weight: 600; }
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  border-left: 3px solid var(--rust);
  padding: 0.2em 0 0.2em 1.4rem;
  margin: 2.6rem 0;
}
.strip {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0;
}
.cta-block { margin: 2.2rem 0; }
.cta-note { color: var(--faint); font-size: 0.95rem; margin-top: 0.8rem; }

/* the SMS object — deliberately dark: the product speaking */
.sms {
  background: var(--ink-card);
  color: #F4EFE6;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
  max-width: 28rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
}
.sms .cap {
  display: block;
  margin-top: 0.8rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  color: #8E8A7E;
  white-space: normal;
}

/* the numbers strip on /build */
.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 0.8rem;
}
.numbers div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--muted);
}
.numbers b {
  display: block;
  font-family: var(--sans);
  font-size: 1.35rem;
  color: var(--rust);
  letter-spacing: -0.01em;
}
.small { font-size: 0.88rem; color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--rust);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--rust-deep); text-decoration: none; }
.page a.btn { color: var(--bone); }
.page a.btn:hover { color: var(--bone); text-decoration: none; }
.btn-sm {
  background: var(--rust);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn-sm:hover { background: var(--rust-deep); }

/* ---------- forms ---------- */
.app-form { margin: 1.6rem 0 0; }
.app-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin: 1.2rem 0 0;
}
.app-form input[type="text"],
.app-form input[type="email"],
.app-form input[type="tel"],
.app-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  background: #FBF8F1;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
}
.app-form input:focus, .app-form textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.app-form .consent {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  font-weight: 400;
  margin: 1.1rem 0 0;
}
.app-form .btn { margin-top: 1.6rem; }

.updates {
  margin-top: 4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.subscribe-row { display: flex; gap: 0.6rem; margin-top: 1rem; }
.subscribe-row input {
  flex: 1;
  background: #FBF8F1;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.55rem 0.75rem;
}
.subscribe-row input:focus { outline: none; border-color: var(--rust); }
.subscribe-note { font-size: 0.85rem; color: var(--faint); }
.subscribe-label { font-family: var(--sans); font-weight: 600; margin: 0; }

/* ---------- writing index ---------- */
.post-list { list-style: none; padding: 0; margin: 2rem 0; }
.post-list li { margin: 1.4rem 0; }
.post-list a { display: block; color: var(--ink); }
.post-list a:hover { text-decoration: none; }
.post-list-title {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
}
.post-list a:hover .post-list-title { color: var(--rust); }
.post-list-date {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 0.15rem;
}
.post-list-excerpt { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.feed-empty { color: var(--muted); }
.pager { display: flex; gap: 1rem; align-items: center; font-family: var(--sans); font-size: 0.9rem; margin-top: 2rem; }
.pager-num { padding: 0.1rem 0.4rem; }
.pager-num.is-current { color: var(--ink); font-weight: 600; }
.pager-edge.is-off { color: var(--faint); }

/* the About page — two columns: text left, Writings rail right */
.page.about { max-width: 58rem; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 840px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.about-head {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
}
.about-main .about-head + p { margin-top: 0; }
.about-main h2.about-head:nth-of-type(2) { margin-top: 3rem; }
.about-rail { border-left: 1px solid var(--line); padding-left: 1.6rem; }
@media (max-width: 840px) {
  .about-rail { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
}
.rail-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.rail-list li { margin: 0.5rem 0; }
.rail-list a { font-family: var(--sans); font-weight: 500; }
.substack-embed {
  width: 100%;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBF8F1;
}

/* the About portrait — Ink-on-Bone duotone, floats beside the text */
.portrait {
  float: right;
  width: 10.5rem;
  height: auto;
  margin: 0.3rem 0 1rem 1.5rem;
}
@media (max-width: 560px) {
  .portrait { float: none; display: block; margin: 0 auto 1.2rem; }
}

/* ---------- legal pages ---------- */
.page.privacy p strong:only-child,
.page.terms p strong:only-child { font-family: var(--sans); }

/* ---------- footer ---------- */
.foot {
  max-width: 58rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--faint);
  line-height: 2;
}
.foot a { color: var(--faint); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .foot-line { display: block; }
