/* Piccard Mariana: page layout. Colours, fonts and the header and footer come from
   /untethered/assets/untethered.css (the site's tokens); this file only lays the page out. */

.mx-main {
  flex: 1;
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.mx-main p { margin: 0 0 1.1em; }
.mx-main p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */

.mx-hero { display: grid; gap: 40px; padding-bottom: 80px; }
.mx-hero-text { max-width: 720px; }

.mx-kicker,
.mx-cta {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mx-main .mx-kicker { color: var(--text); margin: 0 0 18px; }

.mx-title {
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mx-lede { color: var(--white); font-size: 17px; line-height: 1.65; }

.mx-main .mx-actions { margin-top: 28px; }

.mx-cta {
  display: inline-block;
  padding: 12px 0;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  line-height: 1;
}
.mx-cta:hover { border-bottom-color: var(--line-focus); }

.mx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.mx-download {
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.mx-download:hover { border-color: var(--line-focus); }

/* ---------- figures: the canvas alone (no pause button: the Founder's decision, 2026-10-04) ---------- */

.mx-figure { margin: 0; }

/* The stage follows the canvas's shape (main.js: wider than 3:2 is the wide stage), so the
   aspect ratio switches at the same breakpoint as the stage does. */
.mx-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}


/* Without scripting the canvas would stay empty, so the figure gives way to the text. */
@media (scripting: none) { .mx-figure { display: none; } }

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

.mx-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.mx-block { padding: 72px 0; border-top: 1px solid var(--line); }
.mx-block .mx-text { max-width: 720px; }

.mx-text h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.mx-text h3 {
  margin: 32px 0 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* Reading text is set in the system sans the emails use, so paragraphs read easily (the
   Founder's choice, 2026-10-03); headings, labels, buttons and the canvases stay in the site's
   mono. A section reads as one lead sentence, then its specifics as short items between 1 px
   lines. */
.mx-main { --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
.mx-main p, .mx-main li, .mx-main dd { font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: 0; }
.mx-main .mx-kicker, .mx-main .mx-actions { font-family: var(--mono); }
/* No lone last word: balanced headings, and no one-word last line in paragraphs. */
.mx-main h1, .mx-main h2, .mx-main h3 { text-wrap: balance; }
.mx-main p, .mx-main li, .mx-main dd { text-wrap: pretty; }
.mx-main .mx-lede, .mx-main .mx-lead { color: var(--white); font-size: 19px; line-height: 1.5; }
.mx-main .mx-lead { margin-bottom: 20px; }
.mx-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mx-main .mx-points li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mx-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-bottom: 1.1em; }
.mx-pair h3 { margin-top: 0; }

.mx-main .mx-note { color: var(--quiet); }
/* One link per section to the researcher docs, in the mono of the page's actions. */
.mx-main .mx-more { margin: 16px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.mx-main .mx-more a { color: var(--white); text-decoration: underline; text-decoration-color: var(--line-focus); text-underline-offset: 4px; }
.mx-main .mx-more a::after { content: " \2197"; }
.mx-main .mx-more a:hover, .mx-main .mx-more a:focus-visible { text-decoration-color: var(--white); }

.mx-faq { margin: 0; }
.mx-faq dt { margin: 28px 0 6px; color: var(--white); }
.mx-faq dt:first-child { margin-top: 0; }
.mx-faq dd { margin: 0; }


/* ---------- narrower screens ---------- */

@media (max-width: 1023px) {
  .mx-section { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 64px 0; }
}

/* Phones: the 4:3 canvas and its narrow stage. */
@media (max-width: 767px) {
  .mx-canvas { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .mx-main { width: calc(100% - 32px); padding: 40px 0 72px; }
  .mx-hero { gap: 32px; padding-bottom: 56px; }
  .mx-main .mx-lede, .mx-main .mx-lead { font-size: 18px; }
  .mx-section { padding: 48px 0; gap: 28px; }
  .mx-block { padding: 48px 0; }
  .mx-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}


@media (forced-colors: active) {
  .mx-canvas, .mx-section, .mx-block { border-color: CanvasText; }
  .mx-cta { border-bottom-color: LinkText; }
  .mx-download { border-color: LinkText; }
}

/* Contact form */

/* The #talk form and the result pages of POST /mariana/contact. The homepage signup's look:
   fields drawn with 1 px lines, Plex Mono caps labels, and 16 px text in every field so iOS
   doesn't zoom in when one is focused. */

.mx-form { display: grid; gap: 28px; max-width: 560px; margin-top: 36px; }

.mx-field { display: grid; gap: 6px; }

.mx-field label {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.mx-optional { color: var(--quiet); }

.mx-field input,
.mx-field textarea {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--white);
  caret-color: var(--white);
  font: 16px/1.6 var(--mono);
}
/* Several lines to write in: the same 1 px line on all four sides, so its height shows. */
.mx-field textarea {
  min-height: 10.5em;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  resize: vertical;
}
.mx-field input:focus,
.mx-field textarea:focus { border-color: var(--line-focus); }
.mx-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 40px var(--abyss) inset;
  transition: background-color 9999s;
}

/* The field people never fill in: out of sight, out of the tab order and hidden from screen
   readers (the server treats a filled one as a bot). */
.mx-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mx-form .mx-actions { margin: 4px 0 0; }

.mx-send {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  font-family: var(--mono);
  cursor: pointer;
}
.mx-send:focus-visible { border-bottom-color: var(--line-focus); }

/* The result page: one sentence and the way back. */
.mx-result section { max-width: 720px; }
.mx-result .mx-title { font-size: clamp(22px, 2.8vw, 28px); }
.mx-result .mx-title a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--line-strong); }
.mx-result .mx-title a:hover { text-decoration-color: var(--line-focus); }

@media (forced-colors: active) {
  .mx-field input, .mx-field textarea { border-color: CanvasText; }
  .mx-send { border-bottom-color: ButtonText; color: ButtonText; }
}
