@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #FDF8EF;
    --paper-light: #FFFFFF;
    --paper-deep: #F7EEDC;
    --ink: #563E2E;
    --ink-soft: #6E5A50;
    --ink-faint: #9C897E;
    --orange: #F1C059;
    --orange-dark: #FFB354;
    --teal: #87C9DD;
    --teal-dark: #5CA6A9;
    --band-dark: #3A2A22;
    --band-dark-light: #4E3A30;
    --rule-line: rgba(74, 54, 46, 0.14);
    --shadow-card: 0 10px 24px rgba(74, 54, 46, 0.18);
    --radius-card: 3px;
    --max-w: 1180px;
    --font-display: "Inter", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background-image:
        linear-gradient(var(--rule-line) 1px, transparent 1px);
    background-size: 100% 2.15rem;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 0.5em 0;
    color: var(--ink);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
label:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--orange-dark);
    outline-offset: 2px;
}

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper-light);
    border-bottom: 2px solid var(--ink);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    text-decoration: none;
    color: var(--ink);
    /* Never let a wide menu squeeze the logo */
    flex-shrink: 0;
}

.logo img {
    width: 34px;
    height: 34px;
    display: block;
}

.logo .dot {
    color: var(--orange-dark);
}

nav.primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    order: 1;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop menu: tighter items with light vertical separators.
   The mobile dropdown (max-width: 700px) keeps its own column layout. */
@media (min-width: 701px) {
    .nav-links {
        gap: 0;
    }

    .nav-links li {
        display: flex;
        align-items: center;
        padding: 0 1rem;
    }

    .nav-links li+li {
        border-left: 1px solid var(--rule-line);
    }

    .nav-links li:last-child {
        padding-right: 0;
    }
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
    border-color: var(--orange-dark);
}

/* ---------- Social links ---------- */
.social {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-card);
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.social__link:hover {
    color: var(--ink);
    background: var(--paper-deep);
}

.social__icon {
    flex: none;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Header: social icons are the last item of .nav-links.
   Reset the menu rules that would otherwise hit the nested list and links. */
.nav-links .social li {
    padding: 0;
    border: 0;
}

.nav-links .social__link {
    display: inline-flex;
    padding: 0;
    border-bottom: 0;
}

/* Desktop: keep the header row height, icons sit between menu and language */
@media (min-width: 701px) {
    .nav-links__social .social__link {
        width: 2rem;
        height: 2rem;
    }

    .nav-links__social .social__icon {
        width: 16px;
        height: 16px;
    }
}

/* Mobile dropdown: a separate row at the bottom, bigger touch targets */
@media (max-width: 700px) {
    .nav-links__social {
        padding: 0.6rem 1.5rem;
    }

    .nav-links__social .social__link {
        width: 2.75rem;
        height: 2.75rem;
    }

    .nav-links__social .social__icon {
        width: 20px;
        height: 20px;
    }
}

/* Footer: centered under .footer-links */
.social--footer {
    justify-content: center;
    margin-top: 1rem;
}

.social--footer .social__link {
    border: 1px solid var(--rule-line);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--band-dark);
    color: var(--paper-light);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.badge-pill .puck {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.menu-toggle {
    display: none;
}

.menu-btn {
    display: none;
    order: 3;
}

/* ---------- Language switcher ---------- */
.lang-switch {
    position: relative;
    order: 2;
    margin-left: 1.25rem;
}

.lang-switch summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.4rem;
    padding: 0 0.8rem;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: var(--paper-light);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    user-select: none;
}

.lang-switch summary::-webkit-details-marker {
    display: none;
}

.lang-switch summary svg {
    flex: none;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    min-width: 11rem;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    background: var(--paper-light);
    border: 2px solid var(--ink);
    border-radius: 6px;
    box-shadow: var(--shadow-card);
    z-index: 50;
}

.lang-menu a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.92rem;
}

.lang-menu a:hover {
    background: var(--paper-deep);
}

.lang-menu a[aria-current="page"] {
    font-weight: 700;
    color: var(--orange-dark);
}

/* Desktop: the language switcher continues the menu — same separator, no frame.
   Placed after the base .lang-switch rules so it overrides them. */
