/* mindtoo.me. Typefaces and colour tokens are PrivateAI's own (privateai-web DESIGN.md), copied rather than linked, so the
   two sites read as one family and neither depends on the other. What is MindToo's own: the mark (two rings with the
   lens between them filled), the lockup, the hero's one breath, and the threads on the cards.
   There is no JavaScript. Motion is CSS, plays once for under five seconds, and does not play under reduced motion. */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-latin-wdth-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 102%;
  ascent-override: 106.9%;
  descent-override: 31.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Mona Sans Stand-in";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 103.8%;
  ascent-override: 105%;
  descent-override: 30.8%;
  line-gap-override: 0%;
  unicode-range: U+0020-007E, U+00A0-00AC, U+00AE-00B4, U+00B6-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA,
    U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2013-2014, U+2018-201A, U+201C-201E, U+2022,
    U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Mona Sans Stand-in";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
    local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  font-weight: 550 900;
  font-stretch: 100% 109%;
  size-adjust: 103.8%;
  ascent-override: 105%;
  descent-override: 30.8%;
  line-gap-override: 0%;
  unicode-range: U+0020-007E, U+00A0-00AC, U+00AE-00B4, U+00B6-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA,
    U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2013-2014, U+2018-201A, U+201C-201E, U+2022,
    U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Mona Sans Stand-in";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
    local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  font-weight: 550 900;
  font-stretch: 110% 125%;
  size-adjust: 106%;
  ascent-override: 102.8%;
  descent-override: 30.2%;
  line-gap-override: 0%;
  unicode-range: U+0020-007E, U+00A0-00AC, U+00AE-00B4, U+00B6-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA,
    U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2013-2014, U+2018-201A, U+201C-201E, U+2022,
    U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Newsreader Stand-in";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  size-adjust: 93%;
  ascent-override: 79%;
  descent-override: 28.5%;
  line-gap-override: 0%;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "JetBrains Mono Stand-in";
  src: local("Menlo"), local("Menlo-Regular"), local("DejaVu Sans Mono"), local("DejaVuSansMono"),
    local("Roboto Mono"), local("RobotoMono-Regular"), local("Droid Sans Mono"), local("DroidSansMono"),
    local("Liberation Mono"), local("LiberationMono"), local("Courier New"), local("CourierNewPSMT");
  size-adjust: 100%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

:root {
  color-scheme: dark light;
  --paper: #110c26;
  --paper-2: #231a52;
  --glow: #3a2a86;
  --ink: #f2effa;
  --ink-muted: #b9b1d6;
  --ink-subtle: #8f86b3;
  --violet: #9d86ff;
  --violet-text: #b9a8ff;
  --gold: #f1d27a;
  --gold-2: #c9a227;
  --gild-a: #f1d27a;
  --gild-b: #c9a227;
  --gild-text: #f1d27a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --focus: #f1d27a;
  --grid: rgba(157, 134, 255, 0.075);
  --button-bg: #f1d27a;
  --button-ink: #110c26;
  --button-bg-hover: #f7e2a4;
  --font-sans: "Mona Sans", "Mona Sans Stand-in", "Mona Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", "Newsreader Stand-in", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.6vw, 4.5rem);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-space: clamp(var(--space-8), 9vw, 120px);
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 72rem;
  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-control: 10px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --paper: #f7f5fb;
    --paper-2: #ece7fb;
    --glow: #dcd2ff;
    --ink: #1a1433;
    --ink-muted: #544a78;
    --ink-subtle: #6b6290;
    --violet-text: #5a3fd1;
    --gold: #d9b24a;
    --gold-2: #a88414;
    --gild-a: #8a6410;
    --gild-b: #6e5208;
    --gild-text: #6a4c00;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-2: #ffffff;
    --line: rgba(26, 20, 51, 0.1);
    --line-strong: rgba(26, 20, 51, 0.22);
    --focus: #5a3fd1;
    --grid: rgba(90, 63, 209, 0.06);
    --button-bg: #1a1433;
    --button-ink: #f7f5fb;
    --button-bg-hover: #2b2250;
  }
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1000px 640px at 70% -8%, var(--glow) 0%, transparent 64%),
    linear-gradient(170deg, var(--paper-2), var(--paper) 44rem);
  background-repeat: no-repeat;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--violet-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  margin: 0 0 var(--space-5);
  font-size: var(--step-4);
  font-weight: 750;
  font-stretch: 106%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 11.152em;
}

h2 {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.25;
}

