/* Bloom — ultra minimal design */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;1,14..32,400&display=swap');

:root {
  color-scheme: dark;
  --bg: #1a1918;
  --fg: #d4d0c8;
  --muted: rgba(212, 208, 200, 0.6);
  --border: rgba(212, 208, 200, 0.15);
  --border-hover: rgba(212, 208, 200, 0.28);
  --accent: rgba(212, 208, 200, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.7;
}

::selection {
  background: rgba(212, 208, 200, 0.15);
}

/* ============================================
   LAYOUT
   ============================================ */

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 15vh 24px 20vh;
}

.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   HOME PAGE
   ============================================ */

.intro {
  margin-bottom: 80px;
  animation: fadeIn 0.6s ease-out;
}

.tagline {
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
}

.tagline strong {
  font-style: normal;
  font-weight: 600;
}

/* Invite link — primary CTA, intentionally prominent */
.invite-link {
  margin-top: 16px;
  margin-bottom: -8px;
}

.invite-link a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.invite-link a::after {
  content: '→';
  opacity: 0.5;
  transform: translateX(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.invite-link a:hover {
  opacity: 1;
}

.invite-link a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* About section */
.about {
  margin-bottom: 60px;
  animation: fadeIn 0.6s ease-out 0.1s backwards;
}

.about-text {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* Stats */
.stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: subtleFadeIn 0.5s ease-out 0.2s backwards;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.stat-label {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* Sections */
.section {
  margin-bottom: 50px;
  animation: fadeIn 0.6s ease-out 0.15s backwards;
}

.section:nth-child(3) {
  animation-delay: 0.2s;
}

.section:nth-child(4) {
  animation-delay: 0.25s;
}

.section:nth-child(5) {
  animation-delay: 0.3s;
}

.section:nth-child(6) {
  animation-delay: 0.35s;
}

.section h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ============================================
   LISTS
   ============================================ */

.minimal-list {
  list-style: none;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.minimal-list:hover {
  border-color: var(--border-hover);
}

.minimal-list li {
  padding: 5px 0;
}

.muted-text {
  color: var(--muted);
  font-size: 15px;
}

.minimal-list a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.25s ease;
}

.minimal-list a:hover {
  color: var(--fg);
  opacity: 1;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */

.page-head {
  padding: 15vh 0 50px;
  text-align: left;
}

.page-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-head p {
  color: var(--muted);
  font-size: 15px;
}

.commands-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
  margin-bottom: 50px;
}

.content-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.content-section p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.content-section ul {
  list-style: none;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.content-section li {
  padding: 5px 0;
  color: var(--muted);
  font-size: 15px;
}

/* ============================================
   COMMANDS PAGE
   ============================================ */

.command-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-item {
  padding: 10px 12px 10px 16px;
  border-left: 2px solid var(--border);
  border-radius: 0 4px 4px 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.command-item:hover {
  border-color: var(--border-hover);
  background: var(--accent);
  transform: translateX(2px);
}

.command-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.command-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  flex-shrink: 0;
  letter-spacing: 0;
}

.command-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.command-usage {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  opacity: 0.65;
  letter-spacing: 0;
}

.command-aliases {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  opacity: 0.5;
}

.command-tag {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Search and filters */
.controls {
  margin-bottom: 32px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.input,
.select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.input {
  width: 100%;
  margin-bottom: 10px;
}

.input:focus,
.select:focus {
  border-color: var(--border-hover);
  background-color: var(--accent);
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.55;
}

.select {
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
}

.search-hint {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  opacity: 0.45;
}

/* ============================================
   DOCUMENTATION
   ============================================ */

.doc-layout {
  display: flex;
  flex-direction: column;
}

/* TOC — flat link row above content */
.doc-sidebar {
  display: block;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.doc-toc {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
}

.doc-toc-item {
  display: inline-flex;
  align-items: center;
}

.doc-toc-item + .doc-toc-item::before {
  content: '·';
  color: var(--muted);
  opacity: 0.4;
  margin: 0 8px;
  font-style: normal;
}

.doc-toc-link {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.doc-toc-link:hover {
  color: var(--fg);
  opacity: 1;
}

.doc-content {
  max-width: 620px;
}

.doc-content h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 10px;
  letter-spacing: -0.01em;
}

.doc-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.doc-content ul,
.doc-content ol {
  list-style: none;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  margin-bottom: 18px;
}

.doc-content li {
  padding: 5px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.doc-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: var(--accent);
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0;
}

.doc-content pre {
  background: rgba(212, 208, 200, 0.04);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 18px;
}

.doc-content pre code {
  background: transparent;
  padding: 0;
}

.doc-note {
  padding: 10px 14px 10px 16px;
  border-left: 2px solid var(--border);
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0;
}

.doc-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-content {
  max-width: 620px;
}

.legal-content h1 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}

.legal-content h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 36px 0 14px;
}

.legal-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-content ul,
.legal-content ol {
  list-style: none;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  margin: 14px 0;
}

.legal-content li {
  padding: 5px 0;
}

/* ============================================
   BACK LINK
   ============================================ */

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--fg);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }

/* ============================================
   NAVIGATION
   ============================================ */

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--bg);
  color: var(--fg);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, padding 0.25s ease;
}

.nav.shrink {
  padding: 12px 0;
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}

.wordmark:hover {
  color: var(--fg);
  opacity: 1;
}

.wordmark-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.wordmark:hover .wordmark-dot {
  background: var(--border-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  opacity: 1;
}

.nav-cta {
  font-size: 13px;
  color: var(--fg) !important;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: -0.01em;
  transition: border-color 0.25s ease !important;
}

.nav-cta:hover {
  border-color: var(--border-hover) !important;
  opacity: 1 !important;
}

.burger {
  display: none;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.burger:hover {
  color: var(--fg);
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.nav.open .mobile-panel {
  display: flex;
}

.mobile-panel a {
  font-size: 15px;
  color: var(--muted);
  padding: 7px 0;
  transition: color 0.25s ease;
}

.mobile-panel a:hover,
.mobile-panel a[aria-current="page"] {
  color: var(--fg);
  opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 80px;
}

.footer-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
  display: block;
}

.footer-col a:hover {
  color: var(--fg);
  opacity: 1;
}

/* ============================================
   SUPPORT PAGE
   ============================================ */

.grid-3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  padding: 10px 12px 10px 16px;
  border-left: 2px solid var(--border);
  border-radius: 0 4px 4px 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--accent);
}

.card .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  border-color: var(--border-hover);
}

.btn-secondary {
  opacity: 0.6;
}

.btn:hover {
  opacity: 0.85;
  border-color: var(--border-hover);
}

.getting p {
  color: var(--muted);
  font-size: 15px;
}

.micro-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.micro-bullets span a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.micro-bullets span a:hover {
  color: var(--fg);
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  main {
    padding: 10vh 20px 15vh;
  }

  .intro {
    margin-bottom: 60px;
  }

  .section {
    margin-bottom: 42px;
  }

  .stats {
    gap: 28px;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .command-top {
    flex-wrap: wrap;
    gap: 4px;
  }

  .doc-toc {
    gap: 2px 0;
  }
}

/* ============================================
   LIGHT MODE
   ============================================ */

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f2ee;
    --fg: #1e1c1a;
    --muted: rgba(30, 28, 26, 0.55);
    --border: rgba(30, 28, 26, 0.12);
    --border-hover: rgba(30, 28, 26, 0.25);
    --accent: rgba(30, 28, 26, 0.05);
  }

  ::selection {
    background: rgba(30, 28, 26, 0.12);
  }

  .doc-content pre {
    background: rgba(30, 28, 26, 0.03);
  }
}

/* ============================================
   HIDDEN LEGACY ELEMENTS
   ============================================ */

.hero,
.why-strip,
.curve,
.status-pill,
.section-header {
  display: none;
}
