/* nembo.app: the secondary pages (privacy, terms, /t, 404) in the brand of the P11 (brand/kit):
   white page, Midnight ink, Terracotta and Kiln accents, Jost for titles, Nunito Sans for text,
   IBM Plex Mono for data. The waiting-list page has its own styles (lista/page.css). */
@font-face{font-family:"Jost";font-style:normal;font-display:swap;font-weight:100 900;src:url("/fonts/jost-latin-wght-normal.woff2") format("woff2")}
@font-face{font-family:"Nunito Sans";font-style:normal;font-display:swap;font-weight:200 1000;src:url("/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-display:swap;font-weight:400;src:url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2")}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --sand: #efe4d6;
  --ink: #1f2a44;
  --muted: #5e5752;
  --line: #e8ddd2;
  --stone: #b2a496;
  --terra: #bb624c;
  --kiln: #9a4a37;
  --on-terra: #fff6ec;
  --display: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --text: "Nunito Sans", "Nunito", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

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

a { color: var(--kiln); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.narrow { max-width: 780px; }

/* Header: the logo of the waiting-list page, as an image */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.logo { display: inline-flex; line-height: 0; }
.logo img { height: 34px; width: auto; }

.doc-switch { display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.doc-switch a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.doc-switch a[aria-current="page"] { background: var(--sand); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-weight: 400; font-size: 26px; line-height: 1.2; }
h3 { font-weight: 500; font-size: 19px; line-height: 1.3; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--kiln);
  color: var(--on-terra);
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--on-terra); }

/* Privacy and terms */
.doc { padding: 48px 0 96px; }
.doc-back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; color: var(--muted); }
.doc h1 + p { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.doc h2 { margin-top: 48px; padding-top: 8px; scroll-margin-top: 96px; }
.doc h3 { margin-top: 28px; scroll-margin-top: 96px; }
.doc h2 + h3 { margin-top: 16px; }
.doc p, .doc ul, .doc ol { margin: 14px 0 0; color: var(--ink); }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--stone); }
.doc strong { font-weight: 700; }

.doc-summary {
  margin-top: 32px;
  padding: 4px 26px 24px;
  border-radius: 20px;
  background: var(--sand);
}
.doc-summary h2 { margin-top: 20px; font-size: 22px; }

.doc-toc {
  margin-top: 24px;
  padding: 4px 26px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.doc-toc h2 { margin-top: 20px; font-size: 22px; }
.doc-toc ul, .doc-toc ol { columns: 2; column-gap: 32px; padding-left: 20px; }
.doc-toc li { break-inside: avoid; }
.doc-toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.doc-toc a:hover { color: var(--kiln); text-decoration: underline; }

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--sand); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }

.doc blockquote {
  margin: 16px 0 0;
  padding: 14px 20px;
  border-left: 3px solid var(--terra);
  background: #faf6f1;
  border-radius: 0 12px 12px 0;
}

.doc-top { margin-top: 48px; font-weight: 600; }
.doc-top a { color: var(--muted); text-decoration: none; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer p { margin: 4px 0; }
.footer a { color: var(--muted); }

/* /t and the 404: one centred column */
.solo {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}
.solo .logo img { height: 36px; }
.solo .stage { width: min(320px, 80vw); margin: 28px auto 8px; aspect-ratio: 480 / 400; }
.solo .stage img { width: 100%; height: 100%; object-fit: contain; }
.solo h1 { margin-top: 18px; font-size: clamp(32px, 6vw, 48px); }
.solo p { margin: 16px auto 0; max-width: 32em; color: var(--muted); }
.solo .btn { margin-top: 28px; }

@media (max-width: 640px) {
  .doc-toc ul, .doc-toc ol { columns: 1; }
  .logo img { height: 28px; }
}
