/* Recall blog post
   Visual language mirrors recall.network (github.com/recallnet/website).
   Fonts: Inter stands in for Replica LL, JetBrains Mono for Trim Mono. */

:root {
  --bg: #000;
  --surface: #0a0e13;
  --line: #212c3a;

  --text: #b2bbc6;
  --text-strong: #e9edf1;
  --text-hero: #d2d9e1;
  --text-nav: #d9d9d9;
  --gray: rgba(189, 206, 225, 0.87);
  --muted: #596e89;
  --copyright: rgba(164, 192, 224, 0.56);

  --blue: #0064c7;
  --blue-light: #6cb6ff;
  --yellow: #f9b700;
  --hover-tint: rgba(199, 208, 225, 0.1);

  --font-primary: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 55px;
  --container: 1136px;
  --measure: 720px;
  --gutter: 20px;
}

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

/* clip (not hidden) so position: sticky keeps working */
html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: #1d1f2b;
  font: 600 12px/1 var(--font-secondary);
  letter-spacing: 1.56px;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Mono label shared by nav, buttons, meta */
.site-header__cta,
.token-details__summary,
.callout__label,
.prose figcaption,
.prose blockquote cite {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.56px;
  line-height: 1;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.site-header__inner {
  display: flex;
  width: 100%;
  max-width: var(--container);
}

.site-header__logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--header-h);
  height: var(--header-h);
  border-left: 1px solid var(--line);
}

.site-header__logo svg {
  width: 100%;
  height: 100%;
}

.site-header__cta {
  display: flex;
  flex-shrink: 0;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: var(--header-h);
  background: #fff;
  color: #1d1f2b;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.site-header__cta:hover {
  background: var(--blue);
  color: #ced2d4;
}

@media (max-width: 379px) {
  .site-header__cta {
    width: 136px;
  }
}

/* Desktop: items take the same column widths as the live nav */
@media (min-width: 1024px) {
  .site-header__cta {
    width: 19%;
  }
}

/* ------------------------------------------------------------------ */
/* Page                                                                */
/* ------------------------------------------------------------------ */

.page {
  padding: calc(var(--header-h) + 64px) var(--gutter) 96px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__cta,
  .token-details__summary,
  .site-footer a {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Post hero                                                           */
/* ------------------------------------------------------------------ */

.post {
  margin: 0 auto;
  max-width: var(--container);
}

.post-hero {
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
}

.post-hero__title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .page {
    padding-top: calc(var(--header-h) + 96px);
  }

  .post-hero__title {
    font-size: 36px;
    line-height: 42px;
  }
}

@media (min-width: 1024px) {
  .page {
    padding-top: calc(var(--header-h) + 120px);
    padding-bottom: 140px;
  }

  .post-hero__title {
    font-size: 42px;
    line-height: 50px;
  }
}

/* Cut bottom-left corner, as on recall.network cards */
.prose figure img,
.callout,
.summary {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 22px));
}

/* ------------------------------------------------------------------ */
/* Letter                                                              */
/* ------------------------------------------------------------------ */

.prose.letter {
  margin-top: 40px;
  color: var(--text-hero);
  text-wrap: pretty;
}

.prose .letter__meta {
  color: var(--text);
  font-size: 0.8em;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .prose.letter {
    margin-top: 56px;
    font-size: 20px;
  }
}

/* ------------------------------------------------------------------ */
/* Token details (collapsed by default)                                */
/* ------------------------------------------------------------------ */

.token-details {
  margin-top: 48px;
}

.token-details__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  max-width: var(--measure);
  min-height: 56px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.token-details__summary:hover {
  color: #fff;
}

/* Label follows the open state */
.token-details[open] .token-details__expand,
.token-details:not([open]) .token-details__collapse {
  display: none;
}

.token-details__summary::-webkit-details-marker {
  display: none;
}

.token-details__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
  transition: transform 0.2s;
}

.token-details[open] > .token-details__summary::after {
  transform: rotate(180deg);
}

/* Section headings match the page title */
.token-details .prose > h2 {
  font-size: 30px;
  line-height: 36px;
}

@media (min-width: 768px) {
  .token-details .prose > h2 {
    font-size: 36px;
    line-height: 42px;
  }
}

@media (min-width: 1024px) {
  .token-details .prose > h2 {
    font-size: 42px;
    line-height: 50px;
  }
}

/* ------------------------------------------------------------------ */
/* Body layout + table of contents                                     */
/* ------------------------------------------------------------------ */

.post-layout {
  margin-top: 56px;
}

.toc {
  margin: 0 auto 40px;
  max-width: var(--measure);
}

.toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--text-nav);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.56px;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.toc__summary::-webkit-details-marker {
  display: none;
}

.toc__summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #d9d9d9;
  transition: transform 0.2s;
}

