:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --ink: #17130e;
  --muted: #6f665a;
  --line: rgba(23, 19, 14, 0.14);
  --panel: rgba(255, 252, 246, 0.86);
  --green: #00c896;
  --yellow: #ffcb3d;
  --pink: #ff5d82;
  --blue: #3578ff;
  --shadow: 0 28px 80px rgba(56, 43, 26, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.mint-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 22px clamp(16px, 4vw, 56px) 46px;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mint-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  background: linear-gradient(180deg, rgba(246, 241, 232, 0), var(--paper));
  pointer-events: none;
}

.topbar,
.mint-layout {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.top-actions {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.72);
  backdrop-filter: blur(16px);
}

.top-actions a,
.top-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 850;
  font-size: 14px;
}

.top-actions button {
  background: var(--ink);
  color: var(--paper);
}

.mint-layout {
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: end;
  gap: clamp(20px, 4vw, 54px);
  padding-top: 50px;
}

.copy {
  max-width: 780px;
  padding-bottom: 26px;
}

.tag {
  margin: 0 0 12px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.92;
}

h1 {
  max-width: 8ch;
  font-size: clamp(68px, 13vw, 176px);
  font-weight: 1000;
}

.summary {
  max-width: 650px;
  margin: 22px 0 20px;
  color: #34291f;
  font-size: clamp(18px, 2.1vw, 27px);
  line-height: 1.25;
  font-weight: 720;
}

.mint-console {
  border: 1px solid rgba(23, 19, 14, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  padding: 18px;
}

.meter-label span,
.price-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.meter-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.meter-label,
.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.meter-label strong,
.price-line strong {
  font-size: 15px;
}

.meter {
  height: 18px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 14, 0.08);
  border: 1px solid rgba(23, 19, 14, 0.12);
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transition: width 0.35s ease;
}

.meter.supply span {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.price-line {
  margin-top: 12px;
  padding: 15px 14px;
  border-radius: 8px;
  background: #fff7d7;
  border: 1px solid rgba(124, 45, 18, 0.16);
}

.price-line em {
  color: #b42346;
  font-style: normal;
}

.quantity-row {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
  margin-top: 12px;
}

.step,
.quantity-row output {
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid var(--line);
  font-size: 22px;
  font-weight: 950;
}

.mint-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mint-buttons button {
  min-height: 54px;
  border-radius: 8px;
  font-weight: 950;
}

#freeMint {
  background: var(--green);
  color: #04130f;
}

#paidMint {
  background: var(--ink);
  color: var(--paper);
}

.contract-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.contract-links a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.status {
  min-height: 38px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

code {
  color: #b42346;
  font-weight: 850;
}

.gallery-section {
  padding: 42px clamp(16px, 4vw, 56px) 76px;
  background: var(--paper);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

h2 {
  max-width: 920px;
  font-size: clamp(38px, 7vw, 88px);
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(56, 43, 26, 0.12);
}

@media (max-width: 920px) {
  .mint-screen {
    padding-bottom: 28px;
  }

  .hero-art {
    object-position: 58% center;
  }

  .top-actions a {
    display: none;
  }

  .mint-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .copy {
    padding-top: 30px;
  }

  .summary {
    max-width: 520px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .mint-console {
    padding: 12px;
  }

  .meter-label,
  .price-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
