:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #63615c;
  --line: #d8d3ca;
  --paper: #faf8f2;
  --panel: #ffffff;
  --yellow: #f5d83d;
  --blue: #2478ff;
  --pink: #ff8fbd;
  --green: #21855a;
  --red: #b33939;
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

button {
  border: 1px solid var(--ink);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--blue);
  font-weight: 800;
}

a.network-pill {
  text-decoration: none;
}

input {
  min-width: 0;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 14px;
}

.network-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  grid-template-areas:
    "copy preview"
    "mint preview";
  gap: 24px;
  align-items: start;
  padding: 42px 0 30px;
}

.hero-copy {
  grid-area: copy;
  padding-top: 16px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.intro {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.stats div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stats strong {
  display: block;
  font-size: 18px;
}

.preview-panel {
  grid-area: preview;
  border: 2px solid var(--ink);
  background: var(--panel);
}

.preview-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mint-panel {
  grid-area: mint;
  max-width: 620px;
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: 18px;
}

.panel-header,
.activity-header,
.quantity-row,
.button-row {
  display: flex;
  align-items: center;
}

.panel-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-header p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  background: var(--red);
}

.status-dot.ok {
  background: var(--green);
}

.quantity-row {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.quantity-row label {
  font-weight: 800;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 70px 42px;
  height: 42px;
}

.stepper button,
.stepper input {
  border: 1px solid var(--ink);
  background: var(--panel);
  text-align: center;
}

.stepper button {
  font-weight: 900;
}

.stepper input {
  border-left: 0;
  border-right: 0;
}

.button-row {
  gap: 10px;
  margin-bottom: 10px;
}

.primary,
.secondary,
.dev-button {
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
}

.primary {
  flex: 1;
  background: var(--yellow);
}

.secondary {
  background: var(--panel);
}

.small {
  min-height: 36px;
  padding: 0 12px;
}

.dev-button {
  width: 100%;
  background: var(--pink);
}

.notice {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice.error {
  color: var(--red);
}

.notice.ok {
  color: var(--green);
}

.activity {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.activity-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.empty,
.token-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.token-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.token-card-body {
  padding: 12px;
}

.token-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.token-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  background: var(--yellow);
}

.deploy-layout {
  padding: 42px 0 48px;
}

.deploy-panel {
  max-width: 840px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid label,
.full-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-grid input,
.full-field input,
.fund-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: var(--panel);
  padding: 0 10px;
  color: var(--ink);
}

.full-field {
  margin-bottom: 12px;
}

.deploy-buttons {
  margin-top: 16px;
}

.fund-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  margin-top: 10px;
}

.deploy-result {
  margin-top: 28px;
}

pre {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "preview"
      "mint";
    padding-top: 28px;
  }

  .intro {
    font-size: 16px;
  }

  .form-grid,
  .fund-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
  }

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

  .button-row,
  .quantity-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  .stepper {
    width: 100%;
    grid-template-columns: 48px 1fr 48px;
  }
}
