@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #38232d;
  --body-ink: #614952;
  --rose: #963752;
  --rose-dark: #74233e;
  --canvas: #fff8f4;
  --paper: #fffdfb;
  --blush: #f9e8eb;
  --rule: #e9d5d8;
  --blue: #d6e7fa;
  --serif: Fraunces, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
}

body, h1, h2, h3, figure, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 3px solid #504889; outline-offset: 4px; }

.shell { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.section-space { margin-block-start: clamp(4.5rem, 9vw, 7.75rem); }

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  border-radius: .6rem;
  background: var(--paper);
  color: var(--rose-dark);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-top: .28rem solid transparent;
  border-image: linear-gradient(to right, #e9a7b6 0 33.33%, #f5c7ad 33.33% 66.66%, #b8d5ee 66.66%) 1;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font: 750 1.44rem/1.1 var(--serif);
  letter-spacing: -.05em;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--blush);
}

.brand-mark img { width: 94%; height: auto; }
.brand-suffix { color: var(--rose); }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.site-nav > a:not(.button), .site-footer nav a { text-decoration: none; font-weight: 650; }
.site-nav > a:hover, .site-footer nav a:hover { color: var(--rose-dark); text-decoration: underline; text-underline-offset: .23em; }
.site-nav .nav-whitepaper, .menu-button { display: none; }

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: .56rem 1.14rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
}

.button-primary { background: var(--rose); color: white; }
.button-primary:hover { background: var(--rose-dark); }
.button-outline { border-color: #d2a5ae; background: var(--paper); color: var(--rose-dark); }
.button-outline:hover { border-color: var(--rose-dark); background: var(--blush); }
.button-quiet { border-color: var(--rule); background: var(--paper); }
.button-quiet:hover { border-color: #d2a5ae; background: var(--blush); }

.hero {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.85rem);
  padding-block: clamp(2.5rem, 6.5vw, 5.6rem) clamp(2.5rem, 4.8vw, 3.7rem);
}

.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--rose-dark);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span { width: 1.28rem; height: 2px; background: #c58196; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.04; }

h1 {
  font-size: clamp(3.3rem, 6.5vw, 6rem);
  letter-spacing: -.05em;
  word-spacing: .015em;
}

h1 em { color: var(--rose); font-style: normal; }

h2 {
  font-size: clamp(2.5rem, 4.65vw, 4rem);
  letter-spacing: -.042em;
}

h3 { font-size: 1.46rem; letter-spacing: -.03em; }

.hero-description {
  max-width: 30rem;
  margin-top: 1.45rem;
  color: var(--body-ink);
  font-size: clamp(1.06rem, 1.42vw, 1.23rem);
}

.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  justify-items: center;
  aspect-ratio: 1.16;
  overflow: hidden;
  border: 1px solid #e5bbc4;
  border-radius: 46% 46% 1.8rem 1.8rem / 36% 36% 1.8rem 1.8rem;
  background: var(--blue);
  box-shadow: .62rem .7rem 0 #f4dce1;
}

.hero-scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 46%;
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(165deg, #fee1ea22, #dfebff00 48%, #69415e48);
  content: "";
}

.hero-frame {
  position: absolute;
  z-index: -1;
  inset: .63rem;
  border: 1px solid #fffdfbbd;
  border-radius: inherit;
}

