* {
  box-sizing: border-box;
}

html {
  background: var(--app-bg);
  color: var(--app-ink);
  font-family:
    ui-sans-serif,
    system-ui,
    "Avenir Next",
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
}

/* A quiet vertical hairline grid that recolours with the active theme. */
body::before {
  background:
    linear-gradient(90deg, var(--app-line) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--app-bg);
  content: "";
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

button {
  font: inherit;
}

::selection {
  background: var(--app-accent);
  color: var(--app-surface);
}

:focus-visible {
  outline: 3px solid var(--app-accent-2);
  outline-offset: 4px;
}

.skip-link {
  background: var(--app-accent);
  color: var(--app-surface);
  font-weight: 800;
  left: 1rem;
  padding: 0.55rem 0.75rem;
  position: fixed;
  text-decoration: none;
  top: -4rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.app-shell {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-inline: auto;
  max-width: 1160px;
  padding: clamp(1.25rem, 4vw, 2.75rem);
}

/* Compressed two-column masthead: copy + light DOM proof side by side. */
.masthead {
  align-items: end;
  border-bottom: 1px solid var(--app-strong-line);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.eyebrow {
  color: var(--app-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

h1 {
  font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0;
}

.lede {
  color: var(--app-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  margin: 1.1rem 0 0;
  max-width: 56ch;
}

.token-proof {
  background: var(--app-surface);
  border: 1px solid var(--app-strong-line);
  box-shadow: var(--app-shadow);
  color: var(--app-ink);
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
}

.proof-label {
  color: var(--app-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-token {
  border-bottom: 2px solid var(--app-accent);
  color: var(--app-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  justify-self: start;
  line-height: 1.2;
  padding-bottom: 0.2rem;
}

.token-proof p {
  color: var(--app-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

theme-switcher {
  display: block;
}

@media (max-width: 860px) {
  .masthead {
    align-items: start;
    grid-template-columns: 1fr;
  }
}
