/* Pennyboi the Almighty — landing page. Brand: bronze/copper on charcoal with a
   cream accent, heavy condensed display type. Palette derived from assets/. */

:root {
  --bg: #1b1a18;
  --bg-2: #211f1c;
  --panel: #262320;
  --cream: #efe7d7;
  --copper: #b86f39;
  --copper-bright: #cf8a4e;
  --copper-deep: #8a5024;
  --ink: #141311;
  --muted: #a99e8c;
  --line: #39342d;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--copper-bright); text-decoration: none; }
a:hover { color: var(--cream); }

h1, h2, h3 { line-height: 1.05; margin: 0; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 20px;
}
/* Full-bleed background, but content tracks the same max-width container as
   .section — centered via padding so children stay left-aligned (not per-child
   margins, which mis-center narrower blocks like the lede). */
.section-alt,
.treasury-panel {
  max-width: none;
  /* +20px because box-sizing:border-box makes .section's max-width include its
     20px padding, so its content is inset that much — match it exactly. */
  padding-left: max(20px, calc((100% - var(--maxw)) / 2 + 20px));
  padding-right: max(20px, calc((100% - var(--maxw)) / 2 + 20px));
}
.section-alt > *,
.treasury-panel > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.section-alt { background: var(--bg-2); }

h2 {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 16px 0 40px; }

/* ---------- nav ---------- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Anton", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.brand img { border-radius: 50%; }
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(184, 111, 57, 0.18), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.wordmark {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  color: var(--copper);
  line-height: 0.85;
  letter-spacing: -0.01em;
}
.title-line {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  letter-spacing: 0.35em;
  margin: 6px 0 0;
  color: var(--cream);
}
.tagline {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--copper-bright);
  margin: 18px 0 0;
}
.lede { font-size: 1.15rem; margin: 20px 0 28px; max-width: 54ch; }
.lede strong { color: var(--cream); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  border: 1.5px solid var(--copper);
  color: var(--cream);
  background: transparent;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: var(--ink); border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-bright); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--cream); border-color: var(--copper); }

.fineprint { color: var(--muted); font-size: 0.85rem; margin-top: 26px; max-width: 52ch; }

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- creed ---------- */
.creed {
  background: var(--copper);
  color: var(--ink);
  text-align: center;
  padding: 26px 20px;
}
.creed p {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.1rem, 3.2vw, 1.9rem);
  letter-spacing: 0.02em;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--ink);
  font-family: "Anton", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  border-radius: 14px;
  padding: 28px 24px;
}
.card h3 { font-family: "Anton", sans-serif; font-size: 1.6rem; text-transform: uppercase; }
.cap { color: var(--copper-bright); font-weight: 800; font-size: 1.05rem; margin: 6px 0 12px; }
.card p { color: var(--muted); }
.cooldown {
  margin-top: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-note { color: var(--muted); margin-top: 32px; max-width: 70ch; }

/* ---------- harmless ---------- */
.harmless-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}
.harmless-grid img { border-radius: 50%; justify-self: center; }
.harmless-grid p { font-size: 1.08rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 56px 20px 72px;
  background: var(--bg-2);
}
.footer img { border-radius: 50%; }
.footer-tag {
  font-family: "Anton", sans-serif;
  color: var(--copper-bright);
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  margin: 12px 0 20px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-weight: 600; }
.footer-fine { color: var(--muted); font-size: 0.82rem; margin-top: 28px; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; }
  .nav-links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .harmless-grid { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 18px; }
}