@media (min-width: 701px) {
    .lang-switch {
        display: flex;
        align-items: center;
        margin-left: 1rem;
        padding-left: 1rem;
        border-left: 1px solid var(--rule-line);
    }

    .lang-switch summary {
        /* Same metrics as .nav-links a, so the hover underline lines up */
        height: auto;
        padding: 0 0 3px;
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background: transparent;
        font-size: 0.95rem;
        transition: border-color 0.15s ease;
    }

    .lang-switch summary:hover,
    .lang-switch[open] summary {
        border-bottom-color: var(--orange-dark);
    }
}

/* ---------- Hero ---------- */
.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy .kicker {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--orange-dark);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.hero-copy h1 {
    font-size: clamp(2.3rem, 4.2vw, 3.4rem);
    letter-spacing: -0.01em;
}

.hero-copy p.lede {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 1.1rem 0 1.9rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--ink);
    color: var(--paper-light);
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--ink);
}

.store-badge svg {
    flex: none;
}

.store-badge .store-text {
    line-height: 1.2;
}

.store-badge .store-text small {
    display: block;
    font-size: 0.68rem;
    opacity: 0.8;
    font-weight: 500;
}

.store-badge .store-text strong {
    display: block;
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--ink-faint);
}

/* phone mockup */
.phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone {
    width: 250px;
    background: var(--ink);
    border-radius: 30px;
    padding: 10px;
    box-shadow: var(--shadow-card);
    transform: rotate(-3deg);
}

.phone .screen {
    background: var(--band-dark);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
    position: relative;
}

.phone .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone .screen .placeholder-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--paper-light) 6%, transparent), transparent 40%),
        repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper-light) 5%, transparent) 0 2px, transparent 2px 14px);
}

.hero-sticker {
    position: absolute;
    width: 118px;
    left: -2.2rem;
    bottom: -1.6rem;
    transform: rotate(-8deg);
    filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--ink) 28%, transparent));
    z-index: 2;
}

.phone-badge {
    position: absolute;
    top: -12px;
    right: 14px;
    background: var(--teal);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transform: rotate(6deg);
    box-shadow: var(--shadow-card);
    z-index: 100;
}

/* ---------- Section shared ---------- */
section {
    padding: 4rem 0;
}

.section-head {
    max-width: 62ch;
    margin-bottom: 2.75rem;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-top: 0.8rem;
}

/* ---------- Problem strip ---------- */
.problem {
    background: var(--paper-deep);
    border-top: 1px solid var(--rule-line);
    border-bottom: 1px solid var(--rule-line);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.problem-grid h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    max-width: 16ch;
}

.problem-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.problem-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    font-size: 1rem;
    color: var(--ink-soft);
}

.problem-list .mark {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid var(--orange-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

/* ---------- Features (scattered cards) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.feature-card {
    background: var(--paper-light);
    border: 1px solid var(--ink);
    border-radius: var(--radius-card);
    padding: 1.6rem 1.4rem 1.8rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.feature-grid .feature-card:nth-child(1) {
    transform: rotate(-1.4deg);
}

.feature-grid .feature-card:nth-child(2) {
    transform: rotate(1deg);
    margin-top: 1.2rem;
}

.feature-grid .feature-card:nth-child(3) {
    transform: rotate(-0.8deg);
}

.feature-grid .feature-card:nth-child(4) {
    transform: rotate(1.6deg);
    margin-top: 1.2rem;
}

.feature-card .rule-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    color: var(--orange-dark);
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

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

/* ---------- Screenshots ---------- */
.screens {
    background: var(--paper);
}

.screens-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    align-items: end;
}

.screen-item {
    text-align: center;
}

.screen-item .phone {
    margin: 0 auto 1.1rem;
    width: 100%;
    max-width: 230px;
    transform: none;
}

.screen-item:nth-child(1) .phone {
    transform: rotate(-2.5deg);
}

.screen-item:nth-child(3) .phone {
    transform: rotate(2.5deg);
}

.screen-item .caption {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.screen-item .caption strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--teal);
    background-image:
        radial-gradient(circle at 18% 30%, color-mix(in srgb, var(--paper-light) 5%, transparent), transparent 45%),
        radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--paper-light) 5%, transparent), transparent 40%);
    color: var(--paper-light);
    padding: 4.5rem 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--paper-light);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.cta-band p {
    color: var(--paper);
    max-width: 48ch;
    margin: 0.9rem auto 2rem;
    font-size: 1.05rem;
}

.cta-band .store-badge {
    background: var(--paper-light);
    color: var(--ink);
    border-color: var(--paper-light);
}

