:root {
  --bg: #000;
  --gold: #ffd21a;
  --gold-soft: #ffe981;
  --muted: rgba(255, 226, 92, 0.74);
  --line: rgba(255, 210, 26, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 26, 0.14), transparent 20rem),
    var(--bg);
  font-family: "Courier New", Courier, monospace;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

a:hover,
button:hover {
  color: var(--bg);
  background: var(--gold);
}

.shell {
  width: min(980px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: 0.52rem;
}

.top,
nav,
footer,
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.sigil {
  font-weight: 900;
  letter-spacing: 0.12em;
}

nav {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

nav a {
  padding: 0.12rem 0.25rem;
}

.ascii-logo {
  margin: 0;
  overflow: hidden;
  color: var(--gold);
  font-size: clamp(0.38rem, 1.42vw, 0.86rem);
  font-weight: 900;
  line-height: 1.02;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 210, 26, 0.18);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: block;
  width: min(210px, 30vw);
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(255, 210, 26, 0.36));
}

h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2.8rem, 8.8vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.84;
  text-transform: lowercase;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  color: var(--bg);
  background: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  min-width: 100%;
  padding: 0.32rem 0;
  animation: crawl 20s linear infinite;
}

@keyframes crawl {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

article,
.thesis {
  border: 1px solid var(--line);
  background: rgba(255, 210, 26, 0.045);
}

.grid article {
  min-width: 0;
  padding: 0.8rem;
}

article span,
small,
.status,
footer {
  color: var(--muted);
}

article span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

strong {
  display: block;
  overflow: hidden;
  color: var(--gold-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
}

.thesis {
  padding: 0.65rem 0.75rem;
  line-height: 1.26;
}

.thesis strong {
  display: inline;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.thesis p {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.status {
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
  font-size: 0.82rem;
}

.status p {
  margin: 0;
}

button {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

footer {
  align-self: end;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.ca-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

#ca-display {
  display: inline-flex;
  min-width: 0;
  gap: 0.35rem;
}

#copy-toast {
  min-width: 3.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

#quote-spent {
  color: var(--gold);
}

#ca-pill-addr {
  display: inline-block;
  max-width: min(36vw, 26rem);
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.fine-print {
  color: var(--gold);
  max-width: 42rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: right;
}

@media (max-width: 760px) {
  .top,
  footer,
  .status {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  nav {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    justify-items: center;
    text-align: center;
  }

  .logo {
    width: min(170px, 46vw);
  }

  .fine-print {
    text-align: left;
  }

  #ca-pill-addr {
    max-width: 76vw;
  }
}
