/* Walkadia — walkadia.app
   Tokens: asphalt ink, morning fog, moss accent.
   Type: Newsreader (display + long-form), system sans for wayfinding. */

:root {
    --ink: #20262b;
    --fog: #f1f2ef;
    --fog-rule: #e2e5df;
    --muted: #6a736c;
    --moss: #46604f;
    --paper-white: #f7f6f2;
    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--serif);
    font-optical-sizing: auto;
    color: var(--ink);
    background: var(--fog);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--moss);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ---------- Wayfinding (nav) ---------- */

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    list-style: none;
}

.nav-item a {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

/* ---------- Home ---------- */

.home {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: var(--paper-white);
    background: var(--ink);
    overflow: hidden;
}

/* Fallback still: dusk sky over pavement, faint warm horizon */
.home-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 55% at 50% 62%, rgba(201, 169, 138, 0.16), transparent 60%),
        linear-gradient(180deg, #232c36 0%, #3a444f 48%, #171b20 100%);
}

.home-bg video,
.home-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.home-bg .is-visible {
    opacity: 1;
}

.home-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 13, 16, 0.42) 0%,
        rgba(10, 13, 16, 0.18) 38%,
        rgba(10, 13, 16, 0.28) 68%,
        rgba(10, 13, 16, 0.6) 100%);
}

.home-header,
.home-content,
.home-footer {
    position: relative;
    z-index: 1;
}

.home-header {
    display: flex;
    justify-content: flex-end;
    padding: 1.75rem 2rem;
}

.home-nav .nav-item a,
.home-footer a {
    color: rgba(247, 246, 242, 0.78);
    transition: color 0.2s ease;
}

.home-nav .nav-item a:hover,
.home-footer a:hover {
    color: var(--paper-white);
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.wordmark {
    font-weight: 300;
    font-size: clamp(3.5rem, 13vw, 9.5rem);
    letter-spacing: -0.015em;
    line-height: 1.05;
    text-shadow: 0 2px 40px rgba(10, 13, 16, 0.35);
    animation: breathe 7s ease-in-out infinite;
    will-change: transform;
}

/* The wordmark breathes at a resting walk's ease */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.014); }
}

.home-tagline {
    margin-top: 1.1rem;
    font-style: italic;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: rgba(247, 246, 242, 0.88);
}

.btn-signup {
    margin-top: 2.75rem;
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--paper-white);
    text-decoration: none;
    border: 1px solid rgba(247, 246, 242, 0.55);
    border-radius: 999px;
    padding: 0.95em 2.2em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-signup:hover {
    background-color: rgba(247, 246, 242, 0.14);
    border-color: rgba(247, 246, 242, 0.85);
}

.home-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding: 1.5rem 2rem;
}

.home-footer .nav {
    gap: 1.5rem;
}

.home-footer .nav-item a {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.home-footer .footer-copy {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(247, 246, 242, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .wordmark {
        animation: none;
    }

    .home-bg video,
    .home-bg img {
        transition: none;
    }
}

/* ---------- Interior chrome ---------- */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.6rem 2rem;
    border-bottom: 1px solid var(--fog-rule);
}

.site-logo {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-nav .nav-item a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-nav .nav-item a:hover,
.site-nav .nav-current a {
    color: var(--ink);
}

.site-main {
    min-height: 60vh;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding: 2.25rem 2rem 2.75rem;
    border-top: 1px solid var(--fog-rule);
    margin-top: 4rem;
}

.site-footer .nav-item a {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.site-footer .nav-item a:hover {
    color: var(--ink);
}

.site-footer .footer-copy {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* ---------- Long-form article ---------- */

.article {
    max-width: 41rem;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 2rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-title {
    font-weight: 300;
    font-size: clamp(2.3rem, 6vw, 3.3rem);
    letter-spacing: -0.015em;
    line-height: 1.12;
}

.article-meta {
    margin-top: 0.9rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.gh-content {
    font-size: 1.125rem;
    line-height: 1.72;
}

.gh-content > * + * {
    margin-top: 1.15em;
}

.gh-content h2 {
    margin-top: 2.4em;
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.gh-content h3 {
    margin-top: 1.9em;
    font-weight: 500;
    font-size: 1.2rem;
}

.gh-content a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.5em;
}

.gh-content li + li {
    margin-top: 0.45em;
}

.gh-content blockquote {
    padding-left: 1.25em;
    border-left: 2px solid var(--fog-rule);
    font-style: italic;
    color: var(--muted);
}

.gh-content hr {
    width: 4rem;
    margin: 3em auto;
    border: 0;
    border-top: 1px solid var(--fog-rule);
}

.gh-content figcaption {
    margin-top: 0.6em;
    font-family: var(--sans);
    font-size: 0.8rem;
    text-align: center;
    color: var(--muted);
}

.gh-content .kg-image {
    margin: 0 auto;
}

/* ---------- Post feed (index) ---------- */

.feed-item + .feed-item {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--fog-rule);
}

.feed-link {
    text-decoration: none;
    color: inherit;
}

.feed-title {
    font-weight: 400;
    font-size: 1.7rem;
    letter-spacing: -0.01em;
}

.feed-link:hover .feed-title {
    color: var(--moss);
}

.feed-excerpt {
    margin-top: 0.5rem;
    color: var(--muted);
}

.pagination {
    max-width: 41rem;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    font-family: var(--sans);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .home-header,
    .home-footer,
    .site-header,
    .site-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .home-footer,
    .site-footer {
        flex-direction: column;
    }
}
