* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 2rem 1rem;
}

.wrap {
    max-width: 900px;
    margin: 0 auto;
}

.hero {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: block;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

nav {
    margin-bottom: 2rem;
}

nav a {
    color: #38bdf8;
    text-decoration: none;
    margin-right: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

.timestamp {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

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

.card {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.card .label {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card .value {
    font-size: 2.5rem;
    font-weight: 600;
}

.card .unit {
    font-size: 1.1rem;
    color: #94a3b8;
}

.empty {
    color: #94a3b8;
    padding: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #334155;
}

th {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pager {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}
