:root {
  --fig: #1c111b;
  --fig2: #342235;
  --fig3: #51384e;
  --porcelain: #fbfaf7;
  --surface: #fffefa;
  --cool: #f7f8f3;
  --line: #e2dedf;
  --line-strong: #c9c2c5;
  --ink: #171216;
  --muted: #514850;
  --faint: #766f76;
  --verdigris: #0a947a;
  --verdigris2: #066b59;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: Archivo, Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.teaser-home {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--verdigris2);
  outline-offset: 3px;
}

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

.header,
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  position: sticky;
  top: 0;
  z-index: 3;
}

.topbar {
  position: relative;
  z-index: 2;
}

.inner,
.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
}

.topbar-inner {
  max-width: 1280px;
  padding: 18px 56px;
}

.nav,
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--fig);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}

.mark {
  position: relative;
  width: 80px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
}

.topbar .mark,
.footer-inner .mark {
  width: 96px;
  height: 30px;
}

.mark span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  border-radius: 50%;
}

.mark span:nth-child(1) {
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--fig);
  opacity: 0.32;
}

.mark span:nth-child(2) {
  left: 13px;
  width: 14px;
  height: 14px;
  background: var(--fig2);
  opacity: 0.46;
}

.mark span:nth-child(3) {
  left: 32px;
  width: 20px;
  height: 20px;
  background: var(--fig3);
  opacity: 0.82;
}

.mark span:nth-child(4) {
  left: 56px;
  width: 24px;
  height: 24px;
  background: var(--verdigris);
}

.topbar .mark span:nth-child(1),
.footer-inner .mark span:nth-child(1) {
  width: 10px;
  height: 10px;
}

.topbar .mark span:nth-child(2),
.footer-inner .mark span:nth-child(2) {
  left: 15px;
  width: 15px;
  height: 15px;
}

.topbar .mark span:nth-child(3),
.footer-inner .mark span:nth-child(3) {
  left: 36px;
  width: 22px;
  height: 22px;
}

.topbar .mark span:nth-child(4),
.footer-inner .mark span:nth-child(4) {
  left: 64px;
  width: 30px;
  height: 30px;
}

