:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --accent: #2563eb;
    --border: #e5e7eb;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    color-scheme: light;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, #e0e7ff, transparent 35%), radial-gradient(circle at 80% 10%, #dbeafe, transparent 30%), var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    padding: 32px 20px 48px;
}

.page-header {
    max-width: 960px;
    margin: 0 auto 32px;
    text-align: center;
}

.page-header h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.subtitle a,
.docs-note a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.subtitle a:hover,
.subtitle a:focus-visible,
.docs-note a:hover,
.docs-note a:focus-visible {
    text-decoration: underline;
}

.docs-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.site-count {
    margin: 8px 0 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
    width: min(2000px, 95vw);
    margin: 0 auto;
}

.tile {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.frame-wrap {
    position: relative;
    padding-top: 60%;
    background: #0f172a;
}

.frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0f172a;
}

.tile-footer {
    padding: 14px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.domain-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.domain-link:hover,
.domain-link:focus-visible {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    margin-top: 40px;
    font-size: 16px;
}

@media (min-width: 680px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
