@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,600;6..72,700&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
    --paper: #f4f1e8;
    --paper-soft: #faf8f1;
    --ink: #1d1d1b;
    --ink-muted: #4a4a46;
    --line: #bcb6a4;
    --line-strong: #7a7463;
    --accent: #2b2b27;
    --accent-soft: #ece8dc;
    --accent-ink: #2b2b27;
    --cta: #1f1f1d;
    --cta-hover: #000000;
    --cta-ink: #f4f1e8;
    --radius-card: 0;
    --radius-soft: 0;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Newsreader", Georgia, serif;
    line-height: 1.58;
    background: var(--paper);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    background: transparent;
}

.container {
    max-width: 1140px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(141, 130, 104, 0.34);
    backdrop-filter: none;
    background: var(--paper-soft);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 48px;
    object-fit: contain;
    display: block;
}

.small-nav {
    color: var(--ink-muted);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.showcase-shell {
    padding-block: 1.65rem 2.8rem;
}

.hero-card,
.section-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid rgba(141, 130, 104, 0.42);
    background: var(--paper-soft);
    box-shadow: none;
    padding: clamp(1.15rem, 2.5vw, 2.2rem);
    /* backwards (not both): after the entrance the element returns to its
       base style with transform:none, so it never becomes a containing
       block for position:fixed descendants (paywall overlays/bars). */
    animation: cardEnter 0.56s ease backwards;
}

.hero-card::before,
.section-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink);
}

