/* Vermont-inspired color palette */
:root {
    --vermont-forest: #2d5016;
    --vermont-green: #4a7c59;
    --vermont-sage: #87a96b;
    --vermont-sky: #6b9bd1;
    --vermont-mountain: #5a7d9a;
    --vermont-earth: #8b6f47;
    --vermont-cream: #f5f1e8;
    --vermont-white: #ffffff;
    --vermont-text: #2c3e2d;
    --vermont-text-light: #5a6b5c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    background: var(--vermont-cream);
    color: var(--vermont-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex: 1;
}

/* Header Styles */
.header {
    padding: 40px 0 30px;
    text-align: center;
    border-bottom: 3px solid var(--vermont-green);
    margin-bottom: 0;
}

.header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vermont-forest);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1rem;
    color: var(--vermont-text-light);
    font-weight: 400;
    font-style: italic;
    margin: 0;
}

/* Mobile Dropdown */
.mobile-dropdown-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.dropdown-toggle {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vermont-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: none;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background: transparent;
    color: var(--vermont-text-light);
    border: none;
    box-shadow: none;
    transform: none;
    outline: none;
}

.dropdown-toggle:active {
    transform: none;
}

.dropdown-toggle:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

.dropdown-toggle svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: currentColor;
}

.dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-dropdown {
    position: relative;
    background: transparent;
    border: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
}

.mobile-dropdown.active {
    max-height: 400px;
}

.mobile-dropdown-links {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    text-align: center;
}

