/* ============================================================
   JUSTICE FOR OSWALD — 1920s design system
   Sepia / black & white / vintage cinema aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Limelight&family=IM+Fell+English:ital@0;1&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=UnifrakturCook:wght@700&display=swap');

:root {
  /* Sepia / parchment palette */
  --paper: #f1e6cf;
  --paper-2: #ede0c4;
  --paper-3: #e4d3ae;
  --ink: #1d140a;
  --ink-2: #2b1d0e;
  --sepia: #5b3a1c;
  --sepia-2: #8a5d2e;
  --brass: #a87838;
  --brass-2: #d6a85e;
  --gold: #c89a45;
  --shadow: rgba(20, 10, 0, 0.45);
  --shadow-soft: rgba(20, 10, 0, 0.18);
  --white-pure: #fbf3df;
  --bg-deep: #221709;

  /* Typography */
  --font-title: 'Limelight', 'IM Fell English', Georgia, serif;
  --font-display: 'Playfair Display', 'IM Fell English', Georgia, serif;
  --font-body: 'IM Fell English', 'Playfair Display', Georgia, serif;
  --font-mono: 'Special Elite', 'Courier New', monospace;
  --font-fraktur: 'UnifrakturCook', 'IM Fell English', serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #1a1108;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 220, 160, 0.06), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 220, 160, 0.04), transparent 50%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.04) 0px,
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === FOOTAGE / VIGNETTE OVERLAY (subtle film-grain feel) === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.18) 0%, transparent 70%);
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* === PARCHMENT CARDS WITH DOUBLE BORDER === */
.parchment {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(120, 80, 30, 0.12), transparent 70%);
  color: var(--ink);
  border: 2px solid var(--sepia-2);
  box-shadow:
    inset 0 0 0 4px var(--paper),
    inset 0 0 0 6px var(--sepia),
    inset 0 0 60px rgba(80, 40, 10, 0.15),
    0 10px 40px var(--shadow);
  position: relative;
}

.parchment::before,
.parchment::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--sepia);
  opacity: 0.55;
  pointer-events: none;
}

.parchment::after {
  inset: auto 14px 14px 14px;
  height: 16px;
  border: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--sepia) 0,
      var(--sepia) 1px,
      transparent 1px,
      transparent 4px
    );
}

/* === ORNAMENTAL DIVIDER === */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px auto;
  color: var(--sepia);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
}

.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--sepia), transparent);
}

/* === HEADER / NAV === */

.site-header {
  background: linear-gradient(180deg, var(--bg-deep), #110a04);
  border-bottom: 3px double var(--brass);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brass-2);
  font-family: var(--font-fraktur);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 0 var(--sepia));
}

.brand-mark img {
  display: block;
  width: 44px;
  height: auto;
  border-radius: 50%;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-title);
  color: var(--paper);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.18s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--brass-2);
  border-color: var(--brass);
  background: rgba(216, 168, 94, 0.08);
  text-shadow: 0 0 6px rgba(216, 168, 94, 0.4);
}

.wallet-btn {
  font-family: var(--font-mono);
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--brass);
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: all 0.18s ease;
  text-transform: uppercase;
}

.wallet-btn:hover {
  background: var(--brass);
  color: var(--bg-deep);
}

.wallet-btn.connected {
  border-color: var(--brass-2);
  color: var(--brass-2);
  background: rgba(216, 168, 94, 0.08);
}

.wallet-btn .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brass-2);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === TYPOGRAPHY === */

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-top: 0;
  text-align: center;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 400;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto 28px;
}

.kicker {
  font-family: var(--font-mono);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  color: var(--sepia);
  border-top: 1px solid var(--sepia);
  border-bottom: 1px solid var(--sepia);
  padding: 6px 0;
  display: inline-block;
}

/* === BUTTONS === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 14px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--brass-2);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--sepia);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--sepia);
}

/* === MARQUEE / TICKER === */

.marquee {
  background: var(--bg-deep);
  color: var(--paper);
  border-top: 3px double var(--brass);
  border-bottom: 3px double var(--brass);
  padding: 8px 0;
  font-family: var(--font-title);
  letter-spacing: 0.3em;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 32s linear infinite;
  font-size: 0.95rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* === MAIN LAYOUT === */

main {
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* === HERO === */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  margin-bottom: 60px;
  position: relative;
}

.hero-portrait {
  width: 100%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, var(--paper-3), var(--paper) 70%);
  border: 1px solid var(--sepia);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.15),
    0 6px 24px var(--shadow-soft);
}

.hero-portrait img,
.hero-portrait svg {
  width: 90%;
  height: 90%;
  filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, 0.15));
}

.hero-text h1 {
  text-align: left;
  margin-bottom: 24px;
}

