/* Blazing website. One stylesheet for all blocks (Razor css isolation does not work for blocks).
   Mobile first from 360px. Every block is a full-width band with its content in .container. */

@font-face {
    font-family: "Geist";
    src: url("/fonts/Geist-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("/fonts/Geist-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("/fonts/Geist-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --red: #e61b1b;
    --red-hover: #cc1414;
    --red-active: #dc2626;
    --red-soft: #fdecec;
    --ink: #0f172a;
    --text: #475569;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --white: #ffffff;
    --grey: #f8fafc;
    --grey-2: #f1f5f9;
    --code-bg: #0f172a;
    --code-ink: #e2e8f0;
    --font: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --container: 75rem;
    --gutter: 1.25rem;
    --band: 3rem;
    --header-height: 4rem;
}

@media (min-width: 768px) {
    :root {
        --gutter: 1.5rem;
        --band: 4.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --gutter: 2rem;
        --band: 6rem;
        --header-height: 4.5rem;
    }
}

/* ---------------------------------------------------------------- base */

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

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

body {
    margin: 0;
    min-width: 20rem;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    text-wrap: balance;
}

p {
    margin: 0;
}

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

picture {
    display: block;
}

a {
    color: var(--ink);
    text-decoration-color: var(--line-strong);
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

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

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
}

/* ---------------------------------------------------------------- shared parts */

.block {
    position: relative;
    padding: var(--band) 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.bg-white {
    background: var(--white);
}

.bg-grey {
    background: var(--grey);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red);
}

.eyebrow::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: currentColor;
}

.block-head {
    max-width: 46rem;
    margin-bottom: 2.5rem;
}

.block-title {
    font-size: 1.75rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.block-intro {
    margin-top: 1rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .block-title {
        font-size: 2.25rem;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .block-intro {
        font-size: 1.125rem;
    }
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-large {
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.button-primary {
    color: var(--white);
    background: var(--red);
}

.button-primary:hover {
    color: var(--white);
    background: var(--red-hover);
}

.button-primary:active {
    background: var(--red-active);
}

.button-secondary {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
}

.button-secondary:hover {
    background: var(--grey);
    border-color: var(--line-strong);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--grey-2);
    border-radius: 0.375rem;
}

/* A screenshot of the management environment in a simple browser frame. */
.frame {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

.frame-bar {
    display: flex;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    background: var(--grey);
    border-bottom: 1px solid var(--line);
}

.frame-bar span {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--line-strong);
}

.frame-shot img {
    width: 100%;
}

/* Rich text from the editor. */
.rich {
    font-size: 1rem;
    line-height: 1.65;
}

.rich > * + * {
    margin-top: 1rem;
}

.rich h2,
.rich h3,
.rich h4 {
    margin-top: 1.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

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

.rich ul,
.rich ol {
    padding-left: 1.25rem;
}

.rich li + li {
    margin-top: 0.375rem;
}

/* Lists in rich text get a check: the "voordelen" of the design. */
.rich ul {
    padding-left: 0;
    list-style: none;
}

.rich ul li {
    position: relative;
    padding-left: 1.75rem;
}

.rich ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e61b1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.6875rem no-repeat;
}

.rich table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rich th,
.rich td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.rich th {
    font-weight: 600;
    color: var(--ink);
    background: var(--grey);
}

.rich tr:last-child td {
    border-bottom: 0;
}

.rich td:first-child {
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

@media (max-width: 599px) {
    .rich table,
    .rich tbody,
    .rich tr,
    .rich td {
        display: block;
    }

    .rich thead,
    .rich tr:first-child:has(th) {
        display: none;
    }

    .rich td {
        padding: 0.25rem 1rem;
        border: 0;
    }

    .rich td:first-child {
        padding-top: 0.875rem;
        white-space: normal;
    }

    .rich td:last-child {
        padding-bottom: 0.875rem;
        border-bottom: 1px solid var(--line);
    }
}

.rich code {
    padding: 0.1em 0.35em;
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--ink);
    background: var(--red-soft);
    border-radius: 0.25rem;
}

/* The flame of the logo as a quiet background, always inside its own band. */
.has-flame::before {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background: url("/images/flame-decoration.svg") no-repeat center / contain;
}

.has-flame > .container {
    position: relative;
    z-index: 1;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(8px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    flex: none;
}

.site-logo-full img {
    width: auto;
    height: 2.75rem;
}

@media (min-width: 1024px) {
    .site-logo-full img {
        height: 3.25rem;
    }
}

.site-logo-mark {
    display: none;
}

.site-logo-mark img {
    width: auto;
    height: 2.25rem;
}

/* On a small screen only the flame: the line "CONTENT MANAGEMENT SYSTEM" would be unreadable. */
@media (max-width: 479px) {
    .site-logo:has(.site-logo-mark) .site-logo-full {
        display: none;
    }

    .site-logo-mark {
        display: block;
    }
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle-bars {
    position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-bars::before {
    top: -6px;
}

.menu-toggle-bars::after {
    top: 6px;
}

.menu-open .menu-toggle-bars {
    background: transparent;
}

.menu-open .menu-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile: the menu opens under the header, inside the header band. */
.site-menu {
    display: none;
}

.menu-open .site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
}

.site-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav-list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.site-nav-list a.active {
    color: var(--red);
}

.language-switch {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.1875rem;
    background: var(--grey-2);
    border-radius: var(--radius);
}

.language-switch a {
    padding: 0.3125rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-decoration: none;
    border-radius: 0.375rem;
}

.language-switch a:hover {
    color: var(--ink);
}

.language-switch a.active {
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
}

@media (min-width: 900px) {
    .menu-toggle {
        display: none;
    }

    .site-menu,
    .menu-open .site-menu {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .site-nav-list {
        display: flex;
        gap: 0.25rem;
    }

    .site-nav-list a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9375rem;
        color: var(--muted);
        border: 0;
        border-radius: var(--radius);
    }

    .site-nav-list a:hover {
        color: var(--ink);
        background: var(--grey-2);
    }

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

    .language-switch {
        align-self: auto;
    }
}

/* ---------------------------------------------------------------- hero */

.hero {
    padding: 3rem 0 3.5rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-content {
    max-width: 40rem;
}

.hero-text-only .hero-content {
    max-width: 50rem;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h2.hero-title {
    font-size: 2rem;
}

.hero-text {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.hero.has-flame::before {
    width: 22rem;
    height: 38rem;
    right: -11rem;
    top: -4rem;
    opacity: 0.35;
}

@media (min-width: 1024px) {
    .hero {
        padding: 5.5rem 0 6rem;
    }

    .hero-with-image .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .hero-with-image .hero-content {
        flex: 0 1 30rem;
    }

    .hero-visual {
        flex: 1 1 0;
        min-width: 0;
    }

    .hero-title {
        font-size: 3.25rem;
        line-height: 1.12;
        letter-spacing: -0.03em;
    }

    h2.hero-title {
        font-size: 2.75rem;
    }

    .hero-text {
        font-size: 1.1875rem;
    }

    /* Behind the screenshot, away from the text. */
    .hero.has-flame::before {
        width: 26rem;
        height: 45rem;
        left: auto;
        right: -4rem;
        top: -6rem;
        opacity: 0.7;
    }
}

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

.cards-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.bg-white .card {
    background: var(--grey);
    box-shadow: none;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--red);
    background: var(--red-soft);
    border-radius: var(--radius);
}

.card-title {
    font-size: 1.1875rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.card-text {
    margin-top: 0.5rem;
    font-size: 0.9688rem;
}

@media (min-width: 640px) {
    .cards-cols-2 .cards-list,
    .cards-cols-3 .cards-list,
    .cards-cols-4 .cards-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-list {
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }

    .cards-cols-3 .cards-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .cards-cols-4 .cards-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .cards-cols-4 .card {
        padding: 1.5rem;
    }
}

/* Numbered steps */
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    background: var(--ink);
    border-radius: 50%;
}

.card-top-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--muted);
}

/* A list next to the heading */
@media (min-width: 1024px) {
    .cards-rows .cards-inner {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 4rem;
        align-items: start;
    }

    .cards-rows .block-head {
        margin-bottom: 0;
    }
}

.cards-rows .cards-list,
.cards-rows.cards-cols-2 .cards-list,
.cards-rows.cards-cols-3 .cards-list,
.cards-rows.cards-cols-4 .cards-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.cards-rows .card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
}

.cards-rows .card-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.cards-rows .card-title {
    font-size: 1.0625rem;
}

.cards-rows .card-text {
    margin-top: 0.25rem;
}

/* ---------------------------------------------------------------- text with image */

.text-image-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.text-image-content .rich {
    margin-top: 1.25rem;
}

.text-image-text-only .text-image-content {
    max-width: 50rem;
}

@media (min-width: 1024px) {
    .text-image-left .text-image-inner,
    .text-image-right .text-image-inner {
        flex-direction: row;
        align-items: center;
        gap: 4.5rem;
    }

    .text-image-left .text-image-inner {
        flex-direction: row-reverse;
    }

    .text-image-left .text-image-content,
    .text-image-right .text-image-content {
        flex: 0 1 28rem;
    }

    .text-image-visual {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* ---------------------------------------------------------------- code */

.code-block-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.code-block-content .rich {
    margin-top: 1.25rem;
}

.code-panel {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    background: var(--code-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

.code-label {
    padding: 0.75rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
}

.code-panel pre {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--code-ink);
    tab-size: 4;
}

@media (min-width: 1024px) {
    .code-block-inner {
        flex-direction: row;
        align-items: center;
        gap: 4.5rem;
    }

    .code-left .code-block-inner {
        flex-direction: row-reverse;
    }

    .code-block-content {
        flex: 0 1 26rem;
    }

    .code-panel {
        flex: 1 1 0;
    }

    .code-panel pre {
        padding: 1.5rem;
        font-size: 0.875rem;
    }
}

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

.cta {
    background: var(--red-soft);
    text-align: center;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 48rem;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    color: var(--red);
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.cta-title {
    font-size: 1.75rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.cta-text {
    margin-top: 1rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.cta.has-flame::before {
    width: 18rem;
    height: 31rem;
    left: -5rem;
    bottom: -9rem;
    background-image: url("/images/flame-decoration-strong.svg");
    opacity: 0.55;
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 2.25rem;
    }

    .cta.has-flame::before {
        width: 24rem;
        height: 42rem;
        left: 4%;
        bottom: -14rem;
    }
}

/* ---------------------------------------------------------------- contact */

.contact-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.contact-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--red);
    background: var(--red-soft);
    border-radius: var(--radius);
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
}

.contact-detail-label {
    font-size: 0.8125rem;
    color: var(--muted);
}

.contact-detail-value {
    font-weight: 500;
    color: var(--ink);
}

.contact-form {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form-title {
    font-size: 1.25rem;
}

.contact-form-intro {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.contact-form-intro + .blazing-form,
.contact-form-title + .blazing-form {
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .contact-inner {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 4rem;
        align-items: start;
    }

    .contact-form {
        padding: 2.5rem;
    }
}

/* ---------------------------------------------------------------- forms of Blazing (blazing-form-*) */

.blazing-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blazing-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.blazing-form label,
.blazing-form legend {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
}

.blazing-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

/* The normal field style in :where(), so the error style below always wins. */
:where(.blazing-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(.blazing-form) textarea {
    min-height: 8rem;
    resize: vertical;
}

:where(.blazing-form) ::placeholder {
    color: #94a3b8;
}

:where(.blazing-form) :where(input, select, textarea):focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230, 27, 27, 0.12);
}

.blazing-form input[type="checkbox"],
.blazing-form input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0 0.5rem 0 0;
    accent-color: var(--red);
    vertical-align: -0.2em;
}

.blazing-form-help {
    font-size: 0.8125rem;
    color: var(--muted);
}

.blazing-form-error[hidden] {
    display: none;
}

.blazing-form-error {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #b91c1c;
}

.blazing-form-invalid input,
.blazing-form-invalid select,
.blazing-form-invalid textarea {
    border-color: #dc2626;
    background: #fffafa;
}

.blazing-form-status:empty {
    display: none;
}

.blazing-form-status {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--ink);
    background: var(--grey-2);
    border-radius: var(--radius);
}

.blazing-form-success {
    padding: 1.25rem 1.5rem;
    color: var(--ink);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
}

.blazing-form-submit {
    align-self: flex-start;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    font: inherit;
    font-weight: 500;
    color: var(--white);
    background: var(--red);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.blazing-form-submit:hover {
    background: var(--red-hover);
}

.blazing-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* The trap for bots: never visible, also not by a rule elsewhere. */
.blazing-form-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

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

.site-footer {
    padding: 3rem 0 2.5rem;
    background: var(--white);
    border-top: 1px solid var(--line);
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer-mark img {
    width: auto;
    height: 2.5rem;
}

.site-footer-text {
    max-width: 26rem;
    font-size: 0.9375rem;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--red);
}

.site-footer-copyright {
    font-size: 0.8125rem;
    color: var(--muted);
}

@media (min-width: 1024px) {
    .site-footer-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 2rem 4rem;
    }

    .site-footer-copyright {
        grid-column: 1 / -1;
        padding-top: 1.5rem;
        border-top: 1px solid var(--line);
    }
}

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

    * {
        transition: none !important;
    }
}
