/* Tokenization: Capital for Humanity — tokenizationbook.com
   Palette: ivory paper, warm ink, copper and gold, night bands  */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"),
       url("/assets/fonts/marcellus-latin-400-normal.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-300-normal.woff2") format("woff2"), url("/assets/fonts/jost-latin-300-normal.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"), url("/assets/fonts/jost-latin-400-normal.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"), url("/assets/fonts/jost-latin-500-normal.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2"), url("/assets/fonts/jost-latin-600-normal.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #FBF8F1;
  --white: #FFFFFF;
  --ink: #23201A;
  --ink-soft: #55503F;
  --copper: #A9622F;
  --copper-deep: #8A4E24;
  --gold: #C29B3C;
  --gold-deep: #8C6A1F;
  --night: #14110D;
  --night-soft: #241F18;
  --line: #E8E0CE;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: 2.4rem; color: var(--ink); }
h3 { font-size: 1.3rem; margin-bottom: .6rem; }
p + p { margin-top: 1rem; }
a { color: var(--copper-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 500; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.rule { width: 56px; height: 2px; background: var(--gold); margin: 1.1rem 0 1.6rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.wordmark { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); letter-spacing: .02em; }
.wordmark:hover { text-decoration: none; color: var(--copper-deep); }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a { color: var(--ink-soft); font-size: .95rem; font-weight: 400; white-space: nowrap; }
.nav-links a:hover { color: var(--copper-deep); text-decoration: none; }
.nav-cta {
  margin-left: 1.6rem;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); padding: .35rem .9rem; border-radius: 2px;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .95rem; font-weight: 500;
  letter-spacing: .04em; padding: .8rem 1.9rem; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--copper); color: var(--white); border-color: var(--copper); }
.btn-solid:hover { background: var(--copper-deep); border-color: var(--copper-deep); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-disabled {
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.25); cursor: not-allowed;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background-color: var(--night);
  background-image:
    linear-gradient(100deg, rgba(20,17,13,0) 38%, rgba(20,17,13,.62) 62%, rgba(20,17,13,.82) 100%),
    url("/assets/tokenization-book-genesis-edition.jpg");
  background-image:
    linear-gradient(100deg, rgba(20,17,13,0) 38%, rgba(20,17,13,.62) 62%, rgba(20,17,13,.82) 100%),
    image-set(url("/assets/tokenization-book-genesis-edition.webp") type("image/webp"), url("/assets/tokenization-book-genesis-edition.jpg") type("image/jpeg"));
  background-size: cover, cover;
  background-position: center, 28% center;
  background-repeat: no-repeat;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1100px;
  margin: 0 auto; padding: 8rem 1.5rem 5rem;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
}
.hero-inner > * { max-width: 34rem; }
.hero-kicker { color: var(--gold); font-weight: 400; letter-spacing: .12em; font-size: .95rem; }
.hero h1 {
  color: var(--white); font-size: 3.4rem; line-height: 1.08;
  margin: .9rem 0 1.1rem;
}
.hero h1 .h1-main, .hero h1 .h1-sub { display: block; }
.hero-lede span { display: block; }
.hero h1 .h1-sub { font-size: .72em; color: #E6CB84; letter-spacing: .02em; margin-top: .35rem; }
.hero-lede {
  font-family: var(--serif); color: #EFE7D6;
  font-size: 1.55rem; line-height: 1.4;
}
.hero-sub { color: #CDC3AE; margin-top: 1rem; font-size: 1rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; justify-content: flex-end; }
.hero-actions .btn-ghost { color: #EFE7D6; }
.hero-actions .btn-ghost:hover { color: var(--gold); }
.hero-note { color: #A79A80; font-size: .875rem; margin-top: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.2rem; max-width: 44rem; }

.claims { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.claim { flex: 1 1 260px; border-top: 2px solid var(--gold); padding-top: 1.3rem; }
.claim h3 { color: var(--copper-deep); }
.claim p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Split layouts ---------- */
.wrap-split { display: flex; gap: 4rem; align-items: center; }
.split-media { flex: 1 1 44%; min-width: 280px; }
.split-media img { border: 1px solid var(--line); }
.split-portrait img { border: none; }
.split-copy { flex: 1 1 52%; }
.aside { color: var(--ink-soft); font-size: 1rem; }

/* Contents list with dot leaders */
.contents { list-style: none; margin: 1.6rem 0 1.4rem; }
.contents li {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.contents li:first-child { border-top: 1px solid var(--line); }
.c-title { font-family: var(--serif); font-size: 1.06rem; color: var(--ink); white-space: nowrap; }
.c-dots { flex: 1; border-bottom: 1px dotted var(--gold); transform: translateY(-4px); min-width: 24px; }
.c-desc { color: var(--ink-soft); font-size: .92rem; text-align: right; max-width: 46%; }

/* ---------- Napkin ---------- */
.napkin { background: var(--night); color: #D9CFBA; padding: 6rem 0; text-align: center; }
.napkin-kicker { color: var(--gold); letter-spacing: .12em; font-size: .95rem; margin-bottom: 1rem; }
.napkin h2 { color: var(--white); font-size: 2.7rem; margin-bottom: 1.4rem; }
.napkin p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.napkin-reveal { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; margin-top: 1.4rem; }

/* ---------- Praise ---------- */
.pull { text-align: center; padding: 1rem 0; }
.pull p {
  font-family: var(--serif); font-size: 2rem;
  line-height: 1.35; color: var(--ink);
}
.endorsement { margin-top: 3rem; text-align: center; }
.endorsement blockquote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.endorsement figcaption { margin-top: 1rem; font-weight: 500; color: var(--copper-deep); }
.endorsement figcaption span { display: block; font-weight: 300; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Author ---------- */
.author-links { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; font-weight: 400; }

/* ---------- Colophon / facts ---------- */
.colophon { margin-top: .5rem; }
.colophon > div {
  display: flex; gap: 1.5rem; padding: .75rem 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.colophon dt { flex: 0 0 32%; color: var(--gold-deep); font-weight: 400; font-size: .95rem; letter-spacing: .04em; }
.colophon dd { color: var(--ink); }

/* ---------- Keynote form ---------- */









.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }
.email-revealed { font-weight: 400; align-self: center; }

/* ---------- FAQ ---------- */
#faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
#faq details:first-of-type { border-top: 1px solid var(--line); }
#faq summary {
  font-family: var(--serif); font-size: 1.15rem; cursor: pointer;
  list-style: none; position: relative; padding-right: 2rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: .2rem; top: 0; color: var(--gold-deep); font-family: var(--sans); font-weight: 300; font-size: 1.4rem; line-height: 1.3; }
#faq details[open] summary::after { content: "\2013"; }
#faq details p { margin-top: .8rem; color: var(--ink-soft); max-width: 44rem; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #B3A78D; padding: 4rem 0; text-align: center; font-size: .95rem; }
.footer-title { font-family: var(--serif); color: var(--white); font-size: 1.25rem; margin-bottom: .6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; justify-content: center; margin-top: 1.2rem; }
.footer a { color: var(--gold); }
.footer-fine { margin-top: 1.6rem; font-size: .82rem; color: #7E7460; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h2 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-lede { font-size: 1.3rem; }
  .napkin h2 { font-size: 2.1rem; }
  .pull p { font-size: 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(20,17,13,0) 44%, rgba(20,17,13,.6) 58%, rgba(20,17,13,.97) 76%),
      url("/assets/tokenization-book-genesis-edition-mobile.jpg");
    background-image:
      linear-gradient(180deg, rgba(20,17,13,0) 44%, rgba(20,17,13,.6) 58%, rgba(20,17,13,.97) 76%),
      image-set(url("/assets/tokenization-book-genesis-edition-mobile.webp") type("image/webp"), url("/assets/tokenization-book-genesis-edition-mobile.jpg") type("image/jpeg"));
    background-position: center, top center;
  }
  .hero-inner { align-items: flex-start; text-align: left; padding: 14rem 1.5rem 3.5rem; }
  .hero-actions { justify-content: flex-start; }
  #preorder-note { display: none; }
  .wrap-split { flex-direction: column; gap: 2.5rem; }
  .split-portrait { max-width: 100%; }
  .split-portrait img { width: 100%; }
  .section { padding: 3.8rem 0; }
  .c-desc { display: none; }
  .c-dots { display: none; }
  .colophon dt { flex-basis: 40%; }
}

/* Toto Finance */
.toto { background: var(--white); }
.toto-inner { max-width: 760px; padding-top: 6rem; padding-bottom: 5.5rem; }
.toto p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.toto-tag {
  font-family: var(--serif); color: var(--copper-deep);
  font-size: 1.45rem; margin: 1.8rem 0 1.2rem;
}
/* Form status */
.form-status { display: none; margin-top: 1.2rem; font-size: 1.05rem; line-height: 1.55; }
.form-status.ok {
  display: block; color: var(--copper-deep);
  border-left: 3px solid var(--gold); padding-left: 1rem;
}
.form-status.fallback {
  display: block; color: var(--ink);
  border-left: 3px solid var(--gold); padding-left: 1rem;
}
.form-status a { color: var(--copper-deep); text-decoration: underline; }

@media (max-width: 860px) {
  .toto-inner { padding-top: 3.8rem; padding-bottom: 3.6rem; }
  .toto-tag { font-size: 1.25rem; }
  .split-media { width: 100%; min-width: 0; }
  .split-media img { width: 100%; }
}

/* Contact reveal */
.contact-actions { margin-top: 1.8rem; }
.email-revealed {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--copper-deep); text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
/* Light napkin band */
.napkin-light { background: var(--white); padding: 6rem 0; text-align: center; }
.napkin-light .napkin-kicker { color: var(--copper-deep); letter-spacing: .14em; font-size: .85rem; text-transform: uppercase; }
.napkin-light h2 { color: var(--ink); margin: 1rem 0 1.4rem; }
.napkin-light p { color: var(--ink-soft); }
.napkin-light .napkin-figs img {
  box-shadow: 0 16px 34px rgba(35,32,26,.18);
  border: 1px solid var(--line);
}
.napkin-light .napkin-list { color: var(--ink-soft); }
.napkin-light .napkin-list span { color: var(--gold-deep); }

/* Napkin sketches */
.napkin-figs {
  display: flex; gap: 2.2rem; justify-content: center; align-items: flex-start;
  flex-wrap: wrap; width: fit-content; margin: 2.8rem auto 2.2rem;
}
.napkin-figs figure { margin: 0; }
.napkin-figs img {
  width: min(400px, 84vw); height: auto;
  border-radius: 2px; box-shadow: 0 22px 44px rgba(0,0,0,.5);
}
.napkin-figs figure:first-child img { transform: rotate(-1.4deg); }
.napkin-figs figure:last-child img { transform: rotate(1.5deg); }
.napkin-list { color: #B8AC90; font-size: .98rem; letter-spacing: .02em; }
.napkin-list span { color: var(--gold); padding: 0 .35rem; }
@media (max-width: 860px) {
  .napkin-figs { gap: 1.6rem; }
  .contact-actions .btn { width: 100%; text-align: center; }
}
