/* ==========================================================================
   EDU LINKED — BASE.CSS
   Reset · Normalisation · Typography · Accessibility
   ========================================================================== */

/* -------------------------------------------------------
   CSS RESET / NORMALISATION
   ------------------------------------------------------- */

html {
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
    text-rendering: optimizeLegibility;
}

/* Remove default spacing */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote {
    margin: 0;
}

/* Images */
img, picture, video, canvas {
    display: block;
    max-width: 100%;
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: underline;
    transition: color .2s ease;
}

a:hover,
a:focus {
    color: var(--color-link-hover);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-heading);
    line-height: 1.25;
    font-weight: var(--weight-semibold);
}

/* Strong / Emphasis */
strong {
    font-weight: var(--weight-bold);
}

/* Lists */
ul, ol {
    padding-left: 1.25rem;
}

/* Forms (baseline only) */
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}

/* -------------------------------------------------------
   TYPOGRAPHY HELPERS
   Extracted from theme(1).css
   ------------------------------------------------------- */

/* Font sizes */
.fs-26 { font-size: 1.625rem; }  /*  */
.fs-12 { font-size: 0.75rem; }
.fs-11 { font-size: 0.6875rem; }
.fs-95 { font-size: 0.95rem; }
.fs-90 { font-size: 0.9rem; }
.fs-80 { font-size: 0.8rem; }

/* Line-heights */
.lh-15 { line-height: 1.5; }     /*  */
.lh-16 { line-height: 1.6; }
.lh-17 { line-height: 1.7; }
.lh-18 { line-height: 1.8; }

/* -------------------------------------------------------
   BODY MODES (from theme file)
   ------------------------------------------------------- */

body.ink-depth-base {              /*  */
    background: radial-gradient(circle at top left, #3b0764 0%, #020617 48%, #020617 100%);
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* -------------------------------------------------------
   ACCESSIBILITY — SKIP LINK
   From theme file
   ------------------------------------------------------- */

.skip-link {                          /*  */
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3b82f6;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 99999;
    transition: top 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.85rem;
}

.skip-link:focus {                    /*  */
    top: 10px;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.5);
}

/* -------------------------------------------------------
   ACCESSIBILITY — REDUCED MOTION BASELINE
   (Component specifics live in components.css)
   ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {    /*  */
    * {
        animation-duration: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------
   ACCESSIBILITY — HIGH CONTRAST BASELINE
   (Component-level specifics move to components.accessibility.css)
   ------------------------------------------------------- */

@media (prefers-contrast: more) {        /*  */
    :root {
        --color-border: #000;
        --color-text: #000;
        --color-bg: #fff;
    }

    a {
        text-decoration-thickness: 2px;
    }
}
