/* ============================================
    components.css - Specific UI Pieces
    @author Claude Sonnet 4.5
    ============================================ */

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.nav__brand-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav__brand {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    border: none;
}

.nav__logo {
    height: 3.3rem;
    width: auto;
    margin: 0 var(--space-2);
    padding-bottom: .3rem;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 101;
}

.nav__toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background 0.3s;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s;
}

.nav__toggle-icon::before {
    top: -8px;
}

.nav__toggle-icon::after {
    bottom: -8px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
    background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav__list {
    display: flex;
    gap: var(--space-3);
    list-style: none;
    margin: 0;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--color-text-light);
    border: none;
    padding: var(--space-1);
}

.nav__link:hover,
.nav__link:focus {
    color: var(--color-text);
}

.nav__link[aria-current="page"] {
    color: var(--color-accent);
}

/* Hero section */
.hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-6);
}

.hero__title {
    margin-bottom: var(--space-2);
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
    font-family: var(--font-body);
    font-weight: normal;
}

.hero__intro {
    font-size: var(--text-lg);
    max-width: 60ch;
}

/* Content cards */
.card {
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color var(--transition-base);
}

.card:hover {
    border-color: var(--color-accent-light);
}

.card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.card__title a {
    color: var(--color-text);
    border: none;
}

.card__title a:hover {
    color: var(--color-accent);
}

.card__meta {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    margin-top: var(--space-8);
}

.footer__content {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --text-4xl: 1.802rem;
        --text-3xl: 1.424rem;
        --space-8: 4rem;
    }

    .nav__toggle {
        display: block;
    }

    .nav__list {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-2) 0;
        display: none;
    }

    .nav__list--open {
        display: flex;
    }

    .nav__list li {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-base);
    }

    .nav__link:hover,
    .nav__link:focus {
        background: var(--color-border);
    }
}

/* Miscellaneous */
.eye-row__symbol {
    height: 12rem;
    width: auto;
    max-width: 100%;
}