.cta-band .store-badge svg path {
    fill: var(--ink);
}

.cta-actions {
    display: flex;
    justify-content: center;
}

.cta-band .hero-note {
    color: var(--paper-deep);
    margin-top: 1rem;
}

/* ---------- Footer ---------- */
footer {
    padding: 2.4rem 0;
    border-top: 2px solid var(--ink);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-row .logo {
    font-size: 1.05rem;
}

footer .foot-meta {
    font-size: 0.85rem;
    color: var(--ink-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .phone-stage {
        order: -1;
        margin-bottom: 1rem;
    }

    .phone {
        width: 200px;
    }

    .hero-sticker {
        width: 88px;
        left: -1.2rem;
        bottom: -1.2rem;
    }

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

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screens-row {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper-light);
        border-bottom: 2px solid var(--ink);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .nav-links li {
        border-top: 1px solid var(--rule-line);
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 1.75rem;
        border-bottom: none;
    }

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        margin-left: 0.6rem;
        background: transparent;
        border: 2px solid var(--ink);
        border-radius: 6px;
        cursor: pointer;
    }

    .menu-btn span,
    .menu-btn span::before,
    .menu-btn span::after {
        content: "";
        display: block;
        width: 18px;
        height: 2px;
        background: var(--ink);
        position: relative;
    }

    .menu-btn span::before {
        position: absolute;
        top: -6px;
    }

    .menu-btn span::after {
        position: absolute;
        top: 6px;
    }

    /* Large enough for any number of items; scrolls if the screen is shorter.
       A fixed pixel height cut off items as soon as the menu grew. */
    .menu-toggle:checked~.primary-nav .nav-links {
        max-height: 80vh;
        overflow-y: auto;
    }

    .header-row {
        position: relative;
    }

    .lang-switch {
        margin-left: 0.6rem;
    }

    .lang-switch summary {
        padding: 0 0.55rem;
    }

    .lang-switch .lang-current {
        display: none;
    }

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

    .feature-grid .feature-card {
        margin-top: 0 !important;
    }
}

@media (max-width: 420px) {
    .badge-pill {
        display: none;
    }
}

/* Legal pages (privacy policy etc.): readable single-column text. */
.legal,
.blog {
    padding: 3rem 16px 4rem;
}

.legal-grid,
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}


.legal__body,
.blog__body {
    max-width: 72ch;
    margin: 0 auto;
    line-height: 1.65;
}

.legal__body h1,
.blog__body h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 .5rem;
}

.legal__body h2,
.blog__body h2 {
    font-size: 1.25rem;
    margin: 2.25rem 0 .75rem;
}

.legal__body p,
.blog__body p,
.legal__body ul,
.blog__body ul {
    margin: 0 0 1rem;
}

.legal__body ul,
.blog__body ul {
    padding-left: 1.25rem;
}

.legal__body li+li,
.blog__body li+li {
    margin-top: .35rem;
}

.legal__body a,
.blog__body a {
    color: inherit;
    text-decoration-color: var(--orange-dark);
    text-underline-offset: 2px;
}

/* Image rows in blog posts: <span class="gallery"> inside a paragraph */
.blog__body p:has(> .gallery) {
    margin: 1.5em 0;
}

/* Default: one row, images shrink together and keep equal height */
.blog__body .gallery {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}

.blog__body .gallery img {
    display: block;
    min-width: 0;
    margin: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 360px;
    border-radius: 8px;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 12%, transparent), 0 4px 12px color-mix(in srgb, var(--ink) 6%, transparent);
    cursor: zoom-in;
}

/* Two-column grid, e.g. four photos as 2x2 */
.blog__body .gallery--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
}

.blog__body .gallery--grid img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
}

@media (max-width: 600px) {
    .blog__body .gallery {
        flex-wrap: wrap;
    }

    .blog__body .gallery img {
        max-height: 240px;
    }
}

/* Lightbox (medium-zoom) above the sticky header */
.medium-zoom-overlay,
.medium-zoom-image--opened {
    z-index: 1000;
}


.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin: -0.5rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-faint);
}


.page-meta strong {
    font-weight: 600;
    color: inherit;
}

.page-meta time {
    font-weight: 600;
    color: inherit;
}

.page-meta>*+*::before {
    content: "·";
    margin-right: 0.75rem;
}

.article-img {
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 12%, transparent), 0 4px 12px color-mix(in srgb, var(--ink) 6%, transparent);
}

