/* ============================================================
   AEVUM — shared core stylesheet
   Loaded on index / checkout / thanks / international.
   Section order matters for the cascade: tokens first, then the
   global focus standard, then shared components, then dark overrides.
   ============================================================ */

/* 1. FONTS */
@font-face {
		    font-family: 'Albert Sans';
		    font-style: normal;
		    font-weight: 400;
		    font-display: swap;
		    src: url('/fonts/albert-sans-v4-latin-regular.woff2') format('woff2');
		}
@font-face {
		    font-family: 'Albert Sans';
		    font-style: normal;
		    font-weight: 900;
		    font-display: swap;
		    src: url('/fonts/albert-sans-v4-latin-900.woff2') format('woff2');
		}

/* 2. DESIGN TOKENS
   Canonical accent is #9e7e4d (light + dark). The data-theme variants are
   applied by the inline pre-paint theme script in each page's <head>. */
:root {
		    /* Light mode (default) */
		    --bg-color: #faf9f5;
		    --card-bg: #ffffff;
		    --accent-color: #9e7e4d;
		    --text-main: #141311;
		    --text-muted: #57544e;
		    --border-color: #dcd9d0;
		    --font-sans: 'Albert Sans', system-ui, -apple-system, sans-serif;
		    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		    --safe-top: env(safe-area-inset-top, 0px);
		    --safe-bottom: env(safe-area-inset-bottom, 0px);
		}
:root[data-theme="light"] {
		    --bg-color: #faf9f5;
		    --card-bg: #ffffff;
		    --accent-color: #9e7e4d;
		    --text-main: #141311;
		    --text-muted: #57544e;
		    --border-color: #dcd9d0;
		}
:root[data-theme="dark"] {
		    --bg-color: #141311;
		    --card-bg: #1a1917;
		    --accent-color: #9e7e4d;
		    --text-main: #e8e6e1;
		    --text-muted: #a8a59e;
		    --border-color: #2c2a25;
		    --font-sans: 'Albert Sans', system-ui, -apple-system, sans-serif; /* redundant but safe */
		}

/* 3. ACCESSIBILITY — focus-visible standard
   A soft glow ring on every focusable element; interactive controls get a
   wider outline-offset so the ring sits clear of their edge. */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(230, 203, 171, 0.25);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline-offset: 4px;
}

/* 4. SHARED COMPONENTS */
.footer-links {
		    display: flex;
		    justify-content: center;
		    gap: 4rem;
		    margin-bottom: 2.5rem;
		    flex-wrap: wrap;
		}
.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    text-decoration: none;
    color: var(--text-main);
}
.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.logo-vector {
    width: 32px;
    height: 32px;
}
.nav-link:hover, .nav-link.active {
		    color: var(--accent-color);
		}

/* 4b. FOOTER — one consistent footer on every page.
   Dark-mode variants live in the [data-theme="dark"] block below. */
.site-footer {
    background: #f2efea;
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto; /* pins to bottom on flex-body layouts; no-op elsewhere */
}
.footer-link {
    color: var(--text-muted);
    text-decoration: underline; /* EAA: links distinguishable without colour alone */
    text-underline-offset: 4px;
    font-size: 0.85rem;
    min-height: 44px; /* WCAG 2.5.8 touch target */
    display: inline-flex;
    align-items: center;
}
.footer-link:hover {
    color: var(--accent-color);
}
.copyright {
    font-size: 0.8rem;
    color: #8c887e;
}

/* Light-DOM custom element wrapping the shared copyright block. Display: none of
   a box — the .copyright inside keeps rendering exactly as before (no layout or
   style changes; the wrapper contributes nothing until/unless JS upgrades it). */
aevum-copyright {
    display: contents;
}

/* 5. DARK-MODE COMPONENT OVERRIDES (applied on [data-theme=dark]) */
[data-theme="dark"] {
		    /* Header */
		    .site-header {
		        background: rgba(20, 19, 17, 0.95);
		        border-bottom-color: var(--border-color);
		    }

		    /* Hero SVG pattern */
		    #hero {
		        background: linear-gradient(rgba(20, 19, 17, 0.85), rgba(20, 19, 17, 0.95)), 
		                    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/1999/xhtml" width="60" height="60" viewBox="0 0 60 60" aria-hidden="true"><rect width="60" height="60" fill="%232c2a25" /><circle cx="30" cy="30" r="1" fill="%234a4843"/></svg>');
		    }

		    /* Footer */
		    .site-footer {
		        background: #12110f;
		        border-top-color: var(--border-color);
		    }
		    .copyright {
		        color: #75726a;
		    }

		    /* SVG accents */
		    .brand-logo-container:hover .logo-vector,
		    .brand-logo-container:hover .brand-text {
		        stroke: var(--accent-color);
		    }
		}
