@font-face {
    font-family: 'Shantell Sans';
    src: url('assets/fonts/ShantellSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shantell Sans';
    src: url('assets/fonts/ShantellSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    color-scheme: light dark;
    --bg: #faf8f0;
    --text: #2d2a24;
    --muted: #6b6560;
    --subtle: #e8e4dc;
    --accent: #8a5a1f;
    --card-bg: rgba(250, 248, 240, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.4);
    --glow: rgba(227, 168, 91, 0.16);
    --shadow: rgba(0, 0, 0, 0.12);
    --dot: rgba(138, 90, 31, 0.16);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1816;
        --text: #ffffff;
        --muted: #b8b4ac;
        --subtle: #3d3830;
        --accent: #e3a85b;
        --card-bg: rgba(26, 24, 22, 0.6);
        --glass-highlight: rgba(255, 255, 255, 0.08);
        --glow: rgba(227, 168, 91, 0.08);
        --shadow: rgba(0, 0, 0, 0.4);
        --dot: rgba(227, 168, 91, 0.1);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Shantell Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(var(--dot) 1px, transparent 1px),
        radial-gradient(ellipse at 50% -20%, var(--glow), transparent 60%);
    background-size: 24px 24px, 100% 100%;
    background-repeat: repeat, no-repeat;
    color: var(--text);
    min-height: 100vh;
    padding: 4rem;
    display: flex;
    flex-direction: column;
}

main {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - 8rem);
    padding-bottom: 3rem;
    text-align: center;
    gap: 0.75rem;
}

.app-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 0.25rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--accent);
}

.lede {
    max-width: 34rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--subtle);
    border-radius: 0.5rem;
    background: var(--card-bg);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn.download {
    border-color: var(--accent);
    color: var(--accent);
}

.btn.download svg {
    width: 1.125rem;
    height: 1.125rem;
}

.scroll-cue {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--muted);
    transform: translateX(-50%);
    transition: color 0.15s ease;
}

.scroll-cue svg {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(0.35rem);
    }
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--subtle);
    border-radius: 1rem;
    box-shadow: 0 12px 32px var(--shadow);
}

.section-label {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature {
    padding: 1.25rem;
    border: 1px solid var(--subtle);
    border-radius: 1rem;
    background: var(--card-bg);
}

.feature h3 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.feature p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.feature a,
.steps a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.feature .github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    color: var(--accent);
    text-decoration: none;
}

.feature .github-link svg {
    width: 1.2rem;
    height: 1.2rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1.25rem;
    line-height: 1.55;
}

pre {
    margin-top: 0.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--subtle);
    border-radius: 0.5rem;
    background: var(--card-bg);
    overflow-x: auto;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.note {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

footer {
    width: 100%;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

footer a {
    color: var(--muted);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

.btn:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .btn:hover {
        background: var(--text);
        border-color: var(--text);
        color: var(--bg);
    }

    .btn.download:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--bg);
    }

    .feature a:hover,
    .steps a:hover,
    .scroll-cue:hover,
    footer a:hover {
        color: var(--accent);
    }
}

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

    .scroll-cue svg {
        animation: none;
    }
}

@media (max-width: 640px) {
    body {
        min-height: 100svh;
        padding: 2rem 1.25rem;
    }

    main {
        gap: 3rem;
    }

    .hero {
        min-height: calc(100svh - 4rem);
        padding-bottom: 2.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .lede {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    footer {
        margin-top: 3rem;
    }
}
