/* Litework hub — one stylesheet, system fonts, quiet dark */

:root {
  --bg: #0a0f0e;
  --surface: #111a18;
  --surface-2: #172421;
  --rule: #22302c;
  --text: #f1ece0;
  --muted: #a9b3ad;
  --link: #86e3c0;
  --mint: #86e3c0;
  --paper: #efe9da;
  --paper-text: #14181a;
  --paper-muted: #4d5750;
  --focus: #f1ece0;
  --radius: 14px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --max: 68rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --space: clamp(3.5rem, 9vw, 6.5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--pad);
  top: 0.5rem;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.125rem;
}

.logo:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

.hero {
  padding-block: var(--space) clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16em;
}

.lede {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.5;
}

.tool-links {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: 40rem;
}

.tool-links li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  margin: 0 0 0.85rem;
}

.tool-links a {
  font-weight: 650;
  font-size: 1.125rem;
}

.tool-links span {
  color: var(--muted);
}

.tool-links-more {
  margin: 1.75rem 0 0;
}

.tool-filter {
  margin: 0 0 1.25rem;
  max-width: 24rem;
}

.tool-filter label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-filter input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: inherit;
}

.tool-empty {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.catalog,
.why,
.together,
.later-block,
.faq,
.support,
.legal {
  padding-block: var(--space);
}

.catalog {
  border-top: 1px solid var(--rule);
}

.why,
.together,
.later-block,
.faq,
.support {
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.category-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.theme-nav {
  margin: 0 0 1.5rem;
}

.theme-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-nav .category-nav {
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}

.catalog-group {
  margin-bottom: 2.5rem;
}

.catalog-group:last-child {
  margin-bottom: 0;
}

.catalog-group h2,
.catalog-group h3 {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-group h3 a,
.catalog-group h2 a {
  color: inherit;
  text-decoration: none;
}

.catalog-group h3 a:hover,
.catalog-group h2 a:hover {
  color: var(--text);
  text-decoration: underline;
}

.guides .catalog-group h2 {
  scroll-margin-top: 5rem;
}

.guide-card[hidden] {
  display: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 4px solid var(--accent, var(--rule));
  min-height: 100%;
}

.card-name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card-name a {
  text-decoration: none;
}

.card-name a:hover {
  text-decoration: underline;
}

.card-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  flex: 1;
}

.card-bullets li {
  margin-bottom: 0.4rem;
}

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

.card-price {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

.price-from {
  font-weight: 600;
}

.price-note {
  color: var(--muted);
}

.card-audience {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.card-audience strong {
  color: var(--text);
  font-weight: 600;
}

/* Breadcrumbs */
.crumbs {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.crumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--muted);
  opacity: 0.6;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal .crumbs {
  margin-bottom: 0.5rem;
}

/* Comparison table */
.compare-section {
  padding-block: var(--space);
  border-top: 1px solid var(--rule);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
}

table.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

table.compare caption {
  caption-side: top;
  text-align: left;
  padding: 0.85rem 1rem 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

table.compare th,
table.compare td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--rule);
}

table.compare thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

table.compare tbody th {
  font-weight: 600;
  white-space: nowrap;
}

table.compare tbody th a {
  text-decoration: none;
}

table.compare tbody th a:hover {
  text-decoration: underline;
}

table.compare td {
  color: var(--muted);
}

table.compare td:last-child {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  white-space: nowrap;
}

.card-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 1px solid var(--text);
}

.btn:hover {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}

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

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: none;
  text-decoration: underline;
  padding-inline: 0.25rem;
  font-weight: 500;
}

.btn-secondary:hover {
  color: var(--text);
  background: transparent;
}

.later {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.later h3 {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.soon-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.soon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.soon-note {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.faq-item {
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0;
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  padding-left: 1rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-body {
  padding: 0.35rem 0 0.75rem;
  color: var(--muted);
  max-width: 40rem;
}

.faq-body p {
  margin: 0;
}

.legal h2 {
  margin-top: 2rem;
}

.legal-meta {
  color: var(--muted);
  max-width: 40rem;
}

.legal ul {
  max-width: 40rem;
  color: var(--muted);
}

.legal p {
  max-width: 40rem;
  color: var(--muted);
}

.legal h1 + .legal-meta,
.legal h2 + p,
.legal h2 + ul {
  color: var(--muted);
}

.site-footer {
  margin-top: var(--space);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 2rem;
}

.footer-inner.many {
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) minmax(10rem, 14rem);
}

.footer-list.cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  column-gap: 1.25rem;
}

@media (max-width: 720px) {
  .footer-inner.many {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-weight: 650;
}

.footer-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent, var(--muted));
  margin-right: 0.45rem;
  vertical-align: middle;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.not-found .card-actions {
  margin-top: 1.5rem;
}

.catalog-more {
  margin-top: 1.5rem;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ext-icon {
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.35em;
  vertical-align: -0.12em;
  display: inline-block;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 1.75rem;
  align-items: flex-start;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 100%;
}

.hero-meta,
.hero-note,
.card-reassurance {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-note {
  margin-top: 1.1rem;
  max-width: 40rem;
  font-size: 0.9375rem;
}

.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem 1.5rem;
}

.principle {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.principle p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.dev-notes {
  margin-top: 2rem;
  max-width: 40rem;
}

.dev-notes p,
.dev-notes li {
  color: var(--muted);
}

.dev-notes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.workflow {
  margin: 0;
}

.workflow-caption {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-source {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  max-width: 36rem;
}

.workflow-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.workflow-source p:last-child {
  margin: 0;
}

.workflow-branches {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
}

.workflow-branch {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent, var(--rule));
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workflow-branch h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.workflow-branch h3 a {
  text-decoration: none;
}

.workflow-branch h3 a:hover {
  text-decoration: underline;
}

.workflow-branch p {
  margin: 0;
}

.soon-list {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta,
  .hero-cta .btn {
    width: 100%;
  }
}

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

.guide {
  padding-block: var(--space) clamp(2.5rem, 6vw, 4rem);
  max-width: 44rem;
}

.guide-kicker,
.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.guide-card-meta {
  margin: 0;
  font-size: 0.8125rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.tag:hover {
  color: var(--text);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

.guide-card-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.guide-card-title a {
  text-decoration: none;
}

.guide-card-title a:hover {
  text-decoration: underline;
}

.card-guide {
  margin: 0;
  font-size: 0.9375rem;
}

.card-guide-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.philosophy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  max-width: 46rem;
}

.philosophy li {
  display: inline-flex;
  align-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.step {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent, var(--text));
  border-radius: 4px;
  padding: 1.1rem 1.2rem 1.2rem;
}

.step-result {
  --accent: var(--text);
}

.step-index {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step h3 a {
  text-decoration: none;
}

.step h3 a:hover {
  text-decoration: underline;
}

.step p:last-child {
  margin: 0;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  max-width: 40rem;
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  text-underline-offset: 0.15em;
}

.prose pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  max-width: 100%;
  line-height: 1.45;
}

.prose code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.prose :not(pre) > code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.prose blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

.guide-cta {
  margin-top: 2.5rem;
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  max-width: 40rem;
}

.guide-cta p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.guide-related {
  margin-top: 2rem;
  max-width: 40rem;
}

.guide-related + .guide-related {
  margin-top: 1.5rem;
}

.guide-related h2 {
  font-size: 1.15rem;
}

.guide-related ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.guide-related li + li {
  margin-top: 0.4rem;
}

main:focus {
  outline: none;
}

/* ------------------------------------------------------------------
   v2 refresh: cooler charcoal, light "paper" tone for primary actions,
   rounded surfaces, sticky header with a scalable Tools menu, guide TOC.
   ------------------------------------------------------------------ */

body {
  background:
    radial-gradient(50rem 24rem at 80% -10rem, rgba(169, 200, 255, 0.07), transparent 70%),
    var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.35rem 0;
  background: rgba(13, 16, 21, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  flex-wrap: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.logo::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--paper);
}

.logo:hover {
  text-decoration: none;
}

.nav {
  flex-wrap: nowrap;
  gap: 0.25rem 0.25rem;
  align-items: center;
}

.nav > a,
.menu-link {
  padding: 0 0.8rem;
  border-radius: 8px;
  font-size: 0.97rem;
}

.nav > a:hover,
.nav > a[aria-current="page"],
.menu-link:hover,
.menu-link[aria-current="page"] {
  text-decoration: none;
  background: var(--surface);
  color: var(--text);
}

.menu {
  position: relative;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.caret {
  width: 0.6rem;
  height: 0.4rem;
  transition: transform 0.15s ease;
}

.menu:hover .caret,
.menu:focus-within .caret {
  transform: rotate(180deg);
}

.menu-panel {
  position: absolute;
  top: 100%;
  right: -0.5rem;
  width: min(25rem, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.menu:hover .menu-panel,
.menu:focus-within .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .menu-panel a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  white-space: normal;
  color: var(--text);
  min-height: 0;
}

.nav .menu-panel a:hover {
  background: var(--surface);
  text-decoration: none;
}

.menu-name {
  font-weight: 650;
}

.menu-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.nav .menu-panel .menu-all {
  margin-top: 0.25rem;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 8px 8px;
  padding-top: 0.75rem;
  color: var(--link);
  font-weight: 600;
}

@media (max-width: 720px) {
  .menu-panel {
    display: none;
  }
  .nav > a,
  .menu-link {
    padding: 0 0.55rem;
  }
}

.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
}

h1 {
  font-weight: 720;
  letter-spacing: -0.035em;
}

.btn {
  background: var(--paper);
  color: var(--paper-text);
  border-color: var(--paper);
  border-radius: 8px;
}

.btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: #3a4456;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text);
}

.card {
  border-radius: var(--radius);
  border-top-width: 3px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: #3a4456;
  border-top-color: var(--accent, #3a4456);
}

.guide-card {
  border-radius: var(--radius);
}

.guide-card:hover {
  border-color: #3a4456;
}

.tool-filter input,
.prose pre {
  border-radius: 8px;
}

/* Guides: comfortable measure, clear links, contents list. */

.prose p,
.prose li {
  line-height: 1.75;
}

.prose a,
.guide-related a,
.card-guide a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(169, 200, 255, 0.45);
}

.prose a:hover,
.guide-related a:hover,
.card-guide a:hover {
  text-decoration-color: currentColor;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 5rem;
}

.prose h2 {
  margin-top: 2.6rem;
}

.toc {
  max-width: 40rem;
  margin: 0 0 2rem;
  padding: 1rem 1.25rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 15rem;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
  margin: 0.25rem 0;
  line-height: 1.45;
}

.toc a {
  color: var(--text);
  text-decoration-color: var(--rule);
}

.toc a:hover {
  color: var(--link);
}

.guide-cta {
  background: var(--paper);
  color: var(--paper-text);
  border: 0;
  border-radius: var(--radius);
}

.guide-cta p {
  color: var(--paper-muted);
  font-weight: 600;
}

.guide-cta .btn {
  background: var(--paper-text);
  color: var(--paper);
  border-color: var(--paper-text);
}

.guide-cta .btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.guide-cta .btn:focus-visible {
  outline: 2px solid var(--paper);
  box-shadow: 0 0 0 4px var(--paper-text);
}

.site-footer {
  background: #0a0d11;
}

.toc {
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------------
   v3 rework: ink + paper bands, serif display type, hero tool index.
   Paper sections redefine the colour tokens, so every component inside
   (cards, tables, FAQ, prose, buttons) flips to dark-on-light for free.
   ------------------------------------------------------------------ */

body {
  background: var(--bg);
}

.site-header {
  background: rgba(10, 15, 14, 0.88);
}

.logo::before {
  background: var(--mint);
}

.nav > a:hover,
.nav > a[aria-current="page"],
.menu-link:hover,
.menu-link[aria-current="page"] {
  background: var(--surface-2);
}

h1,
h2,
.card-name,
.footer-brand {
  font-family: var(--display);
}

h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 14em;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}

/* Full-bleed bands without restructuring the markup. */
.catalog,
.faq,
.compare-section,
.legal,
.guide,
.why,
.guides,
.together {
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
  border-top: 0;
}

.catalog,
.faq,
.compare-section,
.legal,
.guide {
  --band: #efe9da;
  --text: #14181a;
  --muted: #4d5750;
  --surface: #fbf8f0;
  --surface-2: #f5efe2;
  --rule: #d8cfb9;
  --link: #0b5a46;
  --paper: #14181a;
  --paper-text: #efe9da;
  --focus: #14181a;
  color: var(--text);
}

.why {
  --band: #0f1816;
}

.guides {
  --band: #131f1c;
}

.together {
  --band: #0a0f0e;
}

/* Hero */
.hero-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  clip-path: inset(0 -100vmax);
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0 -100vmax;
  z-index: -1;
  background-image:
    linear-gradient(rgba(134, 227, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 227, 192, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 70% 40%, #000 0%, transparent 75%);
}

.hero-home h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mint);
  border-color: rgba(134, 227, 192, 0.35);
  background: rgba(134, 227, 192, 0.07);
}

.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mint);
}

.hero-index {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hi-title {
  margin: 0;
  padding: 0.8rem 0.9rem 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-index li a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name go" "tag go";
  gap: 0.1rem 1rem;
  padding: 0.85rem 0.9rem 0.85rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
}

.hero-index li a::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 3px;
  border-radius: 3px;
  background: var(--accent, var(--mint));
}

.hero-index li a:hover {
  background: var(--surface-2);
}

.hi-name {
  grid-area: name;
  font-weight: 650;
  font-size: 1.05rem;
}

.hi-tag {
  grid-area: tag;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hi-go {
  grid-area: go;
  align-self: center;
  color: var(--muted);
}

.hero-index li a:hover .hi-go {
  color: var(--mint);
}

.hi-more {
  display: block;
  padding: 0.75rem 1.1rem 0.8rem;
  color: var(--link);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 880px) {
  .hero-home {
    grid-template-columns: 1fr;
  }
}

/* Cards on paper */
.card {
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 28px -22px rgba(60, 45, 10, 0.45);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--rule);
  border-top-color: var(--accent, var(--rule));
}

.catalog-group h2,
.catalog-group h3 {
  color: var(--muted);
}

.btn:hover {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
}

.hero .btn:hover,
.hero-actions .btn:hover {
  background: var(--mint);
  color: #06241a;
  border-color: var(--mint);
}

/* Guides read on paper */
.guide {
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--space);
}

.guide h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  max-width: 17em;
}

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}

.prose a,
.guide-related a,
.card-guide a {
  color: var(--link);
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
}

.toc {
  background: var(--surface);
}

.guide-cta {
  background: var(--paper);
  color: var(--paper-text);
}

.guide-cta p {
  color: #c9d1cb;
}

.guide-cta .btn {
  background: var(--mint);
  color: #06241a;
  border-color: var(--mint);
}

.guide-cta .btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.guide-card {
  background: var(--surface-2);
}

.site-footer {
  background: #070b0a;
  border-top: 0;
}

.footer-brand {
  font-size: 1.5rem;
}

html,
body {
  overflow-x: clip;
}

.hero-home h1 {
  margin-bottom: 1.4rem;
}

.hero-home .eyebrow {
  margin-bottom: 1.25rem;
}

.catalog-group h2,
.catalog-group h3 {
  font-family: inherit;
}

.catalog-group .guide-card-title,
.guide-card-title {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.guide-card-title a {
  color: var(--text);
}

.guide-card-title a:hover {
  color: var(--link);
}

/* Accent edges. Generated so CSP style-src 'self' applies them. */
.accent-signalwatch{--accent:#3dd6c6}
.accent-mortise{--accent:#b45309}
.accent-sitecheck{--accent:#ff5b1f}
.accent-clearquire{--accent:#1f4d3a}
