@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-400.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/manrope-600.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-700.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("/fonts/manrope-800.ttf") format("truetype");
}

html.motion-enabled .view-stack {
  animation: none;
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.article-body,
.article-body h2,
.article-body .primary-button,
.recommended-notes b,
.brain-chain b,
.section-kicker,
.dashboard-section > h2,
.notion-build-grid h3,
.lab-section h2,
.lab-section-title h2 {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

:root {
  --frame-soft: #d1cec8;
  --frame-strong: #55514c;
  --frame-shadow: #24211e;
  --card-outline: #55514c;
}

@supports (color: color-mix(in srgb, black, white)) {
  :root {
    --frame-soft: color-mix(in srgb, var(--ink) 20%, transparent);
    --frame-strong: color-mix(in srgb, var(--ink) 72%, transparent);
    --frame-shadow: color-mix(in srgb, var(--ink) 92%, transparent);
    --card-outline: var(--frame-strong);
  }

  :root[data-theme="dark"] {
    --frame-soft: color-mix(in srgb, var(--ink) 24%, transparent);
    --frame-strong: color-mix(in srgb, var(--ink) 64%, transparent);
    --frame-shadow: color-mix(in srgb, var(--ink) 76%, transparent);
    --card-outline: var(--frame-strong);
  }
}

h1.notion-page-title,
.notion-hero h1,
.page-heading h1,
.article-header h1,
.notes-page-header h1,
.about-page-header h1 {
  font-family:
    "Manrope",
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
  letter-spacing: -.05em !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

h1.notion-page-title {
  font-size: clamp(40px, 4.4vw, 50px) !important;
}

.notion-hero h1.notion-page-title {
  max-width: 650px;
  font-size: clamp(44px, 4.7vw, 52px) !important;
  line-height: .98 !important;
}

.article-body {
  font-size: 18px;
  line-height: 1.76;
}

.article-body h2 {
  font-size: 23px;
  line-height: 1.28;
}

.metric-grid article,
.lab-metrics article {
  border-width: 1px;
  border-color: var(--frame-soft);
}

.notion-build-grid button,
.notion-build-grid a,
.notion-build-grid .build-external,
.home-blog-grid button,
.home-blog-grid a,
.notes-grid-card-v2,
.featured-note-v2,
.about-now-v2 article,
.recommend-grid button,
.recommend-grid a,
.documents-list a,
.article-header,
.article-cta,
.contact-primary-card,
.mama-coming-footer,
.mama-side-note {
  border-width: 1.5px;
  border-color: var(--frame-strong);
}

.brain-section {
  box-sizing: border-box;
  border: 1.5px solid var(--frame-strong);
  border-radius: 14px;
  background: var(--paper);
  margin: 30px 6px 38px 0;
  padding: 28px !important;
  box-shadow: 5px 5px 0 var(--frame-shadow);
}

/* A calmer, more editorial rhythm: fewer dashboard-like compressions. */
.content {
  max-width: 1200px;
  padding: 48px clamp(34px, 4.5vw, 64px) 84px;
}

.notion-hero {
  gap: 58px;
  padding: 24px 0 72px;
}

.notion-hero-copy > p {
  max-width: 590px;
  font-size: 16.5px;
  line-height: 1.74;
}

.dashboard-section {
  padding: 62px 0 68px;
}

.dashboard-section > h2 {
  text-transform: none;
  letter-spacing: -.035em;
  margin-bottom: 28px;
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 850;
  line-height: 1.12;
}

.metrics-section > h2 {
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.3;
}

.metric-grid,
.notion-build-grid,
.home-blog-grid,
.lab-metrics,
.notes-card-grid-v2 {
  gap: 18px;
}

.metric-grid article,
.lab-metrics article {
  min-height: 178px;
  padding: 22px;
}

.metric-grid b,
.lab-metrics article > b {
  margin-top: 22px;
  font-size: clamp(25px, 2vw, 30px);
}

.metric-grid p,
.lab-metrics article > p {
  font-size: 14px;
  line-height: 1.52;
}

.metric-grid small,
.lab-metrics article small {
  margin-top: 6px;
  font-size: 12.5px;
}

.metrics-context {
  max-width: 760px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.72;
}

.notion-build-grid button,
.notion-build-grid a,
.notion-build-grid .build-external {
  min-height: 224px;
  column-gap: 14px;
  padding: 24px;
}

.notion-build-grid h3 {
  font-size: 18px;
}

.notion-build-grid p {
  margin: 24px 0 20px;
  font-size: 15px;
  line-height: 1.68;
}

.notion-build-grid small {
  padding: 7px 11px;
  font-size: 12px;
}

.home-blog-grid button,
.home-blog-grid a {
  min-height: 340px;
}

.home-blog-copy {
  min-height: 170px;
  padding: 22px;
}

.home-blog-grid b {
  font-size: 17px;
  line-height: 1.45;
}

.home-blog-grid p {
  margin: 12px 0 22px;
  font-size: 14.5px;
  line-height: 1.65;
}

.brain-copy p,
.pilot-copy p,
.home-lab-teaser p {
  font-size: 15px;
  line-height: 1.72;
}

.brain-chain {
  gap: 28px;
  margin-top: 44px;
  padding: 42px 0;
}

.home-closing {
  gap: 40px;
  margin-top: 64px;
  padding: 52px;
}

.lab-intro {
  max-width: 760px;
  padding-bottom: 56px;
}

.lab-intro > p,
.notes-page-header > p,
.contacts-page-header > p,
.documents-header > p,
.mama-page-header > p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.72;
}

.lab-metrics {
  padding-bottom: 68px;
}

.lab-section {
  padding-bottom: 68px;
}

.lab-section h2,
.lab-section-title h2 {
  letter-spacing: -.025em;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
}

.notes-page-header,
.contacts-page-header,
.mama-page-header {
  padding-bottom: 52px;
}

.documents-header {
  margin-bottom: 48px;
}

.notes-featured-section {
  padding: 34px 0 48px;
}

.notes-all-section {
  padding: 24px 0 48px;
}

.notes-page-header {
  padding-bottom: 32px;
}

.notes-bottom-grid.notes-bottom-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.notes-featured-section > h2,
.notes-all-section > h2,
.popular-note-topics > h2,
.notes-telegram-card h2,
.about-journey > h2,
.about-now-v2 > h2 {
  margin-bottom: 26px;
  font-size: 24px;
  line-height: 1.25;
}

.featured-note-copy {
  padding: 34px 36px;
}

.notes-featured-section > h2,
.notes-all-section > h2 {
  margin-bottom: 20px;
}

.notes-grid-card-v2 > .note-card-body > p,
.home-blog-grid p {
  font-size: 15px;
  line-height: 1.7;
}

.notes-category-filters button {
  min-height: 42px;
  font-size: 13px;
}

/* One match should read as a result, not as an incomplete three-column row. */
.notes-card-grid-v2:has(> .notes-grid-card-v2:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
  .notes-card-grid-v2 > a.notes-grid-card-v2:only-child {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .notes-card-grid-v2 > .notes-grid-card-v2:only-child .note-cover {
    height: 100%;
    aspect-ratio: auto;
    min-width: 0;
    border-bottom: 0;
    border-right: 1.5px solid var(--frame-strong);
    padding: 20px;
  }

  .notes-card-grid-v2 > .notes-grid-card-v2:only-child .note-cover img {
    object-fit: contain;
    aspect-ratio: 3 / 2;
  }

  .notes-card-grid-v2 > .notes-grid-card-v2:only-child .note-card-body {
    justify-content: center;
    padding: 30px;
  }

  .notes-card-grid-v2 > .notes-grid-card-v2:only-child h3 {
    font-size: clamp(22px, 2vw, 28px);
  }
}

.notes-grid-card-v2 .note-card-body {
  padding: 24px 26px 28px;
}

.about-lead-grid {
  gap: 70px;
  padding: 24px 0 64px;
}

.about-page-v2 .about-journey,
.about-page-v2 .about-principles {
  padding: 56px 0 62px;
}

.about-page-v2 .about-now-v2 {
  padding: 56px 0 64px;
}

.about-page-v2 h2 {
  font-size: 24px !important;
  line-height: 1.25 !important;
}

.about-now-v2 > div {
  gap: 20px;
}

.about-page-v2 .about-now-v2 article {
  min-height: 230px;
  padding: 26px;
}

.contact-block {
  padding-top: 58px;
}

.contact-block h2 {
  margin-bottom: 22px;
  font-size: 23px;
}

.documents-list {
  gap: 14px;
}

.documents-list a {
  padding: 22px 24px;
}

.mama-story-grid {
  gap: 68px;
  padding: 56px 0 68px;
}

.mama-story h2 {
  letter-spacing: -.035em;
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.15;
}

.article-header {
  padding: clamp(42px, 5vw, 64px);
}

.article-header > p {
  font-size: 18px;
  line-height: 1.68;
}

.article-layout {
  gap: clamp(38px, 5vw, 68px);
  padding-top: 48px;
}

.article-body > section {
  padding-bottom: 46px;
}

.article-body > section + section {
  margin-top: 28px;
}

.recommended-notes {
  padding-top: 56px;
}

@media (min-width: 901px) {
  .site-shell {
    grid-template-columns: 236px minmax(0, 1fr);
    max-width: 1440px;
  }

  .sidebar {
    padding: 28px 16px 22px;
  }

  .nav-list {
    gap: 4px;
    margin-top: 32px;
  }

  .nav-item {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .notion-hero {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

@media (max-width: 900px) {
  .content {
    padding: 36px 28px 76px;
  }
}

html.motion-enabled .motion-reveal {
  opacity: 0;
  transform: translate3d(0, var(--motion-distance, 18px), 0);
  transition:
    opacity var(--motion-duration, 440ms) cubic-bezier(.16, 1, .3, 1),
    transform var(--motion-duration, 440ms) cubic-bezier(.16, 1, .3, 1),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  transition-delay: var(--motion-delay, 0ms);
}

html.motion-enabled .motion-reveal.motion-image {
  transform: translate3d(0, 12px, 0) scale(.985);
}

html.motion-enabled .motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lab-agent-entry,
.contact-primary-card,
.about-project-link,
.about-page-v2 .about-facts article,
.popular-note-topics a,
.popular-note-topics button {
  transition:
    transform 180ms cubic-bezier(.16, 1, .3, 1),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

@media (hover: hover) {
  html.motion-enabled .motion-reveal.motion-interactive.is-visible:hover,
  .lab-agent-entry:hover,
  .contact-primary-card:hover,
  .about-project-link:hover,
  .popular-note-topics a:hover,
  .popular-note-topics button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 18, 15, .08);
  }
}

@media (max-width: 760px) {
  .content {
    padding: 24px 18px 112px;
  }

  .notion-hero {
    gap: 34px;
    padding: 8px 0 50px;
  }

  .notion-hero-copy > p {
    font-size: 16px;
  }

  .dashboard-section {
    padding: 44px 0 48px;
  }

  .dashboard-section > h2 {
    margin-bottom: 22px;
    font-size: 25px;
  }

  .metrics-section > h2 {
    font-size: 12px;
  }

  .metric-grid,
  .notion-build-grid,
  .home-blog-grid,
  .lab-metrics,
  .notes-card-grid-v2 {
    gap: 14px;
  }

  .metric-grid article,
  .lab-metrics article {
    min-height: 158px;
    padding: 19px;
  }

  .metric-grid p,
  .lab-metrics article > p {
    font-size: 13.5px;
  }

  .notion-build-grid button,
  .notion-build-grid a,
  .notion-build-grid .build-external {
    min-height: 198px;
    padding: 21px;
  }

  .home-blog-copy {
    padding: 20px;
  }

  .home-closing {
    margin-top: 48px;
    padding: 30px 26px;
  }

  .lab-intro,
  .notes-page-header,
  .contacts-page-header,
  .mama-page-header {
    padding-bottom: 42px;
  }

  .lab-metrics,
  .lab-section {
    padding-bottom: 50px;
  }

  .notes-featured-section {
    padding: 28px 0 36px;
  }

  .notes-page-header {
    padding-bottom: 28px;
  }

  .notes-all-section {
    padding: 22px 0 36px;
  }

  .featured-note-copy {
    padding: 26px 24px 30px;
  }

  .about-lead-grid {
    gap: 38px;
    padding-bottom: 48px;
  }

  .about-page-v2 .about-journey,
  .about-page-v2 .about-principles,
  .about-page-v2 .about-now-v2 {
    padding: 46px 0 50px;
  }

  .about-page-v2 .about-now-v2 article {
    min-height: 210px;
    padding: 23px;
  }

  .contact-block {
    padding-top: 46px;
  }

  .documents-header {
    margin-bottom: 38px;
  }

  .mama-story-grid {
    gap: 38px;
    padding: 44px 0 54px;
  }

  .article-header {
    padding: 32px 26px;
  }

  .article-header > p {
    font-size: 16px;
  }

  .article-layout {
    padding-top: 34px;
  }

  .article-body > section {
    padding-bottom: 38px;
  }

  .article-body > section + section {
    margin-top: 20px;
  }

  html.motion-enabled .motion-reveal {
    --motion-distance: 12px;
    --motion-duration: 360ms;
  }

  .article-body {
    font-size: 16px;
  }

  h1.notion-page-title {
    font-size: 38px !important;
  }

  .notion-hero h1.notion-page-title {
    font-size: 42px !important;
  }

  .brain-section {
    margin-right: 4px;
    padding: 24px !important;
    box-shadow: 4px 4px 0 var(--frame-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-enabled .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Notes stay unpublished until Alexandra releases them one by one. */
.nav-list a[href^="/notes"],
.mobile-bottom-nav a[href^="/notes"],
.search-results a[href^="/notes"],
.notfound-links a[href^="/notes"],
section.dashboard-section:has(.home-blog-grid),
.now-recent {
  display: none !important;
}
