/* Cakebread Science — Main Index Page — Lok Style */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=Barlow:wght@400;600&display=swap');

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

body {
    font-family: 'Barlow', 'Arial Narrow', Arial, sans-serif;
    background: #eeeae0;
    min-height: 100vh;
}

/* ── Stripe bands ── */
.top-stripes, .mid-stripes, .bottom-stripes { display: flex; flex-direction: column; }

.top-stripes .s1 { height: 4px;  background: #005e22; }
.top-stripes .s2 { height: 2px;  background: #111; }
.top-stripes .s3 { height: 16px; background: #005e22; }
.top-stripes .s4 { height: 3px;  background: #111; }
.top-stripes .s5 { height: 2px;  background: #005e22; }

.mid-stripes .s1 { height: 3px; background: #005e22; }
.mid-stripes .s2 { height: 8px; background: #eeeae0; }
.mid-stripes .s3 { height: 2px; background: #111; }

.bottom-stripes .s1 { height: 3px; background: #111; }
.bottom-stripes .s2 { height: 2px; background: #005e22; }
.bottom-stripes .s3 { height: 9px; background: #111; }
.bottom-stripes .s4 { height: 4px; background: #005e22; }

/* ── Site header ── */
.site-header {
    background: #111;
    padding: 28px 40px 24px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.site-header h1 {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #eeeae0;
    line-height: 1;
}

.site-header h1 span { color: #00a03a; }

.site-header .sub {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555;
    font-weight: 400;
}

/* ── Layout ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .site-header { padding: 20px 20px 18px; }
    .site-header h1 { font-size: 38px; }
    .container { padding: 20px 16px 40px; }
}

/* ── Cards ── */
.hero-card {
    background: white;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 3px 3px 0 #111;
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #005e22;
}

/* Card stripe bar */
.card-stripe { display: flex; height: 8px; }
.card-stripe .cs1 { flex: 4; background: #005e22; }
.card-stripe .cs2 { flex: 1; background: #111; }
.card-stripe .cs3 { flex: 6; background: #005e22; }
.card-stripe .cs4 { flex: 2; background: #111; }

.card-inner { padding: 20px 22px 22px; }

/* ── Card content ── */
.hero-icon { font-size: 28px; margin-bottom: 6px; }

.hero-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    margin-bottom: 16px;
}

.spec-link, .tool-link {
    display: block;
    padding: 9px 12px 9px 16px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    border-left: 4px solid #005e22;
    background: #f2f0e8;
    transition: all 0.15s ease;
}

.spec-link:hover, .tool-link:hover {
    background: #005e22;
    color: white;
    border-left-color: #111;
}

.card-summary { margin-bottom: 14px; }

.summary-item {
    padding: 7px 12px 7px 16px;
    border-left: 4px solid #ccc;
    margin-bottom: 5px;
    font-size: 13px;
    color: #333;
    background: #f2f0e8;
}
.summary-item.maths    { border-left-color: #2255cc; }
.summary-item.physics  { border-left-color: #d08000; }
.summary-item.chemistry{ border-left-color: #c8001e; }
.summary-item.biology  { border-left-color: #005e22; }
.summary-item.cross    { border-left-color: #555; }

.card-cta {
    display: block;
    text-align: center;
    padding: 10px;
    background: #111;
    color: #eeeae0;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.hero-card:hover .card-cta { background: #005e22; }

.wip-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    background: #c8001e;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.new-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    background: #007a3d;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.updated-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    background: #b06000;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-desc {
    margin: 4px 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-card--compact .card-inner {
    padding: 12px 22px 14px;
}

.hero-card--compact .hero-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.hero-card--compact .hero-title {
    margin-bottom: 6px;
}

footer {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
}
