:root {
    --bg-top: #f4faff;
    --bg-bottom: #dceeff;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-border: rgba(111, 166, 238, 0.35);
    --text-main: #103762;
    --text-soft: #577399;
    --blue-500: #2f7fe8;
    --blue-600: #1f67cc;
    --sun-500: #f08d2c;
    --sun-600: #d96c17;
    --shadow-soft: 0 18px 55px rgba(37, 93, 168, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 8% 12%, rgba(129, 189, 255, 0.58), transparent 46%),
        radial-gradient(circle at 92% 18%, rgba(255, 188, 124, 0.38), transparent 38%),
        linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 42px);
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: #0f3a6d;
    box-shadow: 0 10px 20px rgba(22, 77, 140, 0.3);
}

.skip-link:focus-visible {
    top: 12px;
}

.home {
    width: min(980px, 100%);
}

.home-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    align-items: center;
    gap: clamp(24px, 4.5vw, 46px);
    padding: clamp(30px, 6vw, 58px);
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
}

body.loaded .home-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-cover {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(41, 95, 168, 0.24);
}

.hero-cover-link {
    display: block;
    line-height: 0;
}

.hero-cover-link:focus-visible {
    outline: 3px solid #1f67cc;
    outline-offset: -3px;
    border-radius: 24px;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.hero-content {
    display: grid;
    gap: 18px;
}

.eyebrow {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

h1 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.2;
}

.lead {
    margin: 0;
    max-width: 54ch;
    color: #335b8f;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.mode-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

.mode-link {
    border-radius: 18px;
    padding: 16px 18px;
    text-decoration: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: clamp(1.02rem, 1.8vw, 1.1rem);
    box-shadow: 0 10px 24px rgba(29, 86, 156, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mode-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(29, 86, 156, 0.3);
}

.mode-link:focus-visible {
    outline: 3px solid #0f3a6d;
    outline-offset: 3px;
}

.mode-link-audio {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

.mode-link-video {
    background: linear-gradient(135deg, var(--sun-500), var(--sun-600));
}

.icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
}

.icon svg {
    width: 22px;
    height: 22px;
}

.redes {
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.redes a {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(102, 160, 235, 0.35);
    box-shadow: 0 8px 18px rgba(56, 113, 190, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.redes a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(56, 113, 190, 0.25);
}

.redes a:focus-visible {
    outline: 3px solid #0f3a6d;
    outline-offset: 2px;
}

.redes img {
    max-width: 26px;
    max-height: 26px;
    width: auto;
    height: auto;
    display: block;
    opacity: 0.55;
}

.redes img:hover {
    opacity: 1;
}

.project-notice {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 160, 235, 0.35);
    box-shadow: 0 8px 18px rgba(56, 113, 190, 0.16);
}

.project-notice h2 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-size: 1rem;
}

.project-notice p {
    margin: 8px 0 0;
    color: #335b8f;
    line-height: 1.5;
}

.project-notice a {
    color: #1f67cc;
    font-weight: 700;
}

.project-notice a:focus-visible {
    outline: 2px solid #0f3a6d;
    outline-offset: 2px;
    border-radius: 6px;
}

.site-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(102, 160, 235, 0.35);
    box-shadow: 0 8px 18px rgba(56, 113, 190, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(56, 113, 190, 0.25);
}

.github-link:focus-visible {
    outline: 3px solid #1f67cc;
    outline-offset: 2px;
}

.github-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}

.github-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.noscript-warning {
    width: min(980px, 100%);
    margin: 14px auto 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #0f3a6d;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(83, 146, 229, 0.45);
    box-shadow: 0 8px 16px rgba(56, 113, 190, 0.18);
}

@media (max-width: 760px) {
    .home-card {
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 24px;
    }

    .hero-cover img {
        min-height: 250px;
        aspect-ratio: 16 / 10;
    }

    .mode-nav {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .home-card {
        opacity: 1;
        transform: none;
    }
}
