:root {
    --ct-bg: #f6f7f9;
    --ct-surface: #ffffff;
    --ct-text: #1f2328;
    --ct-muted: #5b636e;
    --ct-border: #e3e6ea;
    --ct-primary: #2563eb;
}

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

html, body { margin: 0; padding: 0; }

body {
    background: var(--ct-bg);
    color: var(--ct-text);
    font-family: "Segoe UI", Aptos, Calibri, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ct-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.ct-header { background: #1f2328; color: #fff; }
.ct-header-inner { display: flex; align-items: center; min-height: 64px; }
.ct-brand { color: #fff; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: .3px; }

.ct-main { flex: 1; padding-bottom: 48px; }

.ct-hero { background: linear-gradient(135deg, #1f2328 0%, #2b3440 100%); color: #fff; padding: 56px 0 64px; }
.ct-hero h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
.ct-hero p { margin: 0; color: #c9d1d9; font-size: 18px; }

.ct-section-title { margin: 40px 0 20px; font-size: 24px; }

.ct-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.ct-site-card {
    --ct-accent: var(--ct-primary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-top: 5px solid var(--ct-accent);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ct-site-card:hover, .ct-site-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.ct-site-name { font-size: 22px; font-weight: 700; }
.ct-site-domain { color: var(--ct-muted); font-size: 14px; }
.ct-site-logo { display: flex; align-items: center; height: 72px; margin-top: 12px; }
.ct-site-logo img { display: block; max-width: 100%; max-height: 72px; width: auto; height: auto; }
.ct-site-description { margin-top: 8px; flex: 1; }
.ct-site-link { margin-top: 12px; font-weight: 600; color: var(--ct-primary); }

.ct-error { padding-top: 48px; }

.ct-footer { border-top: 1px solid var(--ct-border); background: var(--ct-surface); color: var(--ct-muted); font-size: 14px; padding: 20px 0; }
