:root {
  --paper: #f5efe4;
  --paper-soft: #fbf7ef;
  --paper-deep: #e9e1d3;
  --ink: #1a2039;
  --muted: #686778;
  --accent: #f9a3c0;
  --accent-ink: #1a2039;
  --dark: #141a2f;
  --dark-soft: #1e2744;
  --dark-ink: #f7f1e7;
  --dark-muted: #b9b9c7;
  --code: #101528;
  --code-ink: #ece7dc;
  --field: #eee6d8;
  --field-focus: #e4d8c6;
  --error: #9d3546;
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1320px;
  --display: "Zilla Slab", "Iowan Old Style", Georgia, serif;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

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

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.shell {
  width: 100%;
  max-width: var(--max);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.brand-name {
  font-weight: 750;
}

.brand-slash {
  color: var(--muted);
  font-weight: 400;
}

.brand-page {
  color: var(--muted);
  font-weight: 500;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  font-size: 13px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topnav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(46px, 8vh, 92px) 0 0;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 8.6vw, 116px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 38ch;
  margin: 0 0 0.4em;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink);
}

.hero-lede strong {
  font-weight: 700;
}

.footer {
  margin-top: clamp(80px, 12vh, 140px);
  padding: clamp(28px, 4vw, 48px) 0;
  background: var(--dark);
  color: var(--dark-ink);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.footer-mark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 38ch;
  color: var(--dark-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.footer-side p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-nav a {
  color: var(--dark-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  background: var(--paper-deep);
  color: var(--muted);
  cursor: wait;
  transform: none;
}

.button--quiet {
  background: var(--field);
  color: var(--ink);
}

.button--quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 12px;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.field input,
.field select {
  min-height: 46px;
  padding: 11px 14px;
}

.field textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--field-focus);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a2039' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: calc(100% - 16px) center;
  background-size: 10px 6px;
  background-repeat: no-repeat;
}

.code-surface {
  margin: 0;
  min-height: 110px;
  padding: 16px;
  overflow: auto;
  background: var(--code);
  color: var(--code-ink);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.status[data-tone="error"] {
  color: var(--error);
}

.status[data-tone="good"] {
  color: var(--ink);
  font-weight: 650;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.skip-link:focus {
  left: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 44px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-lede {
    max-width: 48ch;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-side {
    align-items: flex-start;
    max-width: none;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: 72px;
  }

  .brand {
    gap: 5px;
    font-size: 18px;
  }

  .brand-page {
    display: none;
  }

  .topnav {
    gap: 13px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(48px, 14.5vw, 72px);
  }

  .footer-mark {
    font-size: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.net-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(52px, 8vh, 84px);
}

.identity,
.dns {
  min-width: 0;
  padding: clamp(24px, 3.6vw, 44px);
}

.identity {
  background: var(--dark);
  color: var(--dark-ink);
}

.dns {
  background: var(--paper-deep);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.3vw, 38px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.card-meta {
  padding-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.identity-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--dark-muted);
  font-size: 12px;
  line-height: 1.5;
}

.identity-status[data-tone="error"] {
  color: var(--accent);
}

.ip-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 22px;
  margin: clamp(20px, 4vw, 34px) 0;
}

.ip {
  min-height: 0.8em;
  margin: 0;
  color: var(--dark-ink);
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.ip--long {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.identity .button--quiet {
  background: var(--dark-ink);
  color: var(--dark);
}

.identity .button--quiet:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.identity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.identity-list div {
  min-width: 0;
  padding: 13px 14px;
  background: var(--dark-soft);
}

.identity-list dt {
  margin: 0 0 5px;
  color: var(--dark-muted);
  font-size: 11px;
  line-height: 1.3;
}

.identity-list dd {
  margin: 0;
  color: var(--dark-ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.card-note {
  margin: 22px 0 0;
  color: var(--dark-muted);
  font-size: 11px;
  line-height: 1.55;
}

.dns .card-note {
  color: var(--muted);
}

.dns-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.query-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.query-row .field--compact {
  width: min(100%, 160px);
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.dns .status {
  margin-top: 22px;
  margin-bottom: 10px;
}

.dns-results {
  display: grid;
  gap: 6px;
  min-height: 72px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dns-empty {
  padding: 18px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dns-answer {
  display: grid;
  grid-template-columns: 52px 62px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper-soft);
}

.answer-type {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.answer-ttl {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.answer-data {
  color: var(--ink);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.dns-foot {
  margin-top: 12px;
}

.dns .link-button {
  color: var(--muted);
}

.dns .link-button:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .net-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .net-grid {
    margin-top: 38px;
  }

  .identity,
  .dns {
    padding: 22px;
  }

  .identity-list {
    grid-template-columns: 1fr;
  }

  .ip {
    font-size: 26px;
    line-height: 1.05;
  }

  .ip--long {
    font-size: 23px;
  }

  .query-row {
    align-items: stretch;
    flex-direction: column;
  }

  .query-row .field--compact {
    width: 100%;
  }

  .query-row .button {
    width: 100%;
  }

  .dns-answer {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 10px;
  }

  .answer-data {
    grid-column: 1 / -1;
    padding-top: 4px;
    font-size: 11px;
  }
}
