/* ---------- Base ---------- */

:root {
  --bg: #0b0e14;
  --surface: #131826;
  --surface-hover: #181f31;
  --border: #232b40;
  --text: #e8ebf2;
  --text-dim: #9aa3b5;
  --accent: #f5b942;
  --accent-ink: #0b0e14;
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background:
    radial-gradient(1100px 500px at 50% -10%, #1a2138 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 860px;
}

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.monogram {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: bold;
  border-radius: 14px;
}

.header h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.tagline .domain {
  color: var(--accent);
}

/* ---------- Intro ---------- */

.intro {
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 32px;
}

/* ---------- Button grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease,
    background 0.18s ease, box-shadow 0.18s ease;
}

/* Placeholder state (no data-live="true" yet) */
.card:not(.is-live) {
  border-style: dashed;
  cursor: default;
}

.card:not(.is-live) h2 {
  color: var(--text-dim);
}

/* Live state — applied by script.js when data-live="true" */
.card.is-live:hover,
.card.is-live:focus-visible {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  flex-grow: 1;
}

.card-domain {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.card.is-live .card-domain {
  color: var(--accent);
}

.status {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(154, 163, 181, 0.15);
  color: var(--text-dim);
  margin-bottom: 8px;
}

.card.is-live .status {
  background: rgba(245, 185, 66, 0.15);
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact:hover,
.contact:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  body {
    padding: 32px 16px;
  }

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