.hero-text .lede {
  text-align: left;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === STORY SECTION === */

.story {
  padding: 48px;
  margin-bottom: 60px;
  text-align: center;
}

.story p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin: 0 0 22px;
  text-align: justify;
  hyphens: auto;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.story p::first-letter {
  font-family: var(--font-fraktur);
  font-size: 4.2rem;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--sepia);
}

.story blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  text-align: center;
  border: none;
  margin: 36px auto;
  max-width: 720px;
  position: relative;
  padding: 20px 0;
  color: var(--ink-2);
}

.story blockquote::before,
.story blockquote::after {
  content: '';
  display: block;
  width: 100px;
  height: 1px;
  background: var(--sepia);
  margin: 0 auto;
}

.story blockquote::before { margin-bottom: 20px; }
.story blockquote::after { margin-top: 20px; }

/* === TOKENOMICS / TRI-SPLIT === */

.tokenomics {
  padding: 48px;
  margin-bottom: 60px;
}

.tri-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.tri-card {
  padding: 28px 24px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.2s ease;
}

.tri-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.tri-card .pct {
  font-family: var(--font-fraktur);
  font-size: 3rem;
  color: var(--sepia);
  line-height: 1;
  margin-bottom: 8px;
}

.tri-card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.tri-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.tri-card .icon {
  margin-bottom: 12px;
  font-size: 2.4rem;
  color: var(--sepia);
  line-height: 1;
}

/* === TIMELINE === */

.timeline {
  padding: 48px;
  margin-bottom: 60px;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sepia);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: center;
}

.timeline-item .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sepia);
  border: 3px solid var(--paper);
  margin: 0 auto;
  box-shadow: 0 0 0 2px var(--sepia);
}

.timeline-year {
  font-family: var(--font-fraktur);
  font-size: 1.8rem;
  color: var(--sepia);
  text-align: right;
  padding-right: 8px;
}

.timeline-item:nth-child(odd) .timeline-year { order: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-card { order: 3; }
.timeline-item:nth-child(odd) .dot { order: 2; }
.timeline-item:nth-child(even) .timeline-year { order: 3; text-align: left; padding-right: 0; padding-left: 8px; }
.timeline-item:nth-child(even) .timeline-card { order: 1; }
.timeline-item:nth-child(even) .dot { order: 2; }

.timeline-card {
  background: var(--paper-2);
  padding: 16px 20px;
  border: 1px solid var(--sepia);
  font-size: 0.98rem;
}

.timeline-card strong {
  display: block;
  font-family: var(--font-title);
  margin-bottom: 4px;
  color: var(--ink);
}

/* === FOOTER === */

.site-footer {
  background: linear-gradient(180deg, #110a04, var(--bg-deep));
  color: var(--paper);
  border-top: 4px double var(--brass);
  padding: 48px 24px 28px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  text-align: center;
}

.contract-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--brass);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.contract-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--brass-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brass-2);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brass-2);
  animation: pulse 1.6s infinite;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.contract-address {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-deep);
  color: var(--brass-2);
  padding: 10px 14px;
  border: 1px dashed var(--brass);
  word-break: break-all;
}

.contract-copy {
  font-family: var(--font-mono);
  background: transparent;
  color: var(--brass-2);
  border: 1px solid var(--brass);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.18s ease;
}

.contract-copy:hover {
  background: var(--brass);
  color: var(--bg-deep);
}

.footer-fine {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--paper-3);
  opacity: 0.7;
  max-width: 640px;
  margin: 0 auto;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass-2);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.social-link:hover {
  border-color: var(--brass);
  color: var(--paper);
}

/* === TOAST === */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  border: 2px solid var(--brass);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  z-index: 1000;
  transition: transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translate(-50%, 0);
}

/* === ACCESSIBILITY === */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass-2);
  color: var(--ink);
  padding: 12px 24px;
  z-index: 999;
  font-family: var(--font-mono);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
}

/* === MOBILE === */

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .hero-text h1,
  .hero-text .lede {
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .tri-split {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  .timeline-item .dot { width: 14px; height: 14px; }
  .timeline-list::before { left: 30px; }
  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    order: 3;
    text-align: left;
    padding: 0 0 0 8px;
    grid-column: 2;
  }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    order: 3;
    grid-column: 2;
  }
  .nav-list {
    gap: 0;
  }
  .nav-list a {
    padding: 8px 10px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
  .nav {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  h1 { font-size: 2rem; }
  .brand { font-size: 1.1rem; }
  main { padding: 32px 16px; }
  section.parchment { padding: 28px 20px; }
}

/* === PAGE-SPECIFIC OVERRIDES ADDED BELOW === */