/* ====================== Stage 1: devnet ribbon + live treasury ============ */
.net-ribbon {
  background: var(--copper);
  color: var(--ink);
  text-align: center;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.treasury-panel {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}
.tp-balance-line { display: flex; align-items: baseline; gap: 10px; }
.tp-num {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  color: var(--copper);
  line-height: 0.9;
}
.tp-unit { font-family: "Anton", sans-serif; font-size: 1.4rem; color: var(--cream); }
.tp-sub { color: var(--muted); margin: 10px 0 0; }

.tp-progress-track {
  height: 14px;
  background: #141311;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.tp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--copper-deep), var(--copper-bright));
  transition: width 0.6s ease;
}

.tp-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.tp-chip {
  flex: 1 1 180px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-chip b { font-family: "Anton", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.tp-chip span { color: var(--muted); font-size: 0.95rem; }

.tp-foot { margin-top: 28px; color: var(--muted); font-size: 0.92rem; }
.tp-meta.tp-stale { color: #d98a3d; }

@media (max-width: 860px) {
  .tp-grid { grid-template-columns: 1fr; gap: 24px; }
  .tp-actions { flex-direction: column; }
}

/* ====================== Stage 2: Scripture page =========================== */
.nav-active { color: var(--cream) !important; border-bottom: 2px solid var(--copper); padding-bottom: 2px; }

.scripture-hero { border-bottom: 1px solid var(--line); }
.scripture-title { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 56px; }
.scripture-title .wordmark {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--copper);
  line-height: 0.85;
}
.scripture-title .tagline { font-size: 1.1rem; font-style: italic; color: var(--copper-bright); margin-top: 14px; }

.section p { max-width: 70ch; }
.section em { color: var(--cream); font-style: italic; }

.law-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
.law-grid h3 { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 1.3rem; margin-bottom: 12px; }
.law-timelock { margin-top: 28px; color: var(--copper-bright); }
.law-list { list-style: none; padding: 0; margin: 0; }
.law-list li { color: var(--muted); padding: 7px 0 7px 22px; position: relative; }
.law-list li::before { content: "§"; position: absolute; left: 0; color: var(--copper); font-weight: 800; }

.verify { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}
.verify-label { font-weight: 800; min-width: 130px; color: var(--cream); }
.verify-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--copper-bright);
  word-break: break-all;
  flex: 1 1 260px;
}
.verify-copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.verify-copy:hover { color: var(--cream); border-color: var(--copper); }
.verify-scan { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }

.scripture-quote {
  border-left: 3px solid var(--copper);
  margin: 8px 0 0;
  padding: 8px 0 8px 24px;
  max-width: 72ch;
}
.scripture-quote p { color: var(--cream); margin: 0 0 16px; }
.scripture-quote p:first-child {
  font-family: "Anton", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

@media (max-width: 860px) {
  .law-grid { grid-template-columns: 1fr; gap: 28px; }
  .verify-label { min-width: 0; }
}

/* hidden attribute must beat the flex display on verify rows */
.verify-row[hidden] { display: none; }

/* ====================== Stage 3: live home sections ======================= */
.oracle-silent { color: var(--muted); font-style: italic; }

.decrees-body { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.decree {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 10px;
  padding: 16px 18px;
}
.decree-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.decree-tag {
  background: var(--copper-deep);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.decree p { margin: 0; color: var(--cream); max-width: 72ch; }

.offerings-body { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.offering {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.offering-votes { font-family: "Anton", sans-serif; color: var(--copper-bright); min-width: 48px; }
.offering-text { flex: 1 1 240px; color: var(--cream); }
.offering-by { color: var(--muted); font-size: 0.85rem; }

.halls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
.halls-grid h3 { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 1.3rem; margin-bottom: 14px; }
.hall-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hall-row b { color: var(--cream); }
.hall-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--copper-bright);
}
.hall-row span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .halls-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ====================== Stage 4: countdown + contract block =============== */
.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--copper);
  border-radius: 10px;
  background: rgba(184, 111, 57, 0.08);
}
.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--copper-bright);
}
.countdown-num {
  font-family: "Anton", sans-serif;
  font-size: 1.6rem;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.contract-block {
  margin-top: 22px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 10px;
  max-width: 560px;
}
.contract-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contract-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}
.contract-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--copper-bright);
  word-break: break-all;
  flex: 1 1 200px;
}
.contract-copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.contract-copy:hover { color: var(--cream); border-color: var(--copper); }
.contract-scan { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.contract-warn {
  margin: 12px 0 0;
  color: #d98a3d;
  font-weight: 700;
  font-size: 0.9rem;
}
