:root {
    --brand: #b40f2f;
    --brand-dark: #8b0c24;
    --ink: #1a1f2e;
    --text: #2c3038;
    --muted: #5d6470;
    --bg: #faf8f5;
    --surface: #ffffff;
    --warm: #f4ede0;
    --line: #e7e2d8;
    --teal: #3a5d61;
    --shadow: 0 10px 28px rgba(20, 25, 40, 0.08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 650; }
.nav a { color: var(--text); }
.nav .portal-link { color: var(--brand); }
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 32px; align-items: center; }
.kicker { color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 10px; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { font-size: 1.35rem; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 760px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 6px; font-weight: 800; border: 1px solid var(--line); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { color: #fff; background: var(--brand-dark); text-decoration: none; }
.btn-secondary { color: var(--ink); background: var(--surface); }
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.panel { padding: 26px; }
.section { padding: 44px 0; }
.section-warm { background: var(--warm); }
.two-col { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 22px; box-shadow: none; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .92rem; }
.meta span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: #fff; }
.timetable { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.day { min-width: 170px; background: #f8f6f1; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.day h3 { font-family: Inter, sans-serif; font-size: 1rem; border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.activity { background: #fff; border-left: 4px solid var(--brand); border-radius: 6px; padding: 12px; margin: 10px 0; }
.activity-time { font-weight: 800; color: var(--brand); font-size: .88rem; }
.activity-name { font-weight: 750; color: var(--ink); }
.site-footer { margin-top: 40px; padding: 40px 0; background: var(--ink); color: #f8fafc; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.small { font-size: .92rem; color: var(--muted); }
.resource-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 12px;
    margin-bottom: 22px;
}
.resource-filters input,
.resource-filters select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    font: inherit;
    background: var(--surface);
    color: var(--text);
}
.resource-grid .btn { margin-top: 8px; }
.resource-card[hidden] { display: none; }
.resource-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
    text-transform: uppercase;
}
.manual-content {
    max-width: 860px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 48px);
}
.manual-content h2 {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.manual-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.manual-content h3 { margin-top: 26px; }
.manual-content ul { padding-left: 22px; }
.journal-page .journal-notice { margin-bottom: 24px; border-left: 5px solid var(--brand); }
.journal-page .journal-grid { margin-top: 28px; }
.journal-form { margin: 28px 0; }
.journal-form label { display: block; margin: 18px 0 8px; font-weight: 800; color: var(--ink); }
.journal-form input,
.journal-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
}
.journal-form textarea { min-height: 180px; resize: vertical; }
.journal-guidance { margin: 24px 0; }
.journal-guidance li { margin: 8px 0; }
.journal-entry-row { padding: 12px 0; border-top: 1px solid var(--line); }
.journal-entry-row:first-child { border-top: 0; }
@media (max-width: 860px) {
    .header-inner, .nav { align-items: flex-start; flex-direction: column; }
    .hero-grid, .two-col, .grid, .grid-two, .footer-grid, .resource-filters { grid-template-columns: 1fr; }
    .hero { padding-top: 44px; }
    .container { width: min(100% - 28px, 1120px); }
}
