/* AXL shared styles — single source of truth for rules common to all three pages.
   Canonical source: conference.html. Page-specific rules stay in each page's
   inline <style>, which loads after this file and wins on equal specificity. */

:root {
    --hmc-black: #000000;
    --hmc-gold: #FDB913;
    --hmc-white: #FFFFFF;
    --hmc-cool-gray: #5B6770;
    --hmc-blue: #007FA3;
    --hmc-orange: #E57200;
    --hmc-yellow: #FFD100;
    --hmc-brown: #603D20;

    --color-bg: #FAFAFA;
    --color-bg-alt: #F0F0F0;
    --color-primary: var(--hmc-black);
    --color-accent: var(--hmc-gold);
    --color-accent-dark: #D9A000;
    --color-secondary: var(--hmc-blue);
    --color-text: #1A1A1A;
    --color-text-muted: var(--hmc-cool-gray);
    --color-white: var(--hmc-white);

    --font-display: 'Rokkitt', 'Rockwell', 'Courier Bold', serif;

    /* Brand gold is 1.73:1 on white — unusable as text. --accent-text is the
       text-safe amber for light surfaces (5.4:1 on #FFF, 5.2:1 on #FAFAFA);
       it is re-pointed to full gold on dark surfaces below, where gold is
       12.1:1 and the brand colour should be used as-is. */
    --accent-text: #8C6200;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* keep focused/anchored targets clear of the fixed header */
    scroll-padding-top: 6.5rem;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1.0625rem;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

nav .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 48px;
    height: 48px;
    background: var(--hmc-black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-mark::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--hmc-gold);
}

.logo-mark span {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.logo-text strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hmc-gold);
    transition: width 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--hmc-gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.55);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

.btn-primary {
    background: var(--hmc-gold);
    color: var(--hmc-black);
    border: 2px solid var(--hmc-gold);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

.sidebar-nav {
    position: fixed;
    visibility: hidden;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.sidebar-nav.visible {
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s;
    opacity: 1;
    pointer-events: auto;
}

.sidebar-nav-inner {
    position: relative;
}

.sidebar-nav-track {
    position: absolute;
    left: 4px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
    transform: translateX(-50%);
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-nav-item {
    position: relative;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    padding-left: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav-dot {
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.sidebar-nav-link:hover .sidebar-nav-dot {
    background: var(--hmc-cool-gray);
    transform: scale(1.25);
}

.sidebar-nav-link.active .sidebar-nav-dot {
    background: var(--hmc-gold);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(253, 185, 19, 0.2);
}

.sidebar-nav-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hmc-cool-gray);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sidebar-nav-link:hover .sidebar-nav-label {
    color: var(--color-primary);
}

.sidebar-nav-link.active .sidebar-nav-label {
    color: var(--color-primary);
}

footer {
    padding: 48px 0;
    background: var(--hmc-black);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--hmc-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-mark span {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--hmc-black);
}

.footer-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-hmc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-hmc strong {
    color: var(--color-white);
}
/* Content is visible by default. The hidden-then-reveal state is opt-in and is
   only applied when the inline head script confirms JS + IntersectionObserver
   are available and reduced motion is not requested. A broken script therefore
   cannot blank the page. */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-ready .reveal.visible {
    opacity: 1;
    transform: none;
}
/* A keyboard user can tab into a card before its block has revealed. */
.reveal-ready .reveal:focus-within {
    opacity: 1;
    transform: none;
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
}

.nav-links.open li {
    border-top: 1px solid #EEE;
}

.nav-links.open li:first-child {
    border-top: none;
}

.nav-links.open a {
    display: block;
    padding: 14px clamp(24px, 5vw, 80px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 75em) {
.sidebar-nav {
            display: none;
        }
}

@media (max-width: 48em) {
.nav-links {
            display: none;
        }
.menu-toggle {
            display: block;
        }
.footer-content {
            flex-direction: column;
            gap: 20px;
            text-align: center;
        }
}


/* ---------------------------------------------------------------
   Accent colour per surface
   --------------------------------------------------------------- */
.hero,
.page-hero,
.activities,
.section-dark,
footer,
.mobile-nav,
.conference-card        { --accent-text: var(--hmc-gold); }
.cta,
.cta-band               { --accent-text: var(--hmc-black); }

/* ---------------------------------------------------------------
   Focus, skip link and screen-reader utilities
   --------------------------------------------------------------- */

/* The ring colour is re-pointed per surface so it always clears 3:1. */
:root                { --focus-ring: #005F7A; }   /* 7.2:1 on white, 6.9:1 on #FAFAFA */
.hero,
.page-hero,
.activities,
.section-dark,
footer,
.mobile-nav,
.conference-card     { --focus-ring: var(--hmc-gold); }   /* 12.1:1 on black */
.cta,
.cta-band            { --focus-ring: var(--hmc-black); }  /* 12.1:1 on gold */

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

/* Pointer users keep the clean look; keyboard users get the ring. */
:focus:not(:focus-visible) { outline: none; }

/* Fellow/team cards use a full-card overlay link (a::after { inset: 0 }),
   so ring the card rather than the few-pixel-tall name. */
.fellow-card:has(a:focus-visible) {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.fellow-card:has(a:focus-visible) a:focus-visible { outline: none; }

/* Give keyboard users the same affordance hover gets. */
.fellow-card:has(a:focus-visible) { border-color: var(--hmc-gold); }
.fellow-card:has(a:focus-visible) .fellow-avatar img { filter: grayscale(0%); }

.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 200;
    padding: 12px 20px;
    background: var(--hmc-black);
    color: var(--hmc-white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

main:focus { outline: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* The hero entrance keyframes start at opacity:0 and rely on `forwards`,
       so cancelling the animation alone would leave the hero blank. */
    .hero-label, .hero h1, .hero-text, .hero-cta, .hero-visual, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-ring, .hero-dot { animation: none !important; }

    .aim-card:hover, .speaker-card:hover, .cta-button:hover,
    .btn-primary:hover, .team-member:hover, .fellow-card:hover {
        transform: none !important;
    }
}

/* At 400% zoom the layout viewport is ~320x200px, where a fixed 88px header
   plus a 58px bottom bar would eat most of the screen. Let them scroll. */
@media (max-height: 31.25em) {
    nav { position: absolute; }
    .mobile-nav { display: none !important; }
    .sidebar-nav { display: none; }
}
