/* Marco — the marketing site.
 *
 * Layered over `tokens.css`, which is copied in from `docs/design-tokens.css` at build time
 * and is canonical. Nothing here redefines a token; it only uses them, so a colour changes
 * in one file and lands in three places.
 *
 * Two disciplines carried over from the app, because a site that reads differently from the
 * product is a promise the product then has to keep:
 *
 *   .marco   is the ONLY place Marco speaks. One per page, maximum. Everything else on this
 *            site is the company's voice, which is a different register — the site sells,
 *            and Marco never does.
 *   mono     is for marks and codes. They are data, not prose, and typography is where that
 *            distinction is made rather than explained.
 *
 * There is no red. Nothing in this product is an "error", so the palette does not offer one.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--marco-page);
  color: var(--marco-ink);
  font-family: var(--marco-font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- rhythm --------------------------------------------------------------------------- */

.wrap {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 24px;
}

.wide {
  max-width: 92ch;
}

section {
  padding: 56px 0;
}

section + section {
  border-top: 1px solid var(--marco-line);
}

/* --- chrome --------------------------------------------------------------------------- */

header.site {
  padding: 22px 0;
  border-bottom: 1px solid var(--marco-line);
  background: var(--marco-cream);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--marco-ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  margin-left: 18px;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--marco-ink);
}

/* The wordmark is always "Marco." — accent-coloured period, never an acronym. */
.wordmark {
  font-family: var(--marco-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--marco-ink);
  text-decoration: none;
}

.wordmark b {
  color: var(--marco-accent);
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--marco-line);
  background: var(--marco-cream);
  padding: 34px 0;
  color: var(--marco-ink-soft);
  font-size: 0.88rem;
}

footer.site a {
  color: var(--marco-ink-soft);
}

/* --- type ----------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--marco-font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: 8px;
}

h3 {
  font-size: 1.1rem;
  font-family: var(--marco-font-ui);
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-family: var(--marco-font-voice);
  font-size: 1.2rem;
  color: var(--marco-ink);
}

.eyebrow {
  font-family: var(--marco-font-mono);
  font-size: var(--marco-text-eyebrow);
  letter-spacing: var(--marco-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--marco-ink-soft);
  margin-bottom: 10px;
}

.quiet {
  color: var(--marco-ink-soft);
  font-size: 0.92rem;
}

/* Marks and codes. Data, not prose. */
code,
.mono {
  font-family: var(--marco-font-mono);
  font-size: 0.9em;
  letter-spacing: var(--marco-tracking-mono);
}

/* --- Marco's one card ------------------------------------------------------------------ */

.marco {
  font-family: var(--marco-font-voice);
  font-size: 1.05rem;
  line-height: 1.5;
  background: var(--marco-accent-tint);
  border: 1px solid var(--marco-line);
  border-radius: var(--marco-radius);
  padding: 20px 22px;
  margin: 28px 0;
}

/* --- cards and grids -------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  background: var(--marco-white);
  border: 1px solid var(--marco-line);
  border-radius: var(--marco-radius);
  padding: var(--marco-pad-card);
}

.card h3 {
  margin-bottom: 6px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* --- buttons ---------------------------------------------------------------------------- */

.cta {
  display: inline-block;
  background: var(--marco-accent);
  color: var(--marco-white);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--marco-radius-btn);
  transition: filter var(--marco-transition);
}

.cta:hover {
  filter: brightness(1.06);
}

.cta.quietly {
  background: transparent;
  color: var(--marco-ink);
  border: 1px solid var(--marco-line);
}

/* --- tables ------------------------------------------------------------------------------ */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

/* Wide content scrolls in its own box; the page body never scrolls sideways. */
.scrolls {
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--marco-line);
}

th {
  font-size: var(--marco-text-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marco-ink-soft);
  font-weight: 600;
}

td.num {
  font-family: var(--marco-font-mono);
  text-align: right;
  white-space: nowrap;
}

/* --- a screenshot stand-in ---------------------------------------------------------------- */

.frame {
  max-width: var(--marco-frame-max);
  margin: 0 auto;
  background: var(--marco-cream);
  border: 1px solid var(--marco-line);
  border-radius: var(--marco-frame-radius);
  box-shadow: var(--marco-shadow-frame);
  padding: 18px;
}

.chip {
  display: inline-block;
  font-family: var(--marco-font-mono);
  font-size: var(--marco-text-meta);
  letter-spacing: var(--marco-tracking-mono);
  background: var(--marco-cream-2);
  border-radius: var(--marco-radius-pill);
  padding: 3px 10px;
  color: var(--marco-ink-soft);
}

.chip.flag {
  background: var(--marco-flag-tint);
  color: var(--marco-accent);
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.buttons .cta {
  padding: 10px 16px;
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  section {
    padding: 40px 0;
  }

  nav a {
    margin: 0 14px 0 0;
  }
}

/* --- utilities that used to be inline -------------------------------------------------------
 *
 * These were `style="..."` attributes, which the CSP on this origin silently drops:
 * `style-src 'self'` carries no `'unsafe-inline'`, so a browser applies none of them. Nobody
 * saw it because the site had never been served with its own headers — `python -m http.server`
 * sends no CSP, and Cloudflare Pages is where `_headers` first takes effect.
 *
 * Named for what they do rather than what they set, so the next one has somewhere to go. */
.tight { margin: 12px 0 0; }
.spaced { margin-top: 14px; }
.spaced-lg { margin-top: 18px; }
.block { margin: 20px 0; }
.centred { text-align: center; margin-top: 14px; }
.voice-note { font-family: var(--marco-font-voice); font-size: 1.02rem; }
.voice-close { font-family: var(--marco-font-voice); margin-bottom: 0; }
.close { margin-bottom: 6px; }
.rule { border: 0; border-top: 1px solid var(--marco-line); margin: 14px 0; }

/* --- the holding page ------------------------------------------------------------------------
 *
 * One screen: the wordmark, the promise, and the fact that it is not open yet. Centred and
 * vertically middled, so it reads as a held place rather than a page with its content missing. */
body.holding {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.holding-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px;
}

.holding-mark {
  font-family: var(--marco-font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 15vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--marco-ink);
  margin: 0 0 26px;
}

/* The accent period is the whole mark — it is what the wordmark is named for, and at this
 * size it is the one thing that has to survive being seen from across a room. */
.holding-mark b {
  color: var(--marco-accent);
  font-weight: 600;
}

.holding-line {
  font-family: var(--marco-font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 22ch;
}

.holding-soon {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marco-ink-soft);
  margin: 0;
}

.holding-foot {
  padding: 0 22px 28px;
  text-align: center;
  font-size: 0.82rem;
}

.holding-foot a {
  color: var(--marco-ink-soft);
  margin: 0 10px;
}

.holding-by {
  margin: 34px 0 0;
  font-size: 0.78rem;
  color: var(--marco-ink-soft);
}
