:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5d6673;
  --line: #d7dde4;
  --accent: #027a73;
  --accent-strong: #005c58;
  --warn: #b9472f;
  --pending: #705c00;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.faucet {
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.masthead {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.masthead p,
.masthead h1 {
  margin: 0;
}

.masthead p {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.masthead h1 {
  font-size: clamp(2.15rem, 9vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.mint-form {
  display: grid;
  gap: 14px;
}

label,
.hash-field {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 122, 115, 0.18);
}

button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.primary {
  color: white;
  background: var(--accent);
}

.primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

.secondary {
  color: var(--accent-strong);
  background: #e4f1ee;
  border-color: #bdded8;
  white-space: nowrap;
}

.secondary:hover:not(:disabled) {
  border-color: var(--accent);
}

.status {
  display: block;
  min-height: 44px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #eef2f5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status[data-type="ok"] {
  color: var(--accent-strong);
  background: #e4f1ee;
}

.status[data-type="pending"] {
  color: var(--pending);
  background: #fff7d6;
}

.status[data-type="error"] {
  color: var(--warn);
  background: #fce7df;
}

.hash-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.hash-field input {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .shell {
    align-items: start;
    padding: 14px;
  }

  .faucet {
    margin-top: 20px;
  }

  .address-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
