/* garygarot.website/learn/ - shared styles for classroom activities.
   Same palette and type as the homepage (home/styles.css), trimmed to what
   an activity page needs. Each activity keeps its own specific styles inline.
   Bump the ?v= on the <link> in every activity page when you edit this. */

:root {
    --bg:            #07090d;
    --bg-2:          #0b0e14;
    --surface:       #11151d;
    --surface-2:     #161b25;
    --line:          #1f2632;
    --line-bright:   #2c3545;

    --text:          #eef1f6;
    --text-2:        #a7b0c0;
    --text-3:        #6c7689;

    --accent:        #22d3ee;
    --accent-2:      #a78bfa;
    --accent-3:      #fb7185;
    --good:          #34d399;
    --accent-ink:    #04121a;
    --accent-dim:    rgba(34, 211, 238, 0.12);
    --accent-line:   rgba(34, 211, 238, 0.35);

    --display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

    --wrap: 1000px;
    --radius: 14px;
    --ease: cubic-bezier(0.22, 0.72, 0.28, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(60% 50% at 15% 0%, rgba(34, 211, 238, 0.08), transparent 70%),
        radial-gradient(50% 40% at 100% 10%, rgba(167, 139, 250, 0.07), transparent 70%),
        var(--bg);
    color: var(--text);
    font-family: var(--display);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
}

/* ---------------------------------------------------------------- header */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}
.wordmark:hover { text-decoration: none; }

.wordmark-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--line-bright);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
}

.crumb {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text-3);
}
.crumb a { color: var(--text-2); }

/* ----------------------------------------------------------- page heading */

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
}

.lede {
    color: var(--text-2);
    max-width: 60ch;
}

/* --------------------------------------------------------------- shared UI */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-bright);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn:hover { border-color: var(--accent-line); }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.btn-primary:hover { background: #4fdcf1; }

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
    padding: 22px;
}

.footer {
    padding: 48px 0 36px;
    font-size: 14px;
    color: var(--text-3);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