.gild {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  padding-right: 0.06em;
  color: var(--gild-a);
  background: linear-gradient(90deg, var(--gild-a), var(--gild-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gild-text);
}

.lede {
  margin: 0 0 var(--space-6);
  max-width: 36em;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-muted);
}

.muted {
  color: var(--ink-subtle);
  font-size: var(--step--1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--button-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
}

/* The header and footer: the MindToo mark beside the lockup "PrivateAI MindToo". */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  min-height: 4rem;
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand .mark {
  flex: none;
  width: 2rem;
  height: 2rem;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark__maker {
  font-weight: 500;
  color: var(--ink-muted);
}

.wordmark .gild {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  padding-right: 0;
}

.site-nav ul,
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer__nav a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer__nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer {
  margin-top: var(--space-8);
  padding-block: var(--space-7) var(--space-6);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  color: var(--ink-subtle);
  font-size: var(--step--1);
}

.site-footer__base p {
  margin: 0;
}

/* The mark. Two rings, PrivateAI's violet and gold, and the lens where they overlap filled: the memory between two
   minds. On the home page the rings come together once and the lens brightens as they meet. */
.mark {
  display: block;
  overflow: visible;
}

.mark__lens {
  opacity: 0.92;
}

.mark--hero .mark__ring--a {
  animation: mt-meet-a 2.6s var(--ease-out) backwards;
}

.mark--hero .mark__ring--b {
  animation: mt-meet-b 2.6s var(--ease-out) backwards;
}

.mark--hero .mark__lens {
  animation: mt-lens 2.6s ease-in backwards;
}

@keyframes mt-meet-a {
  from {
    transform: translateX(-64px);
  }
}

@keyframes mt-meet-b {
  from {
    transform: translateX(64px);
  }
}

@keyframes mt-lens {
  0%,
  55% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark--hero .mark__ring--a,
  .mark--hero .mark__ring--b,
  .mark--hero .mark__lens {
    animation: none;
  }
}

/* The 404 page: the two rings drawn further apart, and the lens between them left empty. */
.mark--lost .mark__ring--a {
  transform: translateX(-40px);
}

.mark--lost .mark__ring--b {
  transform: translateX(40px);
}

.mark--lost .mark__lens {
  opacity: 0;
}

/* The home page's opening. */
.hero {
  padding-block: clamp(var(--space-7), 7vw, var(--space-9));
}

.hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero__art {
  position: relative;
  isolation: isolate;
  width: min(62vw, 15rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
}

.hero__art .mark {
  width: 100%;
  height: 100%;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }

  .hero__art {
    order: 2;
    width: min(100%, 22rem);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--surface-2);
}

.button--primary {
  border-color: transparent;
  background: var(--button-bg);
  color: var(--button-ink);
}

.button--primary:hover {
  background: var(--button-bg-hover);
}

.note {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

/* Sections. */
.page-intro {
  padding-block: var(--space-8) var(--space-6);
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section--first {
  border-top: 0;
  padding-top: 0;
}

.section--tight {
  padding-block: var(--space-7);
}

.section--band {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-7);
}

.split {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .split .section-head {
    margin-bottom: 0;
  }
}

.stack > * {
  margin: 0;
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack p {
  color: var(--ink-muted);
}

.split .stack p {
  font-size: var(--step-1);
  line-height: 1.5;
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

/* Cards. Each opens with a thread from violet to gold. */
.cards {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.card {
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-bottom: var(--space-4);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Facts: a term and what is true of it. */
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts__row {
  display: grid;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .facts__row {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  }
}

.facts dt {
  font-weight: 650;
  color: var(--ink);
}

.facts dd {
  margin: 0;
  color: var(--ink-muted);
}

.facts dd p {
  margin: 0;
}

.facts dd p + p {
  margin-top: var(--space-3);
}

.facts--compact .facts__row {
  padding-block: var(--space-4);
}

.callout {
  max-width: 46rem;
  margin: 0 0 var(--space-5);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* Listing: the store badge, the owner's artwork unaltered; only its size is set, and it keeps its proportions. */
.listing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-5);
}

.listing a {
  display: inline-flex;
  border-radius: 6px;
}

.listing img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 100%;
}

.lost {
  padding-block: var(--space-9);
}

.lost__art {
  width: 9rem;
  aspect-ratio: 1;
  margin-bottom: var(--space-6);
}

.lost__art .mark {
  width: 100%;
  height: 100%;
}