/* ---------- Blog index: list of articles with pagination ----------
   Uses only the landing's design tokens from :root. Append to main.css. */
.blog-index {
    padding: 3rem 16px 4rem;
}

.blog-index__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.blog-index__head {
    max-width: 62ch;
    margin: 0 0 2.5rem;
}

.blog-index__title {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    margin: 0;
}

.blog-index__lead {
    margin: 0.75rem 0 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.blog-index__empty {
    color: var(--ink-soft);
}

/* Cards: as many columns as fit, never narrower than 300px (or the screen) */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper-light);
    border: 1px solid var(--rule-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover,
.post-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--ink) 22%, transparent);
}

/* The title link covers the whole card, so the card has one focus ring */
.post-card:focus-within {
    outline: 3px solid var(--orange-dark);
    outline-offset: 2px;
}

.post-card__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    background: var(--paper-deep);
    border-bottom: 2px solid var(--orange);
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 22px;
}

.post-card__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.post-card__link {
    color: var(--ink);
    text-decoration: none;
}

.post-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.post-card__link:focus-visible {
    outline: none;
}

.post-card:hover .post-card__link,
.post-card__link:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--orange-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--ink-faint);
}

.post-card__meta>*+*::before {
    content: "·";
    margin-right: 0.6rem;
}

.post-card__excerpt {
    margin: 0.75rem 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 0;
}

.pagination__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination__page,
.pagination__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: var(--paper-light);
    border: 1px solid var(--rule-line);
    border-radius: var(--radius-card);
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

a.pagination__page:hover,
a.pagination__step:hover {
    background: var(--paper-deep);
    border-color: var(--orange-dark);
}

.pagination__page[aria-current="page"] {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.pagination__step.is-disabled {
    opacity: 0.45;
}

.pagination__gap {
    align-self: center;
    min-width: 1.5rem;
    color: var(--ink-faint);
    text-align: center;
}

/* Phones: keep only the arrows on the step buttons */
@media (max-width: 560px) {
    .pagination__step-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Footer links: contact email and privacy policy. */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
    margin-top: 1rem;
    font-size: .875rem;
}

.footer-links__item {
    color: var(--ink-soft);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-links__item:hover,
.footer-links__item:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--orange-dark);
    text-underline-offset: 2px;
}

/* Waitlist signup block. Colors fall back to the site's theme color if no tokens are defined. */
.waitlist {
    --wl-radius: 12px;

    background-color: var(--paper);
    max-width: 560px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border: 1px solid var(--paper-deep);
    border-radius: calc(var(--wl-radius) + 4px);
    text-align: center;
    align-items: center;
}

.waitlist .waitlist__title {
    margin: 0 0 .25rem;
    font-size: 1.25rem;
    color: var(--ink);
}

.waitlist .waitlist__lead {
    margin: 0 0 1.25rem;
    color: var(--ink);
}

.waitlist .waitlist__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

@media (max-width: 520px) {
    .waitlist .waitlist__fields {
        grid-template-columns: 1fr;
    }
}

.waitlist .waitlist__field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.waitlist .waitlist__label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    max-width: fit-content;
    min-height: fit-content;
    text-align: left;
}

.waitlist .waitlist__optional {
    font-weight: 400;
    font-size: 70%;
    color: var(--orange);
}

.waitlist .waitlist__input {
    width: 100%;
    box-sizing: border-box;
    padding: .7rem .85rem;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid var(--ink-faint);
    color: var(--ink);
    border-radius: var(--wl-radius);
}

.waitlist .waitlist__input:focus-visible {
    outline: 2px solid var(--ink-soft);
    outline-offset: 1px;
    border-color: transparent;
}

.waitlist .waitlist__textarea {
    resize: vertical;
    min-height: 4.5rem;
    margin-top: .5rem;
    color: var(--ink);
}

.waitlist .waitlist__more {
    margin-top: .75rem;
}

.waitlist .waitlist__more-toggle {
    cursor: pointer;
    font-size: .875rem;
    color: var(--ink);
    width: fit-content;
}

.waitlist .waitlist__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.waitlist .waitlist__submit {
    width: 100%;
    margin-top: 1rem;
    padding: .85rem 1rem;
    font: inherit;
    font-weight: 700;
    color: var(--paper-light);
    background: var(--orange-dark);
    border: 0;
    border-radius: var(--wl-radius);
    cursor: pointer;
}

