:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101512;
  color: #e5eee8;
  line-height: 1.6;
}

* { box-sizing: border-box; }
::selection { background: #b5ccb9; color: #101512; }
body { margin: 0; }
main { width: min(1060px, 100%); min-height: 100svh; margin: auto; padding: 40px 48px 32px; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #b5ccb9; outline-offset: 6px; border-radius: 2px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 16px; font-weight: 600; letter-spacing: -.4px; white-space: nowrap; }
.wordmark span { color: #8c9d92; font-weight: 400; }
.endpoints { display: flex; align-items: center; gap: 24px; color: #a0afa5; font-size: 12px; }
.endpoints a { padding-block: 10px; }
.endpoints a:hover { color: #e5eee8; }
.result { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 112px 0 104px; }
h1 { margin: 0 0 24px; color: #a0b0a5; font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.address { width: 100%; margin: 0; font: 500 clamp(30px, 7.4vw, 84px)/1.15 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; letter-spacing: -.055em; user-select: all; }
.address.v6 { font-size: clamp(23px, 3.5vw, 42px); line-height: 1.45; letter-spacing: -.045em; }
.connection { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: #8c9d92; font-size: 12px; }
.connection span + span::before { content: "·"; margin-right: 12px; color: #53665a; }
.country { color: #b5ccb9; }
.refresh { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 40px; padding: 8px 14px; border: 1px solid #35453a; border-radius: 6px; color: #b3c3b8; font-size: 12px; }
.refresh:hover { background: #1b271f; border-color: #526957; color: #e5eee8; }
.refresh svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid #29372e; padding-top: 24px; color: #8c9d92; }
.attribution { font-size: 11px; white-space: nowrap; }
.attribution:hover { color: #e5eee8; }
code { font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.prompt { margin-right: 8px; color: #b5ccb9; }

@media (max-width: 600px) {
  main { padding: 24px; }
  header { gap: 16px; }
  .wordmark { font-size: 14px; }
  .endpoints { gap: 18px; }
  .result { padding: 84px 0 72px; }
  h1 { margin-bottom: 20px; }
  .address { font-size: clamp(30px, 10.2vw, 52px); }
  .refresh { min-height: 44px; margin-top: 32px; }
  footer { padding-top: 20px; }
}