.hero-cat {
  position: absolute;
  right: 11%;
  bottom: -11%;
  width: 75%;
  height: auto;
  filter: drop-shadow(0 .5rem .55rem #512f4953);
}

.token-summary {
  display: grid;
  grid-template-columns: 1fr 1.23fr 1fr;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  background: var(--paper);
}

.token-summary > div {
  padding: clamp(.95rem, 2.35vw, 1.45rem) clamp(1rem, 3.2vw, 2.25rem);
}

.token-summary > div + div { border-left: 1px solid var(--rule); }
.token-summary dt { color: var(--body-ink); font-size: .92rem; font-weight: 650; }

.token-summary dd {
  margin-top: .12rem;
  color: var(--ink);
  font: 700 clamp(1.2rem, 3vw, 1.85rem)/1.3 var(--serif);
  letter-spacing: -.035em;
}

.story {
  display: grid;
  grid-template-columns: .84fr 1fr;
  align-items: center;
  gap: clamp(2.6rem, 8vw, 7rem);
}

.story-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  justify-items: center;
  aspect-ratio: 1.35;
  overflow: hidden;
  border: 1px solid #c4d9ee;
  border-radius: 1.8rem;
  background: linear-gradient(152deg, #edf5ff, #c9dcf5);
}

.story-halo {
  position: absolute;
  z-index: -1;
  bottom: -22%;
  left: 13%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f9e0d2;
}

.story-art img {
  position: absolute;
  right: 9%;
  bottom: -13%;
  width: 85%;
  height: auto;
  filter: drop-shadow(0 .45rem .48rem #65405130);
}

.story-copy > p:not(.eyebrow), .token-intro > p:not(.eyebrow), .learn-intro > p:not(.eyebrow) {
  margin-top: 1.15rem;
  color: var(--body-ink);
  font-size: 1.075rem;
}

.milestones {
  display: grid;
  gap: .7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.milestones li {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  align-items: baseline;
  gap: .65rem;
  padding: .75rem 0 0;
  border-top: 1px solid var(--rule);
}

.milestones time { color: var(--rose-dark); font-size: .9rem; font-weight: 700; }
.milestones p { margin-top: .12rem; color: var(--body-ink); }

.text-link {
  color: var(--rose-dark);
  font-weight: 700;
  text-decoration-color: #be8493;
  text-underline-offset: .22em;
}

.text-link:hover { text-decoration-color: currentColor; }

.token-section {
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  align-items: center;
  gap: clamp(1.8rem, 5vw, 4.6rem);
  padding: clamp(1.4rem, 5vw, 3.6rem);
  border: 1px solid var(--rule);
  border-radius: 1.8rem;
  background: var(--blush);
}

.token-intro h2 { font-size: clamp(2.4rem, 4.15vw, 3.55rem); }

.contract-card {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.95rem);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: var(--paper);
}

.address-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.2rem;
}

.address-field code {
  display: block;
  flex: 1 1 18rem;
  min-width: 0;
  padding: .65rem .72rem;
  border: 1px solid var(--rule);
  border-radius: .55rem;
  background: #fff5f6;
  font: .92rem/1.55 ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy-button, .menu-button {
  align-items: center;
  gap: .62rem;
  min-height: 2.75rem;
  padding: .5rem .76rem;
  border: 1px solid var(--rule);
  border-radius: .65rem;
  background: var(--paper);
  color: var(--rose-dark);
  font-weight: 700;
  cursor: pointer;
}

.copy-button { display: inline-flex; }
.copy-button:hover, .menu-button:hover { background: var(--blush); }

.copy-icon {
  position: relative;
  width: .71rem;
  height: .76rem;
  margin-right: .2rem;
  border: 1.5px solid currentColor;
  border-radius: .12rem;
}

.copy-icon::after {
  position: absolute;
  top: -.28rem;
  right: -.29rem;
  width: .64rem;
  height: .65rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  border-radius: 0 .12rem 0 0;
  content: "";
}

.copy-feedback {
  min-height: 1.55rem;
  margin-top: .33rem;
  color: var(--rose-dark);
  font-size: .9rem;
  font-weight: 650;
}

.contract-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1.2rem;
  margin-top: .5rem;
}

.learn {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  align-items: start;
  gap: clamp(2rem, 8vw, 7rem);
}

.questions {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: var(--paper);
}

.questions details + details { border-top: 1px solid var(--rule); }

.questions summary {
  position: relative;
  min-height: 3.75rem;
  padding: 1rem 3rem 1rem 1.3rem;
  list-style: none;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { position: absolute; right: 1.25rem; color: var(--rose); content: "+"; font-size: 1.25rem; }
.questions details[open] summary::after { content: "−"; }
.questions summary:hover { background: #fdf0f0; }
.questions summary:focus-visible { outline-offset: -4px; }
.questions p { padding: 0 1.3rem 1.2rem; color: var(--body-ink); }

.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
  background: #f7e5ea;
}

.footer-inner {
  display: flex;
  min-height: 6.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 2rem;
  padding-block: 1.25rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: .55rem clamp(1rem, 2.6vw, 2rem); }

@media (max-width: 62rem) {
  .hero { gap: 2rem; }
  .hero-description { margin-top: 1.05rem; }
  .token-section { grid-template-columns: .87fr 1.13fr; gap: 1.6rem; }
}

@media (width < 52rem) {
  .shell { width: min(100% - 2.4rem, 39rem); }
  .header-inner { min-height: 4.45rem; flex-wrap: wrap; gap: 0 1rem; }
  .header-whitepaper { display: none; }
  .site-nav { flex: 1 0 100%; flex-wrap: wrap; gap: .65rem 1.1rem; padding-block: .25rem .9rem; }
  .site-nav .nav-whitepaper { display: inline-flex; }
  .site-header[data-menu-ready] .menu-button { display: inline-flex; }
  .site-header[data-menu-ready]:not([data-menu-open]) .site-nav { display: none; }

  .menu-icon {
    width: .95rem;
    height: .7rem;
    border-block: 1.5px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  }

  .hero, .story, .token-section, .learn { grid-template-columns: 1fr; }
  .hero { gap: 2.2rem; padding-top: 2.7rem; }
  h1 { font-size: clamp(3.5rem, 10.5vw, 5.4rem); }
  .hero-art { aspect-ratio: 1.29; }
  .hero-cat { bottom: -16%; }
  .story { gap: 1.8rem; }
  .story-copy { grid-row: 1; }
  .learn { gap: 1.4rem; }
}

@media (max-width: 29rem) {
  .shell { width: calc(100% - 2rem); }
  h1 { font-size: clamp(2.85rem, 12vw, 3.55rem); }
  .eyebrow { margin-bottom: .75rem; font-size: .875rem; letter-spacing: .045em; }
  .hero-art { box-shadow: .32rem .4rem 0 #f4dce1; }
  .token-summary { grid-template-columns: 1fr 1fr; }
  .token-summary > div { padding: .85rem; }
  .token-summary > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid var(--rule); }
  .token-summary dd { font-size: 1.4rem; }
  .token-section { padding: 1.15rem; }
  .footer-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
