:root {
  --ink: #24130c;
  --ink-soft: #5f3724;
  --clay-dark: #7d2c13;
  --clay: #c95d28;
  --clay-bright: #f08b43;
  --sand: #f3ddbd;
  --stone: #fff2dc;
  --paper: #f8e8ce;
  --gold: #d8a24b;
  --shadow: rgba(56, 25, 10, 0.24);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(255, 246, 226, 0.92), transparent 32rem),
    linear-gradient(135deg, #f7e4c3 0%, #ead0a8 42%, #c7753b 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(125, 44, 19, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(125, 44, 19, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 74%);
}

.surface-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(36, 19, 12, 0.13) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px);
  background-size: 24px 28px, 31px 35px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 70px;
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(125, 44, 19, 0.28);
  border-radius: 8px;
  background: rgba(255, 239, 211, 0.78);
  box-shadow: 0 18px 48px rgba(88, 44, 17, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff1d7;
  background: linear-gradient(145deg, var(--clay-bright), var(--clay-dark));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(201, 93, 40, 0.14);
}

main {
  padding: 22px 16px 56px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(125, 44, 19, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 244, 225, 0.78), rgba(224, 151, 93, 0.48));
  box-shadow: 0 28px 70px var(--shadow);
}

.hero-banner {
  position: relative;
  grid-column: 1 / -1;
  min-height: clamp(280px, 43vw, 470px);
  overflow: hidden;
  border-radius: 6px;
  background: #bd642f;
}

.hero-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(36, 19, 12, 0.86), rgba(36, 19, 12, 0.28) 45%, rgba(36, 19, 12, 0.04)),
    linear-gradient(0deg, rgba(36, 19, 12, 0.38), transparent 55%);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 5vw, 68px);
  bottom: clamp(34px, 7vw, 76px);
  z-index: 2;
  width: min(560px, calc(100% - 56px));
  color: #fff0d7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffd79a;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 9vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.hero-description {
  max-width: 52ch;
  margin: 18px 0 0;
  color: rgba(255, 244, 225, 0.92);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #291209;
  background: linear-gradient(135deg, #ffd28a, #f08b43);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.button.ghost {
  color: #fff0d7;
  border-color: rgba(255, 226, 176, 0.48);
  background: rgba(36, 19, 12, 0.34);
}

.seal {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(125, 44, 19, 0.26);
  border-radius: 8px;
  background: rgba(255, 239, 211, 0.86);
}

.seal img {
  aspect-ratio: 1;
  width: 118px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(125, 44, 19, 0.24);
}

.seal-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seal strong {
  display: block;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.ledger-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--max-width));
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid rgba(125, 44, 19, 0.24);
  border-radius: 8px;
  background: #2b170e;
}

.ledger-strip span {
  min-height: 72px;
  padding: 20px;
  color: #ffe5b8;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 229, 184, 0.18);
}

.ledger-strip span:last-child {
  border-right: 0;
}

.archive,
.token {
  width: min(100%, var(--max-width));
  margin: 18px auto 0;
}

.archive {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: start;
  padding: 34px;
  border-radius: 8px;
  background: rgba(255, 240, 214, 0.72);
  box-shadow: 0 18px 48px rgba(88, 44, 17, 0.12);
}

.section-heading h2,
.token-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1;
}

.tablet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tablet-grid article {
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(125, 44, 19, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 246, 229, 0.58), rgba(210, 111, 54, 0.24)),
    var(--paper);
}

.tablet-grid span {
  color: var(--clay-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
}

.tablet-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
}

.tablet-grid p,
.token-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
}

.token {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.token-copy,
.token-panel {
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 242, 220, 0.8);
  box-shadow: 0 18px 48px rgba(88, 44, 17, 0.1);
}

.token-copy p {
  max-width: 60ch;
  margin-top: 16px;
  font-size: 1.05rem;
}

.token-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid rgba(125, 44, 19, 0.25);
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(125, 44, 19, 0.18);
}

.token-row span {
  color: var(--ink-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.token-row strong {
  text-align: right;
}

.copy-button {
  width: 100%;
  color: #fff1d7;
  background: #2b170e;
  box-shadow: 0 12px 26px rgba(43, 23, 14, 0.18);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--max-width));
  margin: 22px auto 0;
  padding: 24px 16px 38px;
  color: var(--ink-soft);
  font-weight: 850;
}

@media (max-width: 900px) {
  .topbar,
  .archive,
  .token {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(calc(100% - 24px), var(--max-width));
    padding: 12px;
  }

  .hero-copy {
    left: 26px;
    bottom: 28px;
    width: calc(100% - 52px);
  }

  .seal {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .seal img {
    width: 96px;
  }

  .ledger-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100% - 24px), var(--max-width));
  }

  .archive,
  .token {
    grid-template-columns: 1fr;
  }

  .tablet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  main {
    padding-inline: 0;
  }

  .hero-banner {
    min-height: 470px;
  }

  .hero-banner::after {
    background:
      linear-gradient(0deg, rgba(36, 19, 12, 0.92), rgba(36, 19, 12, 0.18) 86%),
      linear-gradient(90deg, rgba(36, 19, 12, 0.3), transparent);
  }

  .hero-copy {
    left: 22px;
    bottom: 24px;
    width: calc(100% - 44px);
  }

  h1 {
    font-size: clamp(2.9rem, 16vw, 4.8rem);
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    flex: 1 1 130px;
  }

  .ledger-strip {
    grid-template-columns: 1fr;
  }

  .ledger-strip span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 229, 184, 0.18);
  }

  .archive,
  .token-copy,
  .token-panel {
    padding: 22px;
  }

  .footer {
    flex-direction: column;
    width: min(calc(100% - 24px), var(--max-width));
  }
}