.eyebrow {
    margin-bottom: 0.55rem;
    color: var(--accent-ink);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-card h1,
.section-card h1 {
    margin-bottom: 0.42rem;
    color: #171d1b;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(2.05rem, 4.9vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.016em;
    text-wrap: balance;
}

.hero-card h2,
.section-card h2 {
    margin-top: 0;
    color: #2e3835;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.15rem, 2.2vw, 1.82rem);
    line-height: 1.28;
    font-weight: 400;
    max-width: 44ch;
}

.lead {
    color: #3f4845;
    max-width: 72ch;
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.content-gap {
    margin-top: 1rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.72rem;
}

.quick-links a {
    display: block;
    min-height: 124px;
    border-radius: 0;
    border: 1px solid rgba(141, 130, 104, 0.5);
    background: #f9f6ee;
    color: var(--ink);
    text-decoration: none;
    padding: 0.9rem 0.92rem;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.quick-links a:visited {
    color: var(--ink);
}

.quick-links a strong {
    display: inline-block;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: #19201e;
}

.quick-links a:hover {
    transform: none;
    border-color: var(--ink);
    background: #f3efe4;
    box-shadow: none;
}

.note-box {
    border: 1px solid rgba(179, 90, 42, 0.35);
    border-radius: 0;
    background: var(--accent-soft);
    color: var(--ink);
    padding: 0.8rem 0.86rem;
}

.dev-kit {
    margin-top: 0.95rem;
    margin-bottom: 0.95rem;
    border: 1px solid rgba(141, 130, 104, 0.44);
    border-radius: 0;
    background: #f7f4ec;
    padding: 0.88rem;
}

.dev-kit-title {
    margin: 0;
    color: #33433f;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.77rem;
}

.dev-kit-links {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: #42504c;
}

.dev-kit-links a {
    color: #1f1f1d;
}

.dev-snippet {
    margin-top: 0.65rem;
}

.dev-snippet summary {
    cursor: pointer;
    color: #32403d;
    font-weight: 600;
}

.dev-snippet pre {
    margin-top: 0.58rem;
    margin-bottom: 0;
    border-radius: 0;
    border: 1px solid rgba(141, 130, 104, 0.45);
    background: #efe9da;
    padding: 0.82rem 0.88rem;
    overflow-x: auto;
}

.dev-snippet pre code {
    display: block;
    color: #2a322f;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.83rem;
    line-height: 1.5;
}

a {
    color: #255d4f;
}

a:visited {
    color: #2f6a5a;
}

a:hover {
    color: #164038;
}

.page-footer {
    margin-top: 1.45rem;
    font-size: 0.84rem;
    color: #5a6762;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
}

p,
li,
span,
strong,
code,
kbd {
    color: inherit;
}

main p {
    color: #2b3532;
}

main li {
    color: #29322f;
}

main li > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.48rem;
    padding: 0.58rem 0.7rem;
    border-radius: 0;
    background: rgba(247, 244, 233, 0.8);
    border: 1px solid rgba(141, 130, 104, 0.36);
}

main article {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

code,
kbd {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.88em;
    background: rgba(239, 233, 220, 0.95);
    border: 1px solid rgba(141, 130, 104, 0.54);
    border-radius: 0;
    padding: 0.14rem 0.38rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

pre code {
    display: block;
    white-space: pre;
    overflow-x: auto;
    overflow-wrap: normal;
    word-break: normal;
}

[data-gvm-http-download],
[data-gvm-http-inject],
[data-gvm-http-redirect-to] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    border-radius: 0;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-weight: 700;
    padding: 0.35rem 0.74rem;
}

[data-gvm-http-download]:hover,
[data-gvm-http-inject]:hover,
[data-gvm-http-redirect-to]:hover {
    background: #f1ede2;
    color: #000;
}

.mini {
    max-width: 560px;
}

dialog[open] {
    border: 0;
    background: transparent;
}

dialog[open]::backdrop {
    background: rgba(16, 16, 15, 0.42);
    backdrop-filter: blur(2px);
}

dialog article.mini {
    width: min(92vw, 500px);
    max-width: 500px;
    max-height: 92vh;
    margin: 0 auto;
    border-radius: 0;
    border: 1px solid rgba(141, 130, 104, 0.42);
    background: var(--paper-soft);
    color: #202724;
    box-shadow: none;
    overflow: auto;
}

dialog article.mini > header,
dialog article.mini > section,
dialog article.mini > footer {
    border-color: rgba(141, 130, 104, 0.4);
}

.payment-header {
    text-align: center;
    padding: 1rem 1rem 0.82rem;
    background: #f7f3e8;
}

.payment-body {
    text-align: center;
    padding: 0.95rem 1rem 1rem;
}

.payment-footer {
    text-align: center;
    padding: 0.8rem 1rem;
    background: #efe8d7;
}

dialog article.mini h3 {
    margin: 0;
    color: #1f2724;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

dialog article.mini header p {
    margin: 0.24rem auto 0;
    color: #4f5955;
    max-width: 28ch;
    font-size: 0.86rem;
}

.payment-price-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    margin-bottom: 0.35rem;
}

.payment-price-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    color: #6b3113;
}

.payment-price-line strong,
.payment-price-line [data-gvm-bind-price],
.payment-price-line [data-gvm-bind-currency] {
    color: #1f2724;
    font-size: 1.38rem;
    font-weight: 700;
}

.payment-qr-wrap {
    display: flex;
    justify-content: center;
}

dialog article.mini [data-gvm-bind-qr] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: min(66vw, 250px);
    min-height: min(66vw, 250px);
    margin: 0.35rem auto 0.56rem;
    padding: 0.54rem;
    border-radius: 0;
    border: 1px solid rgba(141, 130, 104, 0.42);
    background: #ffffff;
}

dialog article.mini [data-gvm-bind-qr] img,
dialog article.mini [data-gvm-bind-qr] canvas,
dialog article.mini [data-gvm-bind-qr] svg {
    display: block;
    margin: 0 auto;
}

dialog article.mini [data-gvm-bind-qr] [aria-busy="true"] {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto;
    color: #28453d;
}

dialog article.mini [data-gvm-bind-status] {
    color: #2d3734;
    font-weight: 500;
}

.payment-status-row {
    margin: 0 0 0.44rem;
    color: #33403c;
    font-size: 0.9rem;
}

.payment-time {
    color: #66736e;
    font-size: 0.86rem;
}

.payment-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-promise {
    margin: 0 0 0.52rem;
    color: #55615d;
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
}

button[data-gvm-bind-send-sms],
button[data-gvm-bind-pay] {
    border: 1px solid #000;
    border-radius: 0 !important;
    min-height: 40px;
    padding: 0.56rem 0.86rem;
    background: #1f1f1d;
    color: #f4f1e8;
    font-size: 0.88rem;
    font-weight: 700;
}

button[data-gvm-bind-send-sms]:hover,
button[data-gvm-bind-pay]:hover {
    background: #000;
}

button[data-gvm-bind-cancel] {
    border: 1px solid rgba(141, 130, 104, 0.58);
    border-radius: 0;
    min-height: 40px;
    padding: 0.56rem 0.86rem;
    background: #efe8d8;
    color: #2a3431;
    font-size: 0.88rem;
}

button[data-gvm-bind-cancel]:hover {
    border-color: rgba(103, 93, 68, 0.74);
    background: #e9e0cd;
}

dialog article.mini footer small,
dialog article.mini footer a {
    color: #22584a;
}

.payment-actions [data-gvm-bind-send-sms] {
    min-width: 176px;
}

.payment-actions [data-gvm-bind-cancel] {
    min-width: 96px;
}

.paywall {
    border: 1px solid rgba(141, 130, 104, 0.55) !important;
    border-radius: 0 !important;
    background: #f5f1e6 !important;
    color: #27302d !important;
    box-shadow: none;
}

.paywall p {
    color: #27302d !important;
}

.paywall .paywall-meta {
    color: #42504c !important;
}

.paywall .paywall-note {
    color: #6b3113 !important;
}

.paywall [data-gvm-bind-reading-time],
.paywall [data-gvm-bind-reading-words] {
    color: #1f4f44 !important;
}

@media (max-width: 860px) {
    .site-header .container {
        padding-top: 0.76rem;
        padding-bottom: 0.76rem;
    }

    .brand img {
        height: 42px;
    }

    .hero-card,
    .section-card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .small-nav {
        font-size: 0.72rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-actions [data-gvm-bind-send-sms],
    .payment-actions [data-gvm-bind-cancel] {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card,
    .section-card,
    .quick-links a {
        animation: none;
        transition: none;
    }
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button {
    border-radius: 0;
}

/* ------------------------------------------------------------------ */
/* Article content (overlay/ demo articles)                            */
/* ------------------------------------------------------------------ */

.col {
    max-width: 820px;
    margin-inline: auto;
}

.article-head {
    margin-bottom: 0.4rem;
}

.article-standfirst {
    max-width: 60ch;
}

.byline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    margin: 1.05rem 0 0;
    padding: 0.62rem 0;
    border-top: 1px solid rgba(141, 130, 104, 0.42);
    border-bottom: 1px solid rgba(141, 130, 104, 0.42);
    font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
    font-size: 0.86rem;
    color: var(--ink-muted);
}

.byline-author {
    color: var(--ink);
    font-weight: 600;
}

.byline-dot {
    color: var(--line-strong);
}

.demo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.32rem;
    margin: 1.05rem 0 0.15rem;
    border: 1px solid rgba(179, 90, 42, 0.35);
    background: var(--accent-soft);
    padding: 0.62rem 0.8rem;
    font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
    font-size: 0.86rem;
    color: #33403c;
}

.demo-strip strong {
    color: #6b3113;
}

.article-body {
    margin-top: 1.35rem;
}

.article-body p {
    margin: 0 0 1.05rem;
    font-size: 1.055rem;
    line-height: 1.72;
    color: #2b3532;
}

.article-body h2 {
    margin: 1.9rem 0 0.65rem;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: -0.012em;
    color: #171d1b;
}

.article-body h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.15rem;
    line-height: 1.35;
    color: #232b28;
}

.article-figure {
    margin: 1.5rem 0 1.7rem;
}

.article-figure figcaption {
    margin-top: 0.5rem;
    font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.article-figure figcaption strong {
    color: var(--ink);
    font-weight: 600;
}

.img-placeholder {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(141, 130, 104, 0.45);
    background: #e9e3d2;
    line-height: 0;
}

.img-placeholder svg {
    display: block;
    width: 100%;
    height: auto;
}

.pull-quote {
    margin: 1.7rem 0 1.8rem;
    padding: 0.3rem 0 0.3rem 1.25rem;
    border-left: 3px solid var(--ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.3rem, 2.2vw, 1.55rem);
    font-style: italic;
    line-height: 1.42;
    color: #171d1b;
    text-wrap: balance;
}

.pull-quote cite {
    display: block;
    margin-top: 0.55rem;
    font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
    font-style: normal;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.1rem;
    padding-left: 1.2rem;
}

.article-body li {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #2b3532;
}

.article-foot {
    margin-top: 2rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.article-tags li {
    margin: 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #42504c;
    border: 1px solid rgba(141, 130, 104, 0.5);
    background: #f9f6ee;
    padding: 0.24rem 0.5rem;
}

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    border: 1px solid rgba(141, 130, 104, 0.45);
    background: #f8f5ec;
    padding: 1rem 1.05rem;
}

.author-box .avatar {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(141, 130, 104, 0.55);
    background: #e4ddc9;
    line-height: 0;
}

.author-box .avatar svg {
    display: block;
    width: 100%;
    height: 100%;
}

.author-box h4 {
    margin: 0 0 0.28rem;
    font-size: 1.02rem;
    color: #171d1b;
}

.author-box .author-role {
    display: block;
    margin-bottom: 0.3rem;
    font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b5f4b;
}

.author-box p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #42504c;
}

.article-disclaimer {
    margin: 1.6rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(141, 130, 104, 0.5);
    font-size: 0.78rem;
    line-height: 1.55;
    color: #66736e;
}

@media (max-width: 860px) {
    .article-body p {
        font-size: 1.02rem;
    }
}
