/* Public site stylesheet ("spec sheet" design).
 *
 * Loaded after Bulma by templates/base.html. Bulma still provides the grid,
 * spacing helpers and form controls; everything visual comes from the tokens
 * below. The admin dashboard (dashboard-base.html) uses main.css instead and
 * isn't affected by this file.
 */

:root {
    --paper: #f4f3ef;
    --paper-2: #ebeae4;
    --ink: #121211;
    --ink-2: #44443f;
    --muted: #77766f;
    --rule: #d6d4cc;
    --accent: #d9430b;
    --accent-ink: #ffffff;
    --field: #fbfaf7;
    --code-bg: #e7e5de;

    --accent-soft: #f6d3c4;
    --frozen: #e2e0d8;

    /* The Appearance page in the dashboard overrides these (and the colors
       above) with an inline <style> in base.html. */
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: var(--sans);
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --radius: 0px;

    --shell: 1120px;
    --measure: 70ch;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 56px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0f0f0e;
        --paper-2: #181816;
        --ink: #ecebe5;
        --ink-2: #b9b8b0;
        --muted: #8a8981;
        --rule: #2c2c29;
        --accent: #ff6a2c;
        --accent-ink: #0f0f0e;
        --field: #141412;
        --code-bg: #1d1d1a;
        --accent-soft: #4a2414;
        --frozen: #24241f;
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */

html {
    background: var(--paper);
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

p {
    margin: 0 0 1.1em;
    color: var(--ink-2);
}

strong {
    color: var(--ink);
    font-weight: 600;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

hr,
.divide-line {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 1.5rem 0 2rem;
    max-width: none;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Bulma titles take the site type instead of its own. */
.title,
.subtitle,
h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    color: var(--ink);
    letter-spacing: -0.015em;
}

.title {
    font-weight: 500;
    line-height: 1.15;
}

.subtitle {
    color: var(--ink-2);
}

.title a,
.subtitle a {
    text-decoration: none;
}

.title.is-1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.title.is-2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.title.is-3 { font-size: 1.75rem; }
.title.is-4 { font-size: 1.3rem; }

code,
kbd,
pre,
samp {
    font-family: var(--mono);
}

:not(pre) > code {
    font-size: 0.88em;
    padding: 0.1em 0.35em;
    background: var(--code-bg);
    color: var(--ink);
}

pre {
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    border: 1px solid var(--rule);
    margin: 0 0 1.5rem;
}

time.date,
.date {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--muted);
}

/* Small uppercase monospace label: section markers, table keys, captions. */
.label-mono,
.eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow .idx {
    color: var(--accent);
    margin-right: 0.6em;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.wordmark {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    white-space: nowrap;
}

.wordmark .wm-name {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}

.wordmark .wm-mark {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    background: var(--accent);
    margin-right: 0.5em;
}

.wordmark .wm-role {
    color: var(--muted);
}

.site-nav {
    display: flex;
    gap: 1.75rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

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

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

.menu-toggle {
    display: none;
    font: 500 0.78rem var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: none;
    border: 1px solid var(--ink);
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .wordmark .wm-role {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        padding: 0.5rem var(--gutter) 1rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--rule);
        font-size: 0.9rem;
    }

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

/* ---------- Page ---------- */

.site-main {
    flex: 1;
    padding-top: clamp(2rem, 6vw, 4.5rem);
    padding-bottom: clamp(4rem, 10vw, 7rem);
}

.page-head {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--rule);
}

.page-head .title {
    margin: 0.6rem 0 0;
}

.page-head .lede {
    margin: 1rem 0 0;
    max-width: 60ch;
    font-size: 1.1rem;
}

.section {
    padding: 0;
    margin-top: clamp(3rem, 8vw, 5.5rem);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 0;
}

.section-head a {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

/* Key/value table: stack, status, etc. */
.spec-table {
    display: grid;
    grid-template-columns: minmax(7rem, 11rem) 1fr;
    margin: 0;
    border-top: 1px solid var(--rule);
}

.spec-table dt,
.spec-table dd {
    margin: 0;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
}

.spec-table dt {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.85rem;
}

.spec-table dd {
    color: var(--ink);
}

@media (max-width: 640px) {
    .spec-table {
        grid-template-columns: 1fr;
    }

    .spec-table dt {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .spec-table dd {
        padding-top: 0.2rem;
    }
}

.status-dot {
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.5em;
    vertical-align: 0.1em;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

/* Row list: blog posts, other services. */
.index-list > li {
    border-bottom: 1px solid var(--rule);
}

.index-row {
    display: grid;
    grid-template-columns: 11rem 1fr auto;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.4rem 0;
    text-decoration: none;
    color: inherit;
}

.index-row .date {
    white-space: nowrap;
}

.index-row .row-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.index-row .row-preview {
    display: block;
    margin-top: 0.4rem;
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.index-row .row-arrow {
    font-family: var(--mono);
    color: var(--muted);
    transition: transform 0.15s, color 0.15s;
}

.index-row:hover .row-title,
.index-row:hover .row-arrow {
    color: var(--accent);
}

.index-row:hover .row-arrow {
    transform: translateX(4px);
}

.index-row .row-thumb {
    width: 96px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--rule);
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.2s;
}

.index-row:hover .row-thumb {
    filter: none;
}

@media (max-width: 640px) {
    .index-row {
        grid-template-columns: 1fr auto;
        gap: 0.35rem 1rem;
    }

    .index-row .date {
        grid-column: 1 / -1;
    }

    .index-row .row-arrow {
        display: none;
    }
}

/* Ruled grid of cells: services. */
.cell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.cell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.6rem 1.5rem 1.4rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.cell:hover {
    background: var(--paper-2);
}

.cell .cell-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    margin: 0;
}

.cell p {
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.cell .cell-more {
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.cell:hover .cell-more,
.cell:hover .cell-title {
    color: var(--accent);
}

/* Figures with numbered captions. */
.figure {
    margin: 0;
    border: 1px solid var(--rule);
    background: var(--paper-2);
}

.figure figcaption {
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.hero-greeting {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--muted);
    min-height: 1.6em;
}

.hero-greeting .caret {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    background: var(--accent);
    vertical-align: -0.15em;
    margin-left: 0.15em;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin: 1.25rem 0 2.25rem;
    color: var(--ink);
    max-width: 24ch;
}

.hero h1 .muted {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

#main-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: grab;
}

#main-image canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

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

    .hero .figure {
        max-width: 420px;
    }
}

/* ---------- Buttons & forms (over Bulma) ---------- */

.button,
a.button {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    height: auto;
    padding: 0.7rem 1.1rem;
    border-radius: 0;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.button:hover,
a.button:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.button.is-info,
.button.is-primary,
.button.is-link,
a.button.is-info,
a.button.is-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.button.is-info:hover,
.button.is-primary:hover,
.button.is-link:hover,
a.button.is-info:hover,
a.button.is-primary:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.button.is-small {
    font-size: 0.7rem;
    padding: 0.4rem 0.7rem;
}

.button.is-large {
    font-size: 0.82rem;
}

.button[disabled] {
    opacity: 0.35;
    background: transparent;
    color: var(--ink);
}

.label {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.input,
.textarea,
.select select {
    font-family: var(--sans);
    font-size: 1rem;
    border-radius: 0;
    border: 1px solid var(--rule);
    background: var(--field);
    color: var(--ink);
    box-shadow: none;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--muted);
}

.input:hover,
.textarea:hover {
    border-color: var(--muted);
}

.input:focus,
.textarea:focus,
.input:focus-visible,
.textarea:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    outline: none;
}

.control.has-icons-left .icon,
.control.has-icons-right .icon {
    color: var(--muted);
}

.help {
    font-family: var(--mono);
    font-size: 0.75rem;
}

.notification {
    border-radius: 0;
}

.block-form {
    max-width: 640px;
    padding: 1.75rem;
    border: 1px solid var(--rule);
    background: var(--paper-2);
}

.centered-form .block-form {
    margin-left: auto;
    margin-right: auto;
}

.block-form .title.is-2 {
    font-size: 1.4rem;
}

.disclaimer-text {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--muted);
}

/* honeypot fields for the public contact/subscribe forms (see isBotSubmission) */
.bt {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Articles ---------- */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

@media (max-width: 1023px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.full-article {
    max-width: var(--measure);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 1rem;
}

.agent-byline {
    color: var(--accent);
}

.draft-banner {
    font-family: var(--mono);
    font-size: 0.8rem;
    border: 1px dashed var(--accent);
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.5rem;
}

.article-hero {
    margin: 0 0 2.5rem;
    border: 1px solid var(--rule);
}

.article-hero img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.prose {
    font-size: 1.06rem;
}

.prose p,
.prose li {
    color: var(--ink-2);
}

.prose h2,
.prose h3,
.prose h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.25;
    margin: 2.4rem 0 0.8rem;
}

.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose h4 { font-size: 1.05rem; }

.prose ul,
.prose ol {
    margin: 0 0 1.4rem 1.25rem;
}

.prose ul {
    list-style: square;
}

.prose ol {
    list-style: decimal;
}

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

.prose li::marker {
    color: var(--accent);
}

.prose blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 2px solid var(--accent);
    color: var(--ink-2);
}

.prose img {
    border: 1px solid var(--rule);
    margin: 0.5rem 0 1.5rem;
}

.prose video,
.prose iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--rule);
    background: var(--field);
    margin: 0.5rem 0 1.5rem;
}

.prose iframe {
    height: 420px;
}

.prose video {
    height: auto;
}

.prose figure {
    margin: 0 0 1.5rem;
}

.prose figure > img,
.prose figure > video,
.prose figure > iframe {
    margin-bottom: 0.5rem;
}

.prose figcaption {
    font-size: 0.85rem;
    color: var(--muted);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.prose th,
.prose td {
    text-align: left;
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid var(--rule);
}

.prose th {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.aside-block + .aside-block {
    margin-top: 2.5rem;
}

.aside-block .index-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1rem 0;
}

.aside-block .index-row .row-title {
    font-size: 1rem;
}

.aside-block .index-row .row-arrow {
    display: none;
}

/* Share buttons under a post */
.share {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

.share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.share-link {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1;
    padding: 0.55rem 0.8rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
}

.share-link:hover,
.share-link:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

.share-link.is-done {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

/* Comments */
.comments {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink);
}

article.comment {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule);
}

article.comment.child-comment {
    border-left: 1px solid var(--rule);
    padding-left: 1rem;
}

.comment-meta {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

article.comment p {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
}

#comment-form {
    margin-top: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--ink);
    padding: 3rem 0 2.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-grid .label-mono {
    margin-bottom: 0.9rem;
}

.footer-grid li {
    margin-bottom: 0.4rem;
}

.footer-grid a {
    text-decoration: none;
    color: var(--ink-2);
}

.footer-grid a:hover {
    color: var(--accent);
}

.footer-id p {
    max-width: 32ch;
    font-size: 0.9rem;
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.footer-base a {
    color: var(--muted);
}

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

    .footer-id {
        grid-column: 1 / -1;
    }
}

/* ---------- Motion ---------- */

.ghost-type {
    visibility: hidden;
}

.slide-up-animation {
    animation: slideUp 0.6s ease-out both;
}

@keyframes slideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ghost-type {
        visibility: visible;
    }
}

/* The sticky sidebar sticks within its column, so the column has to be as
   tall as the article next to it. */
.article-layout > aside {
    align-self: stretch;
}

/* ---------- Work ---------- */

.index-row .row-client {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--muted);
}

.cell .cell-stack {
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--ink-2);
}

.lab-grid .cell:hover {
    background: transparent;
}

.lab-grid .cell-title a {
    text-decoration: none;
}

.small-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.results {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 2px solid var(--accent);
    background: var(--paper-2);
}

.results .eyebrow {
    margin-bottom: 0.75rem;
}

.results li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.45rem;
    color: var(--ink);
}