.waitlist .waitlist__submit:hover {
    filter: brightness(.95);
}

.waitlist .waitlist__submit:disabled {
    opacity: .6;
    cursor: progress;
}

.waitlist .waitlist__note {
    margin: .6rem 0 0;
    font-size: .8rem;
    color: var(--ink-soft);
    max-width: fit-content;
    text-align: left;
}

.waitlist .waitlist__status {
    margin: 1rem 0 0;
    font-weight: 600;
    text-align: center;
}

.waitlist .waitlist__status[data-kind="error"] {
    color: var(--orange-dark);
}

.waitlist .waitlist__status[data-kind="ok"] {
    color: var(--teal-dark);
}

/* After a successful submit only the title and the status stay visible. */
.waitlist.is-done> :not(.waitlist__title):not(.waitlist__status) {
    display: none;
}

/* Waitlist call-to-action in the header and the counter line in the form.
   Append to main.css. Uses the site palette tokens with fallbacks. */
/* Header block-button in the light teal badge style:
   (● In development · 12 people waiting  [Join]) */
.dev-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .2rem .2rem .2rem .75rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--ink);
    background: color-mix(in srgb, var(--teal) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
    border-radius: 999px;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: background-color .15s ease;
}

.dev-cta:hover,
.dev-cta:focus-visible {
    background: color-mix(in srgb, var(--teal) 20%, transparent);
}

.dev-cta__status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.dev-cta__count {
    font-weight: 500;
    color: color-mix(in srgb, var(--ink) 75%, transparent);
}

.dev-cta__count::before {
    content: "·";
    margin-right: .6rem;
    color: color-mix(in srgb, var(--ink) 40%, transparent);
}

.dev-cta__join {
    padding: .3rem .75rem;
    color: var(--ink);
    /* --teal is light on this site, so dark text keeps contrast */
    background: var(--teal);
    border-radius: 999px;
    transition: filter .15s ease;
}

.dev-cta:hover .dev-cta__join,
.dev-cta:focus-visible .dev-cta__join {
    filter: brightness(.92);
}

.dev-cta__dot,
.waitlist .waitlist__count-dot {
    flex: none;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--teal);
    animation: waitlist-pulse 2.4s ease-out infinite;
}

/* Second header row with the waitlist widget, below logo + menu.
   Sits inside <header>, so it stays sticky together with the menu. */
.dev-bar {
    display: flex;
    justify-content: center;
    padding: 0.45rem 1.75rem 0.6rem;
    border-top: 1px solid var(--rule-line);
}

/* Phones: the bar is full width, but the whole phrase is still too long. */
@media (max-width: 560px) {
    .dev-cta__count {
        display: none;
    }
}

/* Waitlist form: full sentence with a pulsing dot. */
.waitlist .waitlist__count {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

@keyframes waitlist-pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent);
    }

    70% {
        box-shadow: 0 0 0 .45rem transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dev-cta__dot,
    .waitlist .waitlist__count-dot {
        animation: none;
    }
}

/*
  Supported games section.
  Uses only the landing's existing design tokens from :root.
*/
.games {
    padding: 64px 16px;
    background: var(--paper-deep);
    color: var(--ink);
}

.games__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.games__title {
    margin: 0 0 32px;
    font-family: var(--font-display);
    text-align: center;
}

.games__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.games__item {
    padding: 16px 20px;
    background: var(--paper-light);
    border: 1px solid var(--rule-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

/* Text stays in --ink for contrast; the accent lives in the underline */
.games__link {
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.games__link:hover,
.games__link:focus-visible {
    text-decoration-color: var(--orange-dark);
}

.games__desc {
    margin: 6px 0 0;
    font-size: 0.925rem;
    color: var(--ink-soft);
}

.games__more {
    margin: 28px auto 0;
    max-width: 640px;
    text-align: center;
    color: var(--ink-soft);
}

.games__cta {
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--teal-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.games__cta:hover,
.games__cta:focus-visible {
    text-decoration-color: var(--teal);
}

/* Link from a game card to its blog article */
.games-card__article {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--orange-dark);
    text-decoration: none;
}

.games-card__article::after {
    content: "→";
    transition: transform 0.15s ease;
}

.games-card__article:hover,
.games-card__article:focus-visible {
    text-decoration: underline;
}

.games-card__article:hover::after,
.games-card__article:focus-visible::after {
    transform: translateX(3px);
}

/* "Project team" section.
   Colors, radius, shadow, width and font come only from the landing :root tokens. */
.team {
    padding: clamp(48px, 8vw, 96px) 20px;
}

.team__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.team__title {
    margin: 0 0 clamp(24px, 4vw, 40px);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    line-height: 1.2;
    text-wrap: balance;
}

.team__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rule-line);
    border-radius: var(--radius-card);
    background: var(--paper-light);
    box-shadow: var(--shadow-card);
}

.team-card__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--paper-deep);
}

