/* dnsthing.com — dark, tool page. A registrar form against a terminal. */

/* ---- scaffold: identical on every thing page; only the tokens change ---- */

:root {
  color-scheme: dark;
  --bg: #0b0e0a;
  --surface: #12160f;
  --raised: #171c13;
  --line: #232a1e;
  --line-strong: #33401f;
  --ink: #e9ede4;
  --muted: #9aa394;
  --dim: #7d867a;
  --accent: #a9d94d;
  --accent-bright: #bce564;
  --accent-ink: #0d1405;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(62rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease;
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
}

h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 1.5rem clamp(2.5rem, 6vw, 3.75rem);
}

h1 {
  max-width: 20ch;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 58ch;
  font-size: 1.13rem;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin: 2.25rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.button:hover {
  color: var(--accent-ink);
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.quiet {
  font-size: 0.86rem;
  color: var(--dim);
}

.section {
  padding: clamp(3rem, 8vw, 5.25rem) 0 0;
}

.section:last-child {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.title {
  max-width: 34ch;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.note {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: var(--muted);
}

.close-lede {
  margin: 1rem 0 0;
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.close-links {
  margin: 1.75rem 0 0;
}

/* ---- the comparison: before beside after, the same component everywhere ---- */

.opening {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.15rem, 2.6vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.side--after {
  background: var(--raised);
  border-color: var(--line-strong);
}

.side-label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}

.side--after .side-label {
  color: var(--accent);
}

.artifact {
  min-width: 0;
}

.side-foot {
  margin: auto 0 0;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--dim);
}

/* ---- the labelled card, the terminal, the ruled list ---- */

.shell {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.shell-bar {
  margin: 0 0 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.mono {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--muted);
}

.mono .p {
  color: var(--accent);
}

.mono .ok {
  color: var(--accent);
  font-weight: 600;
}

.mono .c,
.mono .dim {
  color: var(--dim);
}

.rows {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 0.4rem clamp(1.5rem, 4vw, 3rem);
  align-items: baseline;
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid var(--line);
}

.rows li:last-child {
  border-bottom: 1px solid var(--line);
}

.rows h3 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.rows h3::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.rows p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.97rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 52rem) {
  .opening {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 40rem) {
  .mono {
    font-size: 0.73rem;
  }

  .rows li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ---- this page: the registrar form, the diff, the relay ---- */

.panel-bar {
  margin: 0 0 0.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.panel-bar + .field {
  border-top: 0;
}

.field {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.field span {
  color: var(--dim);
}

.field b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
}

.field--warn b {
  letter-spacing: 0.2em;
  color: var(--dim);
}

.save {
  margin: 0.85rem 0 0;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
}

.panel-foot {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  color: var(--dim);
}

.term .add {
  color: var(--accent);
}

.term .chg {
  color: var(--muted);
}

.relay {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
}

.relay > div {
  padding: 1.2rem 0 1.35rem;
  border-top: 1px solid var(--line);
}

.relay > div:last-child {
  border-bottom: 1px solid var(--line);
}

.relay dt {
  font-weight: 600;
}

.relay dd {
  margin: 0.4rem 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.97rem;
}

.chain {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--dim);
}
