/* Sigilo public site. Same tokens as the app: velvet, breath, rosin. Fonts are self-hosted. */
@font-face {
  font-family: "Bodoni Moda Variable";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/bodoni-moda-latin-wght-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Hanken Grotesk Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
:root {
  --velvet: #3a1d38;
  --velvet-deep: #2a1428;
  --breath: #f5f3f7;
  --surface: #ffffff;
  --ink: #1c1520;
  --ink-soft: #4a4152;
  --hush: #7d7288;
  --rosin: #e2b45a;
  --rosin-text: #8a6418;
  --line: rgba(28, 21, 32, 0.12);
  --display: "Bodoni Moda Variable", "Bodoni 72", Didot, serif;
  --body: "Hanken Grotesk Variable", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --breath: #151017;
    --surface: #1e1721;
    --ink: #eee8f2;
    --ink-soft: #c9bfd1;
    --hush: #a497ae;
    --rosin-text: #e2b45a;
    --line: rgba(255, 255, 255, 0.1);
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--breath);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--rosin);
  outline-offset: 3px;
}
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
.muted {
  color: var(--hush);
}
.small {
  font-size: 0.85rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 760;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.section-lede {
  max-width: 58ch;
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-size: 1.1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 120ms ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}
.button.rosin {
  background: var(--rosin);
  color: var(--velvet-deep);
}
.button.ghost-light {
  border-color: rgba(245, 243, 247, 0.35);
  color: var(--breath);
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--velvet-deep);
  color: var(--breath);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.top nav a {
  text-decoration: none;
  color: rgba(245, 243, 247, 0.78);
  font-size: 0.95rem;
}
.top nav a:hover {
  color: var(--breath);
}
.brand img {
  display: block;
}

/* Overture: the thesis */
.overture {
  background: var(--velvet);
  color: var(--breath);
  padding: clamp(56px, 9vw, 120px) 0 56px;
}
.overture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.voice h1 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 860;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.voice h1 > span {
  display: block;
}
@media (min-width: 761px) {
  .voice h1 > span {
    white-space: nowrap;
  }
}
.lede {
  max-width: 40ch;
  margin: 32px 0 0;
  font-size: 1.2rem;
  color: rgba(245, 243, 247, 0.8);
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.beta {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: rgba(245, 243, 247, 0.55);
}
.libretto {
  margin: 0;
  padding: 28px;
  border-radius: 18px;
  background: var(--velvet-deep);
  border: 1px solid rgba(245, 243, 247, 0.1);
  display: grid;
  gap: 18px;
}
.libretto .line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
}
.libretto p {
  margin: 0;
  color: rgba(245, 243, 247, 0.9);
}
.who {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  text-align: right;
  color: rgba(245, 243, 247, 0.55);
  line-height: 1.6;
}
.who.reply {
  font-weight: 760;
  color: var(--rosin);
}
.libretto figcaption {
  padding-left: 90px;
  font-size: 0.85rem;
  color: rgba(245, 243, 247, 0.55);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 243, 247, 0.14);
}
.stats div {
  display: grid;
}
.stats .mono {
  font-size: 1.5rem;
  color: var(--breath);
}
.stats span:last-child {
  font-size: 0.9rem;
  color: rgba(245, 243, 247, 0.6);
}

/* Bands */
.band {
  padding: clamp(64px, 9vw, 112px) 0;
}
.band.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.band.velvet {
  background: var(--velvet-deep);
  color: var(--breath);
}
.band.velvet .section-lede {
  color: rgba(245, 243, 247, 0.75);
}

/* The matrix: a fact per row, an observer per column. */
.matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.matrix th,
.matrix td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.matrix thead th {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.matrix tbody th {
  font-weight: 650;
  width: 17%;
}
.matrix tr:last-child th,
.matrix tr:last-child td {
  border-bottom: 0;
}
.matrix td {
  color: var(--ink-soft);
}
.matrix td.no {
  color: var(--hush);
  font-style: italic;
}
.matrix b {
  color: var(--ink);
  font-weight: 650;
}
.caveats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.caveats li {
  border-left: 2px solid var(--rosin);
  padding-left: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.caveats b {
  color: var(--ink);
}

/* A true sequence, so it is numbered. */
.sequence {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.sequence li {
  counter-increment: step;
  padding: 0 28px 0 0;
  position: relative;
}
.sequence li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.sequence li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 860;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--rosin-text);
  margin-bottom: 18px;
}
.sequence li:nth-child(2)::before {
  font-weight: 640;
  opacity: 0.8;
}
.sequence li:nth-child(3)::before {
  font-weight: 440;
  opacity: 0.6;
}
.sequence p {
  margin: 0;
  color: var(--ink-soft);
}
.aside {
  margin: 44px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  max-width: 52ch;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.packs-line {
  color: var(--ink-soft);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  font-size: 0.8rem;
  color: var(--hush);
  font-weight: 600;
}
.price-table td + td,
.price-table th + th {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* Token */
.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.token-facts {
  margin: 0;
  display: grid;
  gap: 24px;
}
.token-facts div {
  border-top: 1px solid rgba(245, 243, 247, 0.14);
  padding-top: 16px;
}
.token-facts dt {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rosin);
  margin-bottom: 6px;
}
.token-facts dd {
  margin: 0;
  color: rgba(245, 243, 247, 0.82);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--rosin-text);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}
.foot h3 {
  font-size: 0.9rem;
  color: var(--hush);
  font-weight: 600;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.links a {
  text-decoration: none;
}
.links a:hover {
  color: var(--rosin-text);
}
.addresses li {
  font-size: 0.85rem;
}
.addresses a {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

/* Docs page */
.doc {
  padding: 64px 0 96px;
}
.doc .wrap {
  max-width: 760px;
}
.doc h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.04;
  margin: 0 0 12px;
}
.doc h2 {
  font-size: 1.9rem;
  margin: 56px 0 12px;
  scroll-margin-top: 84px;
}
.doc p,
.doc li {
  color: var(--ink-soft);
}
.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}

@media (max-width: 960px) {
  .overture-grid,
  .pricing-grid,
  .token-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .caveats,
  .sequence {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .sequence li,
  .sequence li + li {
    padding: 0;
    border-left: 0;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .top nav {
    display: none;
  }
  .top .button {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .libretto .line {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .who {
    text-align: left;
  }
  .libretto figcaption {
    padding-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
