/* ---------------------------
   Domain Parking Page Styles
   ---------------------------
   - Works with the provided index.html
   - Centers content vertically & horizontally
   - Respects user color-scheme (light/dark)
   - Uses system fonts for speed
   - Accessible contrast + responsive sizing
*/

/* 1) CSS Reset / Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Enable dark mode when user's system prefers it */
  color-scheme: light dark;
}

:root {
  /* Light theme tokens */
  --bg: #f7f7f8;
  --text: #0f172a;      /* slate-900 */
  --muted: #475569;     /* slate-600 */
  --card: #ffffff;
  --accent: #2563eb;    /* blue-600 */
  --accent-contrast: #ffffff;
  --ring: rgba(37, 99, 235, 0.25);

  /* Typography scale */
  --step--1: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.5rem, 1.3rem + 1.5vw, 2.25rem);
  --step-2: clamp(2rem, 1.7rem + 2vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;        /* deep slate/ink */
    --text: #e6edf6;
    --muted: #93a1b2;
    --card: #0f172a;
    --accent: #60a5fa;    /* blue-400 */
    --accent-contrast: #0b1220;
    --ring: rgba(96, 165, 250, 0.3);
  }
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 800px at 50% -10%, color-mix(in oklab, var(--accent) 20%, var(--bg)), var(--bg));
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* 2) Layout */
.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.main {
  width: min(820px, 92vw);
  background: var(--card);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.25),
    0 0 0 1px color-mix(in oklab, var(--ring) 70%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  text-align: center;
  animation: float-in 600ms cubic-bezier(.2,.8,.2,1) both;
}

/* 3) Typography */
#domain {
  margin: 0 0 0.25rem 0;
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.15;
  word-break: break-word;
}

.off-localhost {
  margin-top: 0.75rem;
  text-align: center;
}

.off-localhost p {
  margin: 0;
  font-size: var(--step-0);
  color: var(--muted);
}

/* 4) Helpful accents (optional buttons/links if you add later) */
a.button,
button.button {
  display: inline-block;
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  box-shadow: 0 6px 14px -6px var(--ring);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  cursor: pointer;
}

a.button:hover,
button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px var(--ring);
  filter: brightness(1.03);
}

a.button:active,
button.button:active {
  transform: translateY(0);
}

/* 5) Subtle animation */
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 6) Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .main {
    animation: none;
  }

  a.button,
  button.button {
    transition: none;
  }
}

/* 7) Small screens */
@media (max-width: 420px) {
  .main {
    border-radius: 12px;
    padding: 1rem;
  }
}