.toc__details[open] .toc__summary::after {
  transform: rotate(180deg);
}

.toc__list {
  margin: 0;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-top: 0;
  list-style: none;
}

.toc__list a {
  display: block;
  padding: 8px 16px;
  border-left: 2px solid transparent;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.toc__list a:hover {
  color: #fff;
}

.toc__list a[aria-current="true"] {
  border-left-color: var(--yellow);
  color: #fff;
}

@media (min-width: 1024px) {
  .post-layout {
    margin-top: 72px;
  }
}

/* Wide screens: contents sit in the left gutter and follow the reader */
@media (min-width: 1240px) {
  .post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr);
  }

  .toc {
    margin: 0;
    padding-right: 40px;
  }

  .toc__details {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }

  .toc__summary {
    height: auto;
    padding: 0 0 14px;
    border: 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1.32px;
    pointer-events: none;
  }

  .toc__summary::after {
    display: none;
  }

  .toc__list {
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
  }

  .toc__list a {
    margin-left: -1px;
    padding: 7px 0 7px 16px;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------------ */
/* Prose                                                               */
/* ------------------------------------------------------------------ */

.prose {
  margin: 0 auto;
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .prose {
    font-size: 18px;
  }
}


.prose > * {
  margin-top: 0;
  margin-bottom: 0;
}

.prose > * + * {
  margin-top: 1.4em;
}

.prose .lead {
  color: var(--text-hero);
  font-size: 1.2em;
  line-height: 1.6;
}

.prose h2,
.prose h3 {
  color: var(--text-strong);
  font-weight: 700;
  text-wrap: balance;
}

.prose h2 {
  margin-top: 2.4em;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 2em;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.8em;
}

@media (min-width: 1024px) {
  .prose h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .prose h3 {
    font-size: 24px;
    line-height: 30px;
  }
}

.prose strong {
  color: var(--text-strong);
  font-weight: 700;
}

.prose a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.prose a:hover {
  color: var(--blue-light);
  text-decoration-color: var(--blue-light);
}

.prose ul,
.prose ol {
  padding: 0;
  list-style: none;
}

.prose li + li {
  margin-top: 0.6em;
}

.prose ul:not([class]) > li,
.prose ol:not([class]) > li {
  position: relative;
  padding-left: 32px;
}

.prose ul:not([class]) > li::before {
  content: "¬";
  position: absolute;
  left: 4px;
  color: var(--gray);
  font-family: var(--font-secondary);
  font-weight: 700;
}

.prose ol:not([class]) {
  counter-reset: item;
}

.prose ol:not([class]) > li {
  counter-increment: item;
}

.prose ol:not([class]) > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.3em;
  color: var(--yellow);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--blue);
}

.prose blockquote p {
  margin: 0;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.prose blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--gray);
  font-style: normal;
}

@media (min-width: 1024px) {
  .prose blockquote {
    padding-left: 32px;
  }

  .prose blockquote p {
    font-size: 26px;
  }
}

.prose code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-secondary);
  font-size: 0.82em;
  font-weight: 400;
}

.prose pre {
  overflow-x: auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-hero);
  font-size: inherit;
}

.prose figure {
  margin-left: 0;
  margin-right: 0;
}

.prose figure img {
  width: 100%;
  height: auto;
  background: var(--surface);
}

.prose figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.32px;
  line-height: 1.5;
}

.prose hr {
  height: 1px;
  margin-top: 3em;
  margin-bottom: 3em;
  border: 0;
  background: var(--line);
}

.prose hr + * {
  margin-top: 0;
}

.callout {
  padding: 22px 24px 26px;
  background: linear-gradient(135deg, rgba(0, 100, 199, 0.18), rgba(10, 14, 19, 0.9) 60%);
}

.callout > * {
  margin: 0;
}

.callout > * + * {
  margin-top: 10px;
}

.callout__label {
  color: var(--yellow);
}

.callout p:not(.callout__label) {
  color: var(--text-hero);
}

.callout--warning {
  background: linear-gradient(135deg, rgba(249, 183, 0, 0.16), rgba(10, 14, 19, 0.9) 60%);
}

.callout--warning .callout__label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Emphasised one-line statement */
.prose .statement {
  padding: 14px 20px;
  border-left: 2px solid var(--blue);
  background: rgba(0, 100, 199, 0.1);
  color: var(--text-strong);
  font-weight: 500;
}

.prose .disclaimer {
  margin-top: 2.4em;
  color: #7f93ab;
  font-size: 14px;
  line-height: 1.6;
}

/* Blockchain addresses: long, so they may break anywhere */
.prose .address {
  font-family: var(--font-secondary);
  font-size: 0.82em;
  word-break: break-all;
}

/* ---- Summary panel ("The short version") ---- */

