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

:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #c9a66b;
    --green: #4ade80;
    --red: #f87171;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--accent);
}

h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* Hero — couple photo */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-photo {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bio cards */
.bios {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.bio-card h2 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.bio-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.bio-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Pets */
.pets {
    text-align: center;
    margin-bottom: 3rem;
}

.pets > h2 {
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.pet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.pet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.pet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pet-card h3 {
    font-weight: 500;
    font-size: 1rem;
    margin-top: 0.75rem;
    color: var(--text);
}

.pet-type {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Status section */
.status-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.status-section > h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1rem;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.status-tile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.up { background: var(--green); }
.status-dot.down { background: var(--red); }

.status-name {
    font-size: 0.9rem;
    flex: 1;
}

.status-uptime {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Clickable cards */
.clickable {
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.clickable:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Collage overlay */
.collage-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.collage-modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.collage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.collage-header h2 {
    color: var(--accent);
    font-size: 1.5rem;
}

.collage-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

.collage-close:hover {
    color: var(--text);
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.collage-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
    .bios { grid-template-columns: 1fr; }
    .pet-cards { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr; }
    header h1 { font-size: 2rem; }
}

@media (min-width: 641px) and (max-width: 800px) {
    .bios { grid-template-columns: 1fr 1fr; }
}
