/* deployment-basichttp: placeholder and error pages. One file for both looks, light and dark.
   The look comes as a class on <html> (look-orange / look-blue, set by the Caddy template);
   anything else falls back to blue. */

html {
  --bg: #fafafa; --card: #ffffff; --line: #e4e4e7; --tx: #18181b; --mu: #52525b;
  --ac: #1d4ed8; --acl: #2563eb; --acs: #eff6ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 48px rgba(0, 0, 0, .04);
  --ring: none;
  color-scheme: light dark;
}
html.look-orange { --ac: #c2410c; --acl: #ea580c; --acs: #fff7ed; }

@media (prefers-color-scheme: dark) {
  html {
    --bg: #09090b; --card: #18181b; --line: #27272a; --tx: #f4f4f5; --mu: #a1a1aa;
    --ac: #60a5fa; --acl: #3b82f6; --acs: #14203a;
    --shadow: none;
    --ring: inset 0 0 0 1px var(--line);
  }
  html.look-orange { --ac: #fb923c; --acl: #f97316; --acs: #2a1a0e; }
}

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

html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 52px 20px 32px;
  border-top: 4px solid var(--acl);
  background: linear-gradient(var(--acs), var(--bg) 42%) no-repeat;
  color: var(--tx);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  width: 100%; max-width: 45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
}

.hd { display: flex; align-items: center; gap: 14px; }
.ic {
  width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--acs); color: var(--ac);
  box-shadow: var(--ring);
}
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye { font-size: .875rem; line-height: 1.3; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }
.eye.host { font-size: 1rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--mu); overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: .875rem; line-height: 1.4; font-weight: 600; color: var(--ac); background: var(--acs); border-radius: 9999px; padding: 3px 13px; box-shadow: var(--ring); }

h1 { margin: 16px 0 20px; font-weight: 650; letter-spacing: -.02em; }
.dom { font-size: clamp(1.75rem, 8vw, 3.5rem); line-height: 1.1; overflow-wrap: anywhere; }
.code { font-size: clamp(3.75rem, 16vw, 5rem); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--ac); font-variant-numeric: tabular-nums; }

.cols { display: grid; grid-template-columns: 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.lg { display: inline-block; margin-bottom: 8px; padding: 0 6px; font: 600 .75rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mu); border: 1px solid var(--line); border-radius: 5px; }
h2 { margin: 0; font-size: 1.0625rem; line-height: 1.4; font-weight: 600; }
.cols p { margin: 6px 0 0; color: var(--mu); }

.go {
  display: inline-block; margin-top: 24px; padding: 10px 16px;
  font-weight: 600; line-height: 1; color: var(--ac); text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px;
}
.go:hover, .go:focus-visible { border-color: var(--ac); }
.go:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

footer { margin-top: 20px; font-size: .875rem; color: var(--mu); text-align: center; overflow-wrap: anywhere; }

@media (min-width: 40rem) {
  body { justify-content: center; padding: 48px 32px; }
  main { padding: 40px 44px 36px; border-radius: 20px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
