/* yunnan.life starter styles.
 *
 * One file for the whole site. Absolute paths (starts with /) so the same HTML
 * works when the site is mounted under a path prefix as well as at the domain
 * root -- the platform serves it at /yunnan-life/ and Caddy maps yunnan.life
 * onto that mount.
 */

:root {
    --ink: #1d2321;
    --ink-soft: #55605b;
    --paper: #fbfaf7;
    --paper-alt: #f2efe8;
    --line: #ddd7cc;
    --accent: #1f6f5c;
    --accent-soft: #e4f0eb;
    --radius: 10px;
    --measure: 68rem;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

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

/* --- header / nav ------------------------------------------------------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
    padding: 1.1rem 1.25rem;
}

.brand {
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-left: auto;
    font-size: 0.92rem;
}

.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- layout ------------------------------------------------------------- */

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 1.25rem;
}

main {
    display: block;
}

.hero {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 0;
    max-width: 40rem;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.section {
    padding: 2.75rem 0;
}

.section h2 {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.prose {
    max-width: 42rem;
}

.prose p {
    margin: 0 0 1rem;
}

.prose ul {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

/* --- cards -------------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    display: block;
    height: 100%;
    padding: 1.15rem 1.2rem 1.3rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.card p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--ink-soft);
}

.card .more {
    display: inline-block;
    margin-top: 0.7rem;
    font-size: 0.88rem;
    color: var(--accent);
}

/* --- facts / details ---------------------------------------------------- */

.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 1.15rem 1.25rem;
    background: var(--paper-alt);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.facts dt {
    color: var(--ink-soft);
    font-weight: 600;
}

.facts dd {
    margin: 0;
}

/* --- call to action ----------------------------------------------------- */

.cta {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.15rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.cta:hover {
    filter: brightness(1.08);
}

.note {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.93rem;
    color: #1a4b40;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
    margin-top: 3rem;
    padding: 1.75rem 0 2.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer p {
    margin: 0.3rem 0;
}

@media (max-width: 34rem) {
    .site-nav {
        margin-left: 0;
        width: 100%;
    }

    .hero {
        padding-top: 2.25rem;
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .facts dd {
        margin-bottom: 0.6rem;
    }
}