.mobile-dropdown-link {
    display: block;
    padding: 16px 0;
    color: var(--vermont-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link:focus {
    color: var(--vermont-forest);
    outline: none;
}

.mobile-dropdown-link:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Sidebar Styles */
.sidebar {
    display: none;
    position: sticky;
    top: 20px;
    height: auto;
    width: 200px;
    flex-shrink: 0;
    will-change: transform;
}

.sidebar-nav {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.sidebar-close {
    display: none;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vermont-text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: block;
    padding: 8px 0;
    color: var(--vermont-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: 0;
    transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background: transparent;
    color: var(--vermont-forest);
    transform: translateX(4px);
    outline: none;
}

.sidebar-link:active {
    transform: translateX(2px);
}

.sidebar-link:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 40px;
    min-width: 0;
    max-width: 600px;
}

/* Remove max-width on mobile */
@media (max-width: 767px) {
    .main-content {
        max-width: none;
    }
}

/* Category Sections */
.category-section {
    margin-bottom: 35px;
    margin-top: 60px;
    scroll-margin-top: 20px; /* Small offset for navigation */
}

.category-section:first-of-type {
    margin-top: 0;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vermont-forest);
    margin-bottom: 20px;
    padding-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* App Card Container */
.app-card {
    background: var(--vermont-white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* App Link Cards */
.app-link {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.app-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--vermont-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.app-link:hover,
.app-link:focus {
    transform: none;
    background: transparent;
}

.app-link:hover::before,
.app-link:focus::before {
    transform: scaleY(1);
}

.app-link:active {
    transform: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--vermont-white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--vermont-text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--vermont-cream);
    color: var(--vermont-forest);
    outline: none;
}

.modal-content {
    padding: 40px 30px 30px;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 20px;
    border: none;
    margin: 0 auto 15px;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 12px;
}

.modal-description {
    font-size: 1rem;
    color: #1f1f1f;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.modal-badge:empty {
    display: none;
}

.modal-badge .nonprofit-badge,
.modal-badge .coming-soon-badge {
    margin: 0;
    flex-shrink: 0;
}


.modal-downloads {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* Download Buttons */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #f6f4ee;
    border: none;
    color: var(--vermont-text);
}

.download-btn svg {
    width: 60%;
    height: 60%;
    flex-shrink: 0;
}

.download-btn-apple {
    background: #f6f4ee;
    color: var(--vermont-text);
    border: none;
}

.download-btn-apple:focus {
    background: #f6f4ee;
    color: var(--vermont-text);
    border: none;
    box-shadow: none;
    transform: none;
}

.download-btn-android {
    background: #f6f4ee;
    color: var(--vermont-text);
    border: none;
}

.download-btn-android:focus {
    background: #f6f4ee;
    color: var(--vermont-text);
    border: none;
    box-shadow: none;
    transform: none;
}

.download-btn-web {
    background: #f6f4ee;
    color: var(--vermont-text);
    border: none;
}

.download-btn-web:focus {
    background: #f6f4ee;
    color: var(--vermont-text);
    border: none;
    box-shadow: none;
    transform: none;
}

.download-btn:active {
    transform: none;
    outline: none;
    background: #f6f4ee;
}

/* Transparent background only on hover, and only on devices that support true hovering */
@media (hover: hover) {
    .download-btn-apple:hover {
        background: transparent;
        color: var(--vermont-text);
        border: none;
        box-shadow: none;
        transform: none;
    }

    .download-btn-android:hover {
        background: transparent;
        color: var(--vermont-text);
        border: none;
        box-shadow: none;
        transform: none;
    }

    .download-btn-web:hover {
        background: transparent;
        color: var(--vermont-text);
        border: none;
        box-shadow: none;
        transform: none;
    }
}

.app-icon {
    font-size: 2rem;
    margin-right: 16px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.app-name-text {
    flex: 1;
    min-width: 0;
}

.coming-soon-badge {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--vermont-white);
    background: var(--vermont-green);
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coming-soon-badge.muted {
    color: var(--vermont-text-light);
    background: #e0e0e0;
}

.nonprofit-badge {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--vermont-white);
    background: var(--vermont-mountain);
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Keep badges inline on all screen sizes */
@media (max-width: 767px) {
    .app-name {
        gap: 6px;
        margin-bottom: 8px;
    }
}

.app-description {
    font-size: 0.9rem;
    color: #1f1f1f;
    font-weight: 400;
}

.app-arrow {
    font-size: 1.5rem;
    color: var(--vermont-text-light);
    margin-left: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.app-link:hover .app-arrow,
.app-link:focus .app-arrow {
    transform: translateX(4px);
    color: var(--vermont-green);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin: 10px auto 50px;
    max-width: 500px;
    background-color: #f9f8f4;
    border-radius: 12px;
}

.footer p {
    font-size: 1.1rem;
    color: var(--vermont-text-light);
}

.footer a {
    color: var(--vermont-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--vermont-forest);
    text-decoration: underline;
}

/* Built By */
.built-by {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.built-by p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vermont-text-light);
    margin-bottom: 12px;
}

.built-by a {
    display: inline-block;
    position: relative;
    margin-bottom: 30px;
}

.shock-logo {
    height: 40px;
    width: auto;
    display: block;
}

.shock-logo-blue {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.built-by a:hover .shock-logo-blue {
    opacity: 1;
}

.built-by a:hover .shock-logo-orange {
    opacity: 0;
}

.shock-logo-orange {
    transition: opacity 0.3s ease;
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(135, 169, 107, 0.3);
    margin-top: 160px;
}

.disclaimer p {
    font-size: 0.75rem;
    color: var(--vermont-text-light);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .mobile-dropdown-container {
        display: none;
    }

    .header {
        margin-bottom: 30px;
    }

    .content-wrapper {
        display: flex;
    }

    .sidebar {
        display: block;
    }

    .sidebar-title {
        margin-top: 10px;
    }

    .header {
        padding: 60px 0 40px;
    }

    .logo {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .category-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        margin-top: 0;
    }

    .app-link {
        padding: 22px 24px;
    }

    .modal {
        max-width: 550px;
    }

    .modal-content {
        padding: 50px 40px 40px;
    }

    .modal-icon {
        font-size: 4.5rem;
        width: 90px;
        height: 90px;
    }

    .modal-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .modal-title {
        font-size: 2rem;
    }

    .download-btn {
        width: 64px;
        height: 64px;
        padding: 14px;
    }

    .app-name {
        font-size: 1.2rem;
    }

    .app-description {
        font-size: 1rem;
    }

    .app-icon {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
    }

    .app-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .app-arrow {
        margin-left: 24px;
    }

    .main-content {
        max-width: 700px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 900px;
    }

    .main-content {
        max-width: 750px;
    }

    .app-links {
        gap: 16px;
    }

    .footer {
        margin-top: 80px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.app-link:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

.download-btn:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

.modal-close:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

/* Mobile Bottom Categories Button */
.mobile-bottom-categories-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: var(--vermont-cream);
    border-top: 3px solid var(--vermont-green);
    padding: 16px 20px;
    box-shadow: 0 -2px 8px rgba(45, 80, 22, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    text-align: center;
    will-change: transform, opacity;
}

.mobile-bottom-buttons {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-categories-container:has(.mobile-bottom-dropdown.active) {
    border-top: none;
}

.mobile-bottom-categories-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-bottom-toggle {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 0 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vermont-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: none;
}

.mobile-bottom-toggle:hover,
.mobile-bottom-toggle:focus {
    background: transparent;
    color: var(--vermont-text-light);
    border: none;
    box-shadow: none;
    transform: none;
    outline: none;
}

.mobile-bottom-toggle:active {
    transform: none;
}

.mobile-bottom-toggle:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

.mobile-bottom-toggle svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: currentColor;
    margin-top: 0;
}

.mobile-bottom-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-bottom-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--vermont-white);
    border: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    z-index: 101;
    box-shadow: none;
    margin-bottom: 0;
}

.mobile-bottom-dropdown.active {
    max-height: 500px;
    border-top: 3px solid var(--vermont-green);
    box-shadow: 0 -2px 8px rgba(45, 80, 22, 0.1);
}

.mobile-bottom-dropdown-links {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    text-align: center;
}

.mobile-bottom-dropdown-link {
    display: block;
    padding: 16px 0;
    color: var(--vermont-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-bottom-dropdown-link:hover,
.mobile-bottom-dropdown-link:focus {
    color: var(--vermont-forest);
    outline: none;
}

.mobile-bottom-dropdown-link:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Add padding to body on mobile to account for fixed bottom button */
@media (max-width: 767px) {
    body {
        padding-bottom: 100px;
    }
    
    /* Remove green left border animation on mobile */
    .app-link::before {
        display: none;
    }
    
    /* Keep arrows dark on mobile, never green */
    .app-link:hover .app-arrow,
    .app-link:focus .app-arrow,
    .app-link:active .app-arrow {
        color: var(--vermont-text-light);
    }
}

/* Hide bottom categories on desktop */
@media (min-width: 768px) {
    .mobile-bottom-categories-container {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Font Toggle Button */
.font-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    will-change: transform, opacity, filter;
}

.font-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.font-toggle-letter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--vermont-text);
    transition: color 0.3s ease;
}

.font-toggle-btn:hover .font-toggle-letter {
    color: var(--vermont-forest);
}

/* When Inter is active, show M in Merriweather */
body.font-inter .font-toggle-letter {
    font-family: 'Merriweather', serif;
}

.font-toggle-btn:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

/* Mobile Font Toggle Button */
.mobile-font-toggle-btn {
    position: fixed;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    flex-shrink: 0;
    z-index: 101;
    opacity: 0.6;
}

.mobile-font-toggle-btn:hover,
.mobile-font-toggle-btn:focus,
.mobile-font-toggle-btn:active {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.mobile-font-toggle-letter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--vermont-text-light);
    transition: none;
}

.mobile-font-toggle-btn:hover .mobile-font-toggle-letter,
.mobile-font-toggle-btn:focus .mobile-font-toggle-letter,
.mobile-font-toggle-btn:active .mobile-font-toggle-letter {
    color: var(--vermont-text-light);
}

.mobile-font-toggle-btn:focus-visible {
    outline: 3px solid var(--vermont-sky);
    outline-offset: 2px;
}

/* When Inter is active, show M in Merriweather on mobile */
body.font-inter .mobile-font-toggle-letter {
    font-family: 'Merriweather', serif;
}

/* Hide desktop font toggle button on mobile */
@media (max-width: 767px) {
    .font-toggle-btn {
        display: none;
    }
}

/* Position desktop font toggle button on left side on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-toggle-btn {
        left: 30px;
        right: auto;
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        filter: blur(4px);
        transition: none;
    }
    
    .font-toggle-btn.js-ready {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .font-toggle-btn.js-ready.faded {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        filter: blur(4px);
        pointer-events: none;
    }
}

/* Fade out font toggle button on desktop after scrolling 820px */
@media (min-width: 1024px) {
    .font-toggle-btn {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        filter: blur(4px);
        transition: none;
    }
    
    .font-toggle-btn.js-ready {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .font-toggle-btn.js-ready.faded {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        filter: blur(4px);
        pointer-events: none;
    }
}

/* Font toggle state - when Inter is active */
body.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Improve legibility of app descriptions in Merriweather mode */
body:not(.font-inter) .app-description {
    letter-spacing: 0.03em;
}

body:not(.font-inter) .modal-description {
    letter-spacing: 0.03em;
}