.summary {
  padding: 24px 22px 28px;
  background: linear-gradient(160deg, rgba(0, 100, 199, 0.14), rgba(10, 14, 19, 0.95) 55%);
}

.prose .summary__title {
  margin: 0 0 6px;
  color: var(--yellow);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.56px;
  text-transform: uppercase;
}

.summary .key-list {
  font-size: 0.94em;
}

@media (min-width: 768px) {
  .summary {
    padding: 30px 32px 36px;
  }
}

/* ---- Key list: bulleted items that open with a bold label ---- */

.prose .key-list li {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.prose .key-list strong {
  position: relative;
  display: block;
  margin-bottom: 6px;
  padding-left: 19px;
  line-height: 1.45;
}

.prose .key-list strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--yellow);
}

.summary .key-list li:first-child {
  border-top: 0;
}

.summary .key-list li:last-child {
  padding-bottom: 0;
}

.key-list--bordered {
  border-bottom: 1px solid var(--line);
}

/* ---- Data tables ---- */

.data-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  border-bottom: 1px solid var(--line);
  background: rgba(199, 208, 225, 0.04);
  color: var(--gray);
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.32px;
  text-transform: uppercase;
  vertical-align: bottom;
}

.data-table tbody th {
  color: var(--text);
  font-weight: 400;
}

.data-table tbody tr + tr {
  border-top: 1px solid var(--line);
}

.data-table .is-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.data-table thead .is-num {
  white-space: normal;
}

.data-table td.is-num {
  color: var(--text-strong);
}

.data-table .unit {
  color: var(--muted);
  font-size: 0.85em;
}

.data-table sup {
  color: var(--yellow);
  line-height: 0;
}

.data-table tfoot tr {
  border-top: 1px solid var(--line);
}

.data-table tfoot th,
.data-table tfoot td {
  font-weight: 700;
}

.prose .data-table figcaption {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 559px) {
  .data-table table {
    font-size: 14px;
  }

  .data-table th,
  .data-table td {
    padding: 11px 12px;
  }

  .data-table .unit {
    display: block;
  }
}

/* ---- Timeline ("Key dates") ---- */

.prose .timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 28px 34px;
}

.prose .timeline li:last-child {
  padding-bottom: 0;
}

/* rail */
.prose .timeline li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
}

.prose .timeline li:last-child::before {
  display: none;
}

/* marker */
.prose .timeline li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 11px;
  height: 11px;
  background: var(--yellow);
}

.prose .timeline .timeline__item--estimate::after {
  border: 1px solid var(--gray);
  background: var(--bg);
}

.timeline__date {
  display: block;
  color: var(--yellow);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.32px;
  text-transform: uppercase;
}

.timeline__item--estimate .timeline__date {
  color: var(--gray);
}

.prose .timeline p {
  margin: 6px 0 0;
}

/* ---- FAQ ---- */

.faq {
  border-bottom: 1px solid var(--line);
}

.faq__item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq dt {
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.45;
}

.faq dd {
  margin: 6px 0 0;
}

/* ------------------------------------------------------------------ */
/* Legal pages (privacy/, terms/)                                      */
/* ------------------------------------------------------------------ */

.post-hero__updated {
  margin: 20px 0 0;
  color: var(--gray);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.32px;
  text-transform: uppercase;
}

.prose--legal {
  font-size: 16px;
}

@media (min-width: 1024px) {
  .prose--legal {
    font-size: 17px;
  }

  .prose--legal h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .prose--legal h3 {
    font-size: 21px;
    line-height: 28px;
  }
}

.prose--legal h2 {
  margin-top: 2.2em;
}

.prose--legal > :first-child {
  margin-top: 0;
}

.prose .legal-subhead {
  color: var(--text-strong);
  font-weight: 700;
}

.prose .legal-subhead + * {
  margin-top: 0.6em;
}

.prose li > ul {
  margin-top: 0.6em;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1140px;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px 0;
}

.site-footer__logo {
  align-self: flex-start;
}

:where(.site-footer) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__links a {
  display: flex;
  gap: 8px;
  color: var(--gray);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: 1.32px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__social {
  display: flex;
  gap: 56px;
  padding-top: 12px;
}

.site-footer__social a {
  display: block;
  color: var(--muted);
  transition: color 0.2s;
}

.site-footer__social a:hover {
  color: #fff;
}

.site-footer__bottom {
  padding: 17px 0 24px;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.site-footer__bottom p {
  margin: 0;
  color: var(--copyright);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

@media (max-width: 379px) {
  .site-footer__social {
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .site-footer__top {
    flex-direction: row;
    gap: 0;
  }

  .site-footer__links {
    margin-left: 96px;
  }

  .site-footer__social {
    flex: 1;
    justify-content: flex-end;
    margin-left: 96px;
    padding-top: 0;
  }
}
