@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500;6..72,700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
    --bg: #f3f0e9;
    --bg-soft: #ece6d8;
    --surface: #faf8f3;
    --surface-strong: #ffffff;
    --ink: #202625;
    --muted: #3d4642;
    --line: #c5bdab;
    --accent: #0f6a57;

    --bg-color: var(--bg);
    --text-color: var(--ink);
    --accent-color: var(--accent);
    --secondary-color: var(--muted);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: var(--line);
    --font-main: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    --snap-align: start;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 80% -10%, #ffffff 0%, transparent 36%),
        radial-gradient(circle at -10% 35%, #dfd7c7 0%, transparent 34%),
        linear-gradient(180deg, #f7f4ed 0%, var(--bg) 100%);
    color: var(--ink);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 18px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(197, 189, 171, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(197, 189, 171, 0.2) 1px, transparent 1px);
    background-size: 36px 36px;
}

main,
.page {
    width: min(1180px, calc(100% - 2.6rem));
    margin: 1rem auto 2rem;
    display: grid;
    gap: 1rem;
}

section {
    min-height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: clamp(1.1rem, 2.4vw, 2.1rem);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(250, 248, 243, 0.86);
    box-shadow: 0 14px 34px rgba(38, 30, 10, 0.07);
}

.container-wrapper {
    width: 100%;
    max-width: none;
    padding: 0;
}

.nav-container {
    position: sticky;
    top: 0.6rem;
    z-index: 1000;
    width: fit-content;
    margin: 0.6rem auto 0;
    background: rgba(247, 244, 237, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.62rem;
    display: flex;
    gap: 0.35rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    background: #fff;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.squishy {
    transition: transform 0.15s ease;
}

.squishy:hover {
    transform: translateY(-1px);
}

.squishy:active {
    transform: translateY(0);
}

.whimsy-blob {
    display: none !important;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1,
h2 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5.4vw, 4.7rem);
    letter-spacing: -0.02em;
    max-width: 14ch;
    color: var(--ink);
}

h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    color: var(--ink);
}

.sub-header {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

p {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
}

.scroll-indicator {
    display: none;
}

.content-box {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(0.8rem, 2vw, 1.4rem);
    width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cta-buttons .nav-link {
    border: 1px solid var(--line);
}

.subnav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.subnav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.subnav-link:hover,
.subnav-link.active {
    color: var(--ink);
    background: #fff;
}

.doc-content {
    text-align: left;
    max-width: 78ch;
    width: 100%;
    margin: 0 auto;
}

.doc-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 1rem;
}

.doc-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
}

.doc-content p {
    text-align: left;
    margin-bottom: 0.95rem;
    max-width: none;
    line-height: 1.7;
}

.doc-content ul {
    padding-left: 1.1rem;
    margin-bottom: 1.4rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.steps {
    padding-left: 1.1rem;
}

.steps li {
    margin-bottom: 0.8rem;
}

.accent-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.accent-link:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.hero,
.work,
.notes,
.footer-cta {
    width: 100%;
    min-height: auto;
}

.hero {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.lead {
    margin: 0;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.proof-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    width: 100%;
}

.proof-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem;
}

.label {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.section-head {
    margin-bottom: 1.2rem;
    display: grid;
    gap: 0.6rem;
    width: 100%;
}

.cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:link,
.card:visited,
.card:hover,
.card:active {
    color: var(--ink);
    text-decoration: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 36, 35, 0.1);
    border-color: #a59c8c;
}

.card:focus-visible {
    outline: 3px solid #2e8b74;
    outline-offset: 2px;
}

.card-media {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 1 / 1;
    background: #0f141c;
    padding: 0.6rem;
}

.card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

.card-body {
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
    background: #fff;
}

.card h3 {
    font-size: 1.25rem;
    line-height: 1.15;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: none;
}

.card-cta {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.notes {
    background: linear-gradient(135deg, var(--bg-soft), #f8f5ee);
}

.notes ol {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
    width: 100%;
}

.notes li {
    border: 1px dashed #8d9a95;
    border-radius: 12px;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
}

.notes span {
    font-weight: 700;
    color: var(--accent);
}

.footer-cta {
    background: #1f2423;
    color: #f3f0e9;
}

.footer-cta h2 {
    max-width: 18ch;
    color: #f3f0e9;
}

.footer-cta p {
    color: #d8dedb;
}

.links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.links a {
    display: inline-block;
    text-decoration: none;
    color: #f3f0e9;
    border: 1px solid rgba(243, 240, 233, 0.5);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    main,
    .page {
        width: calc(100% - 0.08rem);
        margin-top: 0.25rem;
        margin-bottom: 0.35rem;
        gap: 0.28rem;
    }

    section {
        min-height: auto !important;
        padding: 0.6rem 0.52rem !important;
        border-radius: 10px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        max-width: calc(100% - 0.08rem);
        overflow-x: auto;
        margin-top: 0.2rem;
    }

    .nav-link {
        padding: 0.43rem 0.58rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 760px) {
    .proof-grid {
        grid-template-columns: 1fr;
    }

    .content-box,
    .card-body,
    .proof-grid article {
        padding: 0.6rem;
    }

    .card {
        border-radius: 12px;
    }

    .card img {
        border-radius: 8px;
    }

    .card p {
        color: #2e3532;
        font-size: 1rem;
    }

    .notes li {
        border-color: #7e8d87;
        background: rgba(255, 255, 255, 0.88);
    }

    .notes li,
    .notes li * {
        color: #202724;
    }

    .notes span {
        color: #0f6a57;
    }

    .footer-cta {
        background: #171c1b;
    }

    .footer-cta h2 {
        color: #f3f0e9;
    }

    .links a {
        color: #f3f0e9;
        border-color: rgba(243, 240, 233, 0.75);
        background: rgba(255, 255, 255, 0.1);
    }
}