.links,
.navlinks,
.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.footer-links {
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.links a,
.navlinks a,
.footer-links a,
.footer-links button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.footer-links button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.links a[aria-current="page"],
.navlinks a[aria-current="page"] {
  color: var(--fig);
  text-decoration: underline;
  text-decoration-color: var(--verdigris2);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.links .pill,
.navlinks .pill {
  background: var(--fig);
  color: var(--surface);
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
}

.label {
  color: var(--verdigris2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.serif {
  color: var(--verdigris);
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 550;
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  text-wrap: pretty;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--verdigris2);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.cta {
  border-top: 1px solid var(--line);
  background: var(--fig);
  color: white;
  padding: 54px 24px;
}

.cta .inner {
  padding: 0;
}

.cta h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cta p {
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  background: rgba(251, 250, 247, 0.9);
}

.footer-inner,
.footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner {
  max-width: 1280px;
}

.footer p {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 860px) {
  .topbar-inner {
    padding: 16px 24px;
  }

  .footer-inner,
  .footer .inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  .topbar-inner,
  .header .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .links,
  .navlinks {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
    font-size: 13px;
  }

  .links .pill,
  .navlinks .pill {
    padding: 0 14px;
  }
}

@media (max-width: 520px) {
  .topbar-inner,
  .header .nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mark {
    width: 80px;
  }

  .topbar .mark,
  .footer-inner .mark {
    width: 96px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Home */
.teaser-home .page {
  flex: 1;
  padding: 88px 56px 80px;
  position: relative;
}

.teaser-home .shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 76px;
  align-items: start;
}

.teaser-home h1 {
  max-width: 720px;
  margin: 0;
  color: var(--fig);
  font-size: clamp(46px, 6.7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

.teaser-home .lede {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.58;
}

.custody-line {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.55;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.signals span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 250, 0.72);
  border-radius: 999px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.signup {
  margin-top: 30px;
  width: min(560px, 100%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.signup form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--porcelain);
  border-radius: 999px;
  padding: 14px 15px;
  color: var(--ink);
  font: 500 15px Archivo, sans-serif;
}

.signup input::placeholder {
  color: #5d555d;
}

.signup button {
  border: 0;
  border-radius: 999px;
  background: var(--verdigris2);
  color: white;
  padding: 0 20px;
  min-height: 44px;
  font: 900 14px/1 Archivo, sans-serif;
  cursor: pointer;
}

.signup button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.message {
  min-height: 20px;
  margin: 10px 3px 0;
  font-size: 13px;
  font-weight: 800;
}

.message.success {
  color: var(--verdigris2);
}

.message.error {
  color: #a33a31;
}

.note {
  margin: 7px 3px 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.preview-top {
  height: 42px;
  border-bottom: 1px solid var(--line);
  background: var(--cool);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.preview-top b {
  color: var(--fig);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-body {
  padding: 18px;
}

.question {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--porcelain);
  color: var(--fig);
  font-weight: 900;
  line-height: 1.2;
}

.answer {
  margin-top: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.answer h2 {
  margin: 0;
  color: var(--fig);
  font-size: 28px;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.answer p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.source {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px;
}

.source b {
  display: block;
  color: var(--fig);
  font-size: 12px;
}

.source span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(28, 17, 27, 0.74);
  z-index: 10;
  padding: 20px;
}

.dialog.open {
  display: flex;
}

.dialog-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 28px;
  position: relative;
}

.dialog-card h2 {
  margin: 0 0 12px;
  color: var(--fig);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.dialog-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Blog */
.teaser-blog .hero {
  padding: 74px 24px 46px;
}

.teaser-blog .hero-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.teaser-blog h1 {
  max-width: 840px;
  margin: 0;
  color: var(--fig);
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.posts {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 24px 76px;
}

.list {
  border-top: 1px solid var(--line);
}

.post {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.post:hover h2 {
  color: var(--verdigris2);
}

.meta {
  color: var(--verdigris2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post h2 {
  margin: 0 0 7px;
  color: var(--fig);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.post p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.arrow {
  color: var(--faint);
  font-size: 22px;
}

/* About */
.teaser-about .hero {
  padding: 74px 24px 48px;
}

.teaser-about .hero-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.teaser-about h1 {
  margin: 0;
  color: var(--fig);
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.body {
  border-top: 1px solid var(--line);
  padding: 58px 24px;
}

.body-inner {
  max-width: 840px;
  margin: 0 auto;
}

.body p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.body strong {
  color: var(--fig);
}

.quote {
  margin: 30px 0;
  border-left: 1px solid var(--verdigris);
  padding-left: 22px;
  color: var(--fig);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.about-scale {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.about-scale-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.about-scale-row b {
  color: var(--fig);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.about-scale-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.founder-note {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

.founder-note b {
  color: var(--verdigris2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-note p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.founder-note strong {
  color: var(--fig);
}

.founder-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  color: var(--verdigris2);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 148, 122, 0.35);
  padding-bottom: 2px;
}

@media (max-width: 860px) {
  .teaser-home .page {
    padding: 48px 24px 64px;
  }

  .teaser-home .shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .preview {
    max-width: 560px;
  }

  .signup form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .founder-note,
  .about-scale-row {
    grid-template-columns: 1fr;
  }

  .teaser-about .hero {
    padding-top: 52px;
  }

  .teaser-about h1 {
    font-size: 43px;
  }
}

@media (max-width: 700px) {
  .post {
    grid-template-columns: 1fr auto;
  }

  .meta {
    grid-column: 1 / -1;
  }

  .teaser-blog .hero {
    padding-top: 52px;
  }

  .teaser-blog h1 {
    font-size: 43px;
  }
}

@media (max-width: 520px) {
  .teaser-home h1 {
    font-size: 43px;
  }

  .teaser-home .lede {
    font-size: 17px;
  }

  .signals span {
    font-size: 12px;
  }

  .sources {
    grid-template-columns: 1fr;
  }

  .teaser-home .page {
    padding-left: 18px;
    padding-right: 18px;
  }
}
