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

:root {
    --bg:      #f2f5fa;
    --surface: #ffffff;
    --border:  rgba(0,0,0,0.08);
    --text-1:  #1a2535;
    --text-2:  #4f627a;
    --text-3:  #8fa3b8;
    --heat:    #dc2626;
    --cold:    #2563eb;
    --rain:    #0284c7;
    --wind:    #7c3aed;
    --accent:  #5b21b6;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    min-height: 100vh;
    line-height: 1.6;
}

/* Nav */
.site-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 0;
}
.nav-logo {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-1);
    text-decoration: none;
}
.nav-logo em { font-style: italic; color: var(--accent); font-weight: 400; }
.nav-sep { margin: 0 12px; color: var(--border); }
.nav-crumb { font-size: 13px; color: var(--text-3); }

/* Page header */
.page-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 48px 32px 40px;
}
.page-header-inner { max-width: 900px; margin: 0 auto; }

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.15;
    margin-bottom: 16px;
}
h1 em { font-style: italic; font-weight: 400; color: var(--accent); }

.lead {
    font-size: 16px;
    color: var(--text-2);
    max-width: 680px;
    line-height: 1.7;
}

/* Breadcrumb nav between pages */
.records-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    height: 44px;
}
.records-nav::-webkit-scrollbar { display: none; }
.records-nav-link {
    font-size: 12px;
    color: var(--text-3);
    text-decoration: none;
    white-space: nowrap;
    padding: 0 10px;
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.records-nav-link:hover { color: var(--text-2); }
.records-nav-link.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* Content */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

/* Record sections */
.record-section { margin-bottom: 56px; }

h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.record-section--heat h2  { color: var(--heat);  border-color: var(--heat); }
.record-section--cold h2  { color: var(--cold);  border-color: var(--cold); }
.record-section--rain h2  { color: var(--rain);  border-color: var(--rain); }
.record-section--wind h2  { color: var(--wind);  border-color: var(--wind); }
.record-section--other h2 { color: var(--text-2); }

/* Record cards */
.record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}
.record-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.record-card-accent { height: 4px; }
.record-section--heat  .record-card-accent { background: linear-gradient(90deg, #dc2626, #f97316); }
.record-section--cold  .record-card-accent { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.record-section--rain  .record-card-accent { background: linear-gradient(90deg, #0284c7, #22d3ee); }
.record-section--wind  .record-card-accent { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.record-section--other .record-card-accent { background: linear-gradient(90deg, #64748b, #94a3b8); }

.record-card-body { padding: 20px 22px 22px; }
.record-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 6px;
}
.record-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}
.record-section--heat  .record-value { color: var(--heat); }
.record-section--cold  .record-value { color: var(--cold); }
.record-section--rain  .record-value { color: var(--rain); }
.record-section--wind  .record-value { color: var(--wind); }
.record-section--other .record-value { color: var(--text-2); }

.record-alt {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 14px;
}
.record-location { font-size: 15px; font-weight: 500; color: var(--text-1); margin-bottom: 2px; }
.record-meta { font-size: 13px; color: var(--text-2); }
.record-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* Prose box */
.prose-section {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 28px 28px 32px;
    margin-bottom: 56px;
}
.prose-section h3 { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; }
.prose-section p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 10px; }
.prose-section p:last-child { margin-bottom: 0; }
.prose-section a { color: var(--accent); text-decoration: none; font-weight: 500; }
.prose-section a:hover { text-decoration: underline; }

/* Guide article styles */
.article-section { margin-bottom: 48px; }
.article-section h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: var(--text-1);
    border: none;
    letter-spacing: normal;
    text-transform: none;
    padding: 0;
    margin-bottom: 12px;
}
.article-section p { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 12px; }
.article-section p:last-child { margin-bottom: 0; }

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}
.stat-chip {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
}
.stat-chip strong { display: block; font-size: 18px; color: var(--heat); margin-bottom: 2px; }
.stat-chip.cold strong { color: var(--cold); }
.stat-chip.rain strong { color: var(--rain); }
.stat-chip.wind strong { color: var(--wind); }

/* Footer */
.page-footer {
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-3);
}
.footer-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.footer-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .page-header  { padding: 32px 20px 28px; }
    .content      { padding: 32px 20px 60px; }
    .record-grid  { grid-template-columns: 1fr; }
    .site-nav     { padding: 0 20px; }
    .records-nav  { padding: 0 20px; }
    .page-footer  { padding: 20px; }
}
