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

:root {
  --walnut: #100c08;
  --umber: #1c140e;
  --bark: #2a1d14;
  --bronze: #8a6a3b;
  --gold: #d4af6a;
  --gold-hot: #f0d59a;
  --parchment: #efe4cf;
  --cream: #f7f0e2;
  --ink: #16110c;
  --soot: #0b0907;
  --mute: #9b8b74;
  --line: rgba(212, 175, 106, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(212, 175, 106, 0.08), transparent 55%),
    var(--walnut);
  color: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spine {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46px;
  z-index: 40;
  border-right: 1px solid var(--line);
  background: var(--soot);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spine-track {
  display: flex;
  gap: 1.4rem;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  animation: climb 28s linear infinite;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}

@keyframes climb {
  from { transform: rotate(180deg) translateY(0); }
  to { transform: rotate(180deg) translateY(50%); }
}

.masthead {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1180px, calc(100vw - 92px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 0.7rem;
  background: rgba(16, 12, 8, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.menu {
  display: flex;
  gap: 1.6rem;
}

.menu a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu a:hover {
  color: var(--gold-hot);
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

.pill-buy {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--gold);
}

.cover {
  width: min(1180px, calc(100vw - 92px));
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.painting {
  margin: 0;
}

.frame {
  padding: 12px;
  background:
    linear-gradient(145deg, #3a2a18, #1a120c 40%, #4a3820);
  box-shadow:
    0 0 0 1px #6b542e,
    0 30px 80px rgba(0, 0, 0, 0.55);
}

.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: #120e0a;
  display: block;
}

.painting figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.cover-copy {
  padding: 0.5rem 0 1rem;
}

.quota-chip {
  width: min(280px, 100%);
  margin-bottom: 1.6rem;
  padding: 0.85rem 1rem;
  background: rgba(12, 12, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.quota-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #c8c8cc;
}

.quota-chip p {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.72rem;
  color: #8e8e94;
}

.quota-track {
  height: 6px;
  border-radius: 99px;
  background: #2c2c32;
  overflow: hidden;
}

.quota-track i {
  display: block;
  height: 100%;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa2ff, #c7d7ff);
  animation: fillbar 1.6s ease-out;
}

@keyframes fillbar {
  from { width: 0; }
}

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.name-grok {
  display: block;
  color: var(--gold-hot);
  font-style: italic;
}

.name-butt {
  display: block;
  color: var(--cream);
}

.ticker {
  margin: 0.85rem 0 1.1rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.lede {
  max-width: 28rem;
  color: #d7cbb6;
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.cover-actions,
.enter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-hot);
}

.btn-ink {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}

.btn-ink:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

.spark {
  width: min(1180px, calc(100vw - 92px));
  margin: 6rem auto 0;
}

.spark-head {
  max-width: 36rem;
  margin-bottom: 2.4rem;
}

.spark h2,
.lore h2,
.seal h2,
.enter h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.spark-sub {
  margin-top: 0.8rem;
  color: var(--mute);
  font-size: 1.05rem;
}

.spark-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.tweet-card {
  background: #0a0a0b;
  border: 1px solid #2f3336;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.tweet-link {
  display: block;
  padding: 1.15rem 1.2rem 1rem;
  color: #e7e9ea;
  text-decoration: none;
}

.tweet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #e7e9ea;
}

.tweet-open {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

.tweet-user {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #202327;
  object-fit: cover;
}

.tweet-user strong {
  display: block;
  font-size: 0.98rem;
}

.tweet-user span {
  color: #71767b;
  font-size: 0.9rem;
}

.tweet-body {
  font-size: 1.55rem;
  line-height: 1.35;
  margin-bottom: 0.95rem;
}

.tweet-body span {
  color: #1d9bf0;
}

.tweet-quote {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #2f3336;
  border-radius: 14px;
}

.tweet-quote p {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.tweet-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: #71767b;
}

.tweet-card time {
  display: block;
  color: #71767b;
  font-size: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #2f3336;
}

.tweet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  list-style: none;
  padding-top: 0.85rem;
  color: #71767b;
  font-size: 0.84rem;
}

.tweet-meta strong {
  color: #e7e9ea;
  margin-right: 0.2rem;
}

.embed-panel {
  background: var(--umber);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.15rem;
  min-height: 100%;
}

.embed-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.embed-frame {
  display: flex;
  justify-content: center;
  min-height: 420px;
  background: #000;
  border-radius: 12px;
  overflow: auto;
}

.embed-frame .twitter-tweet {
  margin: 0 auto !important;
}

.embed-fallback-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  text-decoration: none;
}

.pullquote {
  margin: 2.4rem 0 0;
  padding: 1.6rem 1.8rem;
  background: var(--parchment);
  color: var(--ink);
  border-radius: 4px 18px 18px 4px;
  border-left: 5px solid var(--bronze);
}

.pullquote p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.25;
}

.pullquote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}

.lore {
  width: min(1180px, calc(100vw - 92px));
  margin: 6rem auto 0;
}

.lore-intro {
  max-width: 28rem;
  margin-bottom: 2rem;
}

.folios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.folio {
  padding: 1.5rem 1.35rem 1.6rem;
  background: linear-gradient(180deg, #1a1410, #120e0b);
  border: 1px solid var(--line);
  border-radius: 18px 4px 18px 4px;
}

.folio-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
}

.folio h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0.35rem 0 0.7rem;
}

.folio p {
  color: #d3c6b0;
  font-size: 0.98rem;
}

.seal {
  width: min(1180px, calc(100vw - 92px));
  margin: 5.5rem auto 0;
}

.seal-inner {
  text-align: center;
  padding: 3.2rem 1.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 106, 0.12), transparent 55%),
    var(--umber);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.wax {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.wax-mark {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(212, 175, 106, 0.12);
}

.wax code {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-hot);
  line-height: 1;
}

.toast {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.25s;
}

.toast.show {
  opacity: 1;
}

.seal-note {
  margin-top: 0.6rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.enter {
  width: min(1180px, calc(100vw - 92px));
  margin: 5.5rem auto 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}

.rites {
  list-style: none;
  margin: 1.6rem 0 1.8rem;
}

.rites li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.rites li:last-child {
  border-bottom: 1px solid var(--line);
}

.rites span {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.85rem;
  padding-top: 0.2rem;
}

.rites h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.rites p {
  color: var(--mute);
}

.stamp {
  text-align: center;
  padding: 2rem 1.4rem;
  background: var(--parchment);
  color: var(--ink);
  border-radius: 40% 40% 12px 12px;
}

.stamp img {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #3a2a18;
}

.stamp p {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.stamp strong {
  display: block;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  margin: 0.25rem 0;
}

.stamp em {
  color: #6d5a3c;
  font-style: normal;
  font-size: 0.85rem;
}

.colophon {
  width: min(1180px, calc(100vw - 92px));
  margin: 5rem auto 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.colo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.colo-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.colo-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.colo-brand span,
.colophon > p {
  color: var(--mute);
  font-size: 0.82rem;
}

.colophon > p {
  max-width: 28rem;
  text-align: right;
}

@media (max-width: 980px) {
  .cover,
  .spark-stage,
  .folios,
  .enter,
  .colophon {
    grid-template-columns: 1fr;
  }

  .frame img {
    aspect-ratio: 4 / 5;
  }

  .colophon {
    flex-direction: column;
    text-align: center;
  }

  .colophon > p {
    text-align: center;
  }

  .stamp {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .spine {
    display: none;
  }

  .masthead,
  .cover,
  .spark,
  .lore,
  .seal,
  .enter,
  .colophon {
    width: min(1180px, 92vw);
  }

  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--umber);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .menu.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .pill-buy {
    display: none;
  }

  .masthead {
    position: relative;
    top: 10px;
    border-radius: 22px;
  }

  .cover {
    min-height: unset;
    margin-top: 1.4rem;
    gap: 1.6rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }
}