.results li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-family: var(--mono);
    color: var(--accent);
}

/* Spec table in a narrow sidebar: keys above values. */
.spec-table-stacked {
    grid-template-columns: 1fr;
}

.spec-table-stacked dt {
    border-bottom: 0;
    padding-bottom: 0;
}

.spec-table-stacked dd {
    padding-top: 0.2rem;
}

.next-case {
    margin-top: 4rem;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

/* ---------- Service pages ---------- */

.cta-box {
    padding: 1.25rem;
    border: 1px solid var(--ink);
}

.cta-box p {
    font-size: 0.92rem;
    margin: 0.6rem 0 1rem;
}

.faq dt {
    margin-top: 1.4rem;
    font-weight: 600;
    color: var(--ink);
}

.faq dd {
    margin: 0.35rem 0 0;
    color: var(--ink-2);
}

/* Fig. 1: the dithered hero. The canvas is drawn at one pixel per CSS pixel
   and scaled with nearest-neighbour so the 1-bit pattern stays crisp. */
.dither-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    image-rendering: pixelated;
    touch-action: none;
    cursor: crosshair;
}

.dither-canvas:active {
    cursor: grabbing;
}

.figure-note {
    margin: 0;
    padding: 0.55rem 0.75rem 0.65rem;
    border-top: 1px solid var(--rule);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ---------- Shape ----------
 * Corner radius from the Appearance settings (0 keeps the square look).
 * Last in the file so it wins over the per-component rules above. */

.button,
a.button,
.input,
.textarea,
.select select,
.notification,
pre,
.block-form,
.cta-box,
.figure,
.article-hero,
.index-row .row-thumb,
.prose img,
.prose video,
.prose iframe {
    border-radius: var(--radius);
}

.article-hero,
.figure,
.index-row .row-thumb {
    overflow: hidden;
}

/* Prism's stylesheet loads after this one, so these need the extra .prose
   to win. Its dark code colors stay; the font and corners follow the theme. */
.prose pre[class*="language-"],
.prose code[class*="language-"] {
    font-family: var(--mono);
}

.prose pre[class*="language-"] {
    border-radius: var(--radius);
}