.team-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

/* Name and role on the left, link icon in the top-right corner */
.team-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange);
}

.team-card__title {
    min-width: 0;
}

.team-card__name {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.25;
}

.team-card__role {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-card__links {
    display: flex;
    flex: none;
    gap: 2px;
    margin: -5px -5px 0 0;
}

.team-card__link {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-card);
    color: var(--ink-soft);
}

.team-card__link:hover,
.team-card__link:focus-visible {
    color: var(--teal-dark);
}

.team-card__link:focus-visible {
    outline: 2px solid var(--teal-dark);
    outline-offset: 0;
}

.team-card__icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* For solid glyphs supplied as filled paths (e.g. an official brand icon) */
.team-card__icon--filled {
    fill: currentColor;
    stroke: none;
}

.team-card__bio {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    text-wrap: pretty;
}

/* Tablet: 2 x 2 */
@media (max-width: 960px) {
    .team__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phone: one column, photo beside the name, role and link icon, bio underneath */
@media (max-width: 560px) {
    .team__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .team-card {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 14px;
        align-items: center;
        padding: 14px;
    }

    .team-card__photo {
        border-radius: var(--radius-card);
    }

    /* Let the head and bio become direct grid items of the card */
    .team-card__body {
        display: contents;
    }

    .team-card__head {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .team-card__links {
        margin: 0;
    }

    .team-card__bio {
        grid-column: 1 / -1;
        padding-top: 12px;
        border-top: 2px solid var(--orange);
    }
}

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0;
}

.share__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.blog__body .share p {
    margin: 0;
}

.blog__body .share__heading {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.blog__body .share__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog__body .share__list li + li {
    margin-top: 0;
}

.share__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--ink-soft);
    background: var(--paper-light);
    border: 1px solid var(--rule-line);
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.share__button:hover,
.share__button:focus-visible {
    color: var(--ink);
    background: var(--paper-deep);
    border-color: var(--orange-dark);
}

.share__button svg,
.share__icon {
    flex: none;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share .share__icon--stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.25rem;
    padding: 0 0.9rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper-light);
    border: 1px solid var(--rule-line);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.share__copy:hover,
.share__copy:focus-visible {
    background: var(--paper-deep);
    border-color: var(--orange-dark);
}

.share__copy.is-done {
    border-color: var(--teal-dark);
    background: color-mix(in srgb, var(--teal) 15%, var(--paper-light));
}

.share__copy.is-done .share__icon {
    color: var(--teal-dark);
}

.share--compact {
    margin: -0.75rem 0 1.5rem -0.5rem;
}

.share--compact .share__actions {
    gap: 0.3rem;
}

.share--compact .share__heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.blog__body .share--compact .share__list {
    gap: 0.3rem;
}

.share--compact .share__button,
.share--compact .share__copy {
    width: 2rem;
    height: 2rem;
    padding: 0;
    justify-content: center;
    background: transparent;
    border-color: transparent;
    color: var(--ink-faint);
}

.share--compact .share__button:hover,
.share--compact .share__button:focus-visible,
.share--compact .share__copy:hover,
.share--compact .share__copy:focus-visible {
    color: var(--ink);
    background: var(--paper-deep);
    border-color: transparent;
}

.share--compact .share__copy-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.share--compact .share__copy.is-done {
    color: var(--teal-dark);
    background: color-mix(in srgb, var(--teal) 15%, transparent);
}

.share--card {
    justify-content: space-between;
    margin: 3rem 0 0;
    padding: 1.25rem 1.5rem;
    background: var(--paper-light);
    border: 1px solid var(--rule-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.share--card .share__copy {
    background: var(--paper);
}

@media (max-width: 560px) {
    .share--card {
        padding: 1rem 1.1rem;
    }

    .share--card .share__actions,
    .share--card .share__copy {
        width: 100%;
    }

    .share--card .share__copy {
        justify-content: center;
    }
}