:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #0c1a17;
  --panel-2: #10231e;
  --line: #214238;
  --text: #edf8f2;
  --muted: #9eb9ae;
  --green: #7cf5b5;
  --amber: #ffc66d;
  --red: #ff8b83;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(27, 99, 72, 0.2), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: var(--green); }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--text); color: var(--bg); padding: .6rem; }
.site-header, main, footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { color: var(--text); text-decoration: none; font: 700 1.1rem var(--mono); letter-spacing: -.04em; }
.prompt { color: var(--green); }
.availability { color: var(--muted); font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.availability span { display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; background: var(--green); border-radius: 50%; box-shadow: 0 0 1rem var(--green); }
.hero { padding: clamp(4.5rem, 10vw, 8.5rem) 0 4rem; max-width: 900px; }
.eyebrow, .step, .limit { color: var(--green); font: 700 .72rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: .7rem 0 1.25rem; max-width: 780px; font-size: clamp(3rem, 8vw, 6.7rem); line-height: .93; letter-spacing: -.075em; }
.lede { color: var(--muted); max-width: 680px; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.lookup-panel, .results { border: 1px solid var(--line); background: rgba(12, 26, 23, .86); box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.lookup-panel { padding: clamp(1.25rem, 4vw, 2.5rem); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.panel-heading h2 { margin: .2rem 0 0; font-size: 1.6rem; letter-spacing: -.03em; }
.step { margin: 0; }
.limit { padding: .35rem .55rem; border: 1px solid var(--line); color: var(--muted); }
label { display: block; margin-bottom: .6rem; color: var(--muted); font-size: .9rem; }
textarea {
  width: 100%;
  resize: vertical;
  min-height: 118px;
  padding: 1rem;
  border: 1px solid #315b4e;
  border-radius: 0;
  outline: none;
  background: #07110f;
  color: var(--text);
  font: 1rem/1.6 var(--mono);
}
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(124, 245, 181, .13); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
button { border-radius: 0; cursor: pointer; font: 700 .82rem var(--mono); letter-spacing: .02em; }
button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.primary { display: flex; justify-content: space-between; gap: 3rem; min-width: 240px; padding: .9rem 1rem; border: 1px solid var(--green); background: var(--green); color: #06100d; }
.primary:hover { background: #a1ffcc; }
.primary:disabled { cursor: wait; opacity: .55; }
.secondary { padding: .9rem 1rem; border: 1px solid var(--line); background: transparent; color: var(--text); }
.secondary:hover { border-color: var(--green); color: var(--green); }
.status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--muted); font: .82rem var(--mono); }
.status.ok, .ok, .aws-yes { color: var(--green); }
.status.warning, .warning { color: var(--amber); }
.status.error { color: var(--red); }
.status.busy::before { content: "◌"; display: inline-block; margin-right: .5rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.results { margin-top: 2rem; scroll-margin-top: 1rem; }
.results-heading { margin: 0; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.table-shell { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 1rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #091512; font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
td { max-width: 260px; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: .77rem; }
.domain { font-weight: 700; }
.subtle { color: var(--muted); }
.warnings { margin: 1rem 1.5rem 0; padding: .8rem 1rem; border-left: 3px solid var(--amber); background: rgba(255, 198, 109, .08); color: var(--amber); font-size: .85rem; }
.result-meta { margin: 0; padding: 1rem 1.5rem; color: var(--muted); font: .7rem var(--mono); }
.notes { padding: 7rem 0 5rem; }
.notes > h2 { margin: .3rem 0 2rem; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.05em; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.note-grid article { min-height: 220px; padding: 1.5rem; border-right: 1px solid var(--line); }
.note-grid article:last-child { border-right: 0; }
.note-grid span { color: var(--green); font: .75rem var(--mono); }
.note-grid h3 { margin: 3rem 0 .5rem; }
.note-grid p, footer { color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); font-size: .78rem; }
footer p:first-child { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .availability { display: none; }
  .hero { padding-top: 4.5rem; }
  .note-grid { grid-template-columns: 1fr; }
  .note-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .note-grid article:last-child { border-bottom: 0; }
  .note-grid h3 { margin-top: 1.5rem; }
  footer { flex-direction: column; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
  td { display: grid; grid-template-columns: 8rem 1fr; max-width: none; gap: .7rem; padding: .55rem 0; border: 0; }
  td::before { content: attr(data-label); color: var(--muted); font: 700 .65rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
