/* ==========================================================================
   FIDDT Public Site Chrome
   --------------------------------------------------------------------------
   One source of truth for the header, navigation and footer shared by every
   public page (landing, courses, course player, donation flow and the
   MainLayoutPage-backed pages).

   Layout contract:
     header height 64px desktop / 56px <= 768px / 48px <= 480px
     active nav item: .is-active (blue, semibold)
     all navigation items open in the same tab
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
.site-header {
    background: #111827;
    color: #ffffff;
    padding: 0 2rem;
    border-bottom: 1px solid #1f2937;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header-inner {
    max-width: var(--site-container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.site-header .logo:hover {
    color: #93bbfc;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: #60a5fa;
}

.desktop-nav a.is-active {
    color: #60a5fa;
    font-weight: 600;
}

.mobile-menu-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.2s;
}

.mobile-menu {
    display: none;
    padding: 0.5rem 0 1rem 0;
    border-top: 1px solid #1f2937;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: #60a5fa;
}

.mobile-menu a.is-active {
    color: #60a5fa;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #111827;
    color: #d1d5db;
    flex-shrink: 0;
    line-height: 1.5;
}

.site-footer-inner {
    max-width: var(--site-container);
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h3 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid ul li {
    margin-bottom: 0.5rem;
}

.footer-grid a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-grid a:hover {
    color: #60a5fa;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social a {
    color: #d1d5db;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #60a5fa;
}

.footer-social svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #60a5fa;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 1rem;
    }

    .site-header-inner {
        height: 56px;
    }

    .site-header .logo {
        font-size: 1.2rem;
    }

    .site-footer-inner {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0 0.75rem;
    }

    .site-header-inner {
        height: 48px;
    }

    .site-header .logo {
        font-size: 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Type, colour and component scale
   --------------------------------------------------------------------------
   Brand tokens used by every public page. Components below are the only
   sanctioned button/card/title treatments for user-facing content.
   ========================================================================== */
:root {
    --site-bg: #f8fafc;
    --site-surface: #ffffff;
    --site-ink: #0b1b2f;
    --site-muted: #5e6f8d;
    --site-body: #4b5563;
    --site-hairline: #eef2f8;
    --site-border: #e5e7eb;
    --site-primary: #2563eb;
    --site-primary-hover: #1d4ed8;
    --site-chrome: #111827;
    --site-accent: #60a5fa;
    --site-radius-sm: 8px;
    --site-radius: 10px;
    --site-radius-lg: 16px;
    --site-shadow-sm: 0 1px 2px rgba(11, 27, 47, 0.06);
    --site-shadow: 0 2px 12px rgba(11, 27, 47, 0.06);
    --site-container: 1200px;
    --site-reading: 896px;
}

body {
    background: var(--site-bg);
    color: var(--site-ink);
}

/* --- Page titles --- */
.page-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.85rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--site-ink);
}

.page-subtitle {
    margin: -0.75rem 0 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--site-muted);
}

/* --- Containers --- */
.container-page {
    width: 100%;
    max-width: var(--site-container);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-reading {
    width: 100%;
    max-width: var(--site-reading);
    margin: 0 auto;
}

/* --- Surfaces --- */
.site-page {
    background: var(--site-bg);
}

.card {
    background: var(--site-surface);
    border: 1px solid var(--site-hairline);
    border-radius: var(--site-radius-lg);
    box-shadow: var(--site-shadow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--site-radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-primary {
    background: var(--site-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--site-primary-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background: var(--site-chrome);
    color: #ffffff;
}

.btn-secondary:hover {
    background: #1f2937;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
}

/* --- Long-form content (privacy, terms, our work, about) --- */
.content-heading {
    margin: 2rem 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--site-ink);
}

.policy-section h3,
.terms-section h3,
.work-section h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--site-ink);
}

.policy-section:first-child h3,
.terms-section:first-child h3,
.work-section:first-child h3 {
    margin-top: 0;
}

.policy-section p,
.terms-section p,
.work-section p,
.policy-section li,
.terms-section li,
.work-section li {
    margin-bottom: 1rem;
    color: var(--site-body);
    line-height: 1.75;
}

.policy-section ul,
.terms-section ul,
.work-section ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.policy-section li,
.terms-section li,
.work-section li {
    margin-bottom: 0.4rem;
}

.policy-section strong,
.terms-section strong,
.work-section strong {
    color: var(--site-ink);
    font-weight: 600;
}

.work-section h4 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--site-ink);
}

.focus-area-card {
    padding: 1.25rem;
    border: 1px solid var(--site-hairline);
    border-radius: var(--site-radius);
    background: var(--site-bg);
}

.focus-area-card h4,
.focus-area-card h3 {
    margin-top: 0;
}

/* --- Article body --- */
.prose-fiddt {
    color: #374151;
    line-height: 1.8;
}

.prose-fiddt h2,
.prose-fiddt h3 {
    margin: 2rem 0 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--site-ink);
}

.prose-fiddt h1 {
    margin: 2.25rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--site-ink);
}

.prose-fiddt h2 {
    font-size: 1.5rem;
}

.prose-fiddt h3 {
    font-size: 1.2rem;
}

.prose-fiddt p {
    margin-bottom: 1.25rem;
}

.prose-fiddt ul {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.prose-fiddt ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style: decimal;
}

.prose-fiddt li {
    margin-bottom: 0.5rem;
}

.prose-fiddt blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid var(--site-primary);
    background: var(--site-bg);
    color: var(--site-body);
}

.prose-fiddt blockquote p:last-child {
    margin-bottom: 0;
}

.prose-fiddt code {
    padding: 0.15em 0.4em;
    border-radius: 6px;
    background: #eef2f8;
    font-size: 0.9em;
}

.prose-fiddt pre {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--site-radius);
    background: var(--site-ink);
    color: #e5edf8;
    overflow-x: auto;
}

.prose-fiddt pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
}

.prose-fiddt a {
    color: var(--site-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Media / motion --- */
.ceo-avatar {
    width: 12rem;
    max-width: 70%;
}

@media (min-width: 768px) {
    .ceo-avatar {
        width: 16rem;
    }
}

.ceo-avatar img {
    display: block;
    width: 100%;
    border-radius: 9999px;
}

.ceo-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    background: var(--site-ink);
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ceo-initials[hidden],
.ceo-avatar img[hidden] {
    display: none;
}

.ceo-picture {
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

@keyframes siteSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.slide-up {
    animation: siteSlideUp 0.45s ease-out both;
}
