/* ==========================================================================
   Full Beans — site styles
   Brand: Karla (headings) + DM Sans (body); palette from the Oakfold guide.
   ========================================================================== */

/* Fonts (self-hosted variable fonts) ------------------------------------- */
@font-face {
    font-family: "Karla";
    src: url("../fonts/karla-latin-wght.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-latin-wght.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* Tokens ------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --sky: #d0e4ec;
    --mint: #d9eace;
    --peach: #ffcaad;
    --blue: #4351ec;
    --teal: #38d5ab;
    --coral: #ff6f6c;

    /* Neutrals */
    --ink: #231f20;
    --ink-soft: #3a3536;
    --paper: #fbfaf7;
    --surface: #ffffff;
    --muted: #5d5759;
    --line: #e7e3dd;

    --font-heading: "Karla", ui-sans-serif, system-ui, sans-serif;
    --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;

    --radius: 20px;
    --radius-sm: 12px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-space: clamp(72px, 10vw, 140px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
}

h3 {
    font-size: 1.3rem;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

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

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 3px;
    background: currentColor;
}

/* The logo's underscore, used as a full stop on big headings. */
.underscore {
    display: inline-block;
    width: .55em;
    height: .11em;
    margin-left: .08em;
    background: currentColor;
    vertical-align: baseline;
}

/* Buttons ---------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 26px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 700 1rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}

.button:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--ink);
    transform: translateY(-2px);
}

.button--ghost {
    background: transparent;
    color: var(--ink);
}

.button--ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.button--accent {
    background: var(--peach);
    border-color: var(--peach);
    color: var(--ink);
}

.button--accent:hover {
    background: var(--mint);
    border-color: var(--mint);
}

.button--small {
    padding: 10px 18px;
    font-size: .9rem;
}

.button[disabled] {
    opacity: .6;
    cursor: progress;
    transform: none;
}

/* Header ------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(251 250 247 / .94);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo img {
    width: clamp(150px, 18vw, 200px);
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .site-nav {
        display: none;
    }

    .site-header .button {
        margin-left: auto;
    }
}

/* Hero ---------------------------------------------------------------- */
.hero {
    padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero__title {
    font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
    letter-spacing: -.035em;
    margin-bottom: 28px;
}

.hero__lead {
    max-width: 38em;
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Brand blocks echoing the three logo lock-ups. */
.hero__art {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.hero__block {
    display: inline-block;
    padding: .45em .7em;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 1rem + 2.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    animation: block-in .9s var(--ease) both;
}

.hero__block--peach {
    background: var(--peach);
    animation-delay: .1s;
}

.hero__block--mint {
    background: var(--mint);
    margin-left: 12%;
    animation-delay: .22s;
}

.hero__block--sky {
    background: var(--sky);
    margin-left: 24%;
    animation-delay: .34s;
}

@keyframes block-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
}

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

    .hero__art {
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 8px;
    }

    .hero__block {
        font-size: .95rem;
        margin-left: 0 !important;
    }
}

/* Sections ---------------------------------------------------------------- */
.section {
    padding-block: var(--section-space);
}

.section--tinted {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.section--dark {
    background: var(--ink);
    color: #f4f1ec;
}

.section__header {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section__header h2 {
    margin-bottom: 16px;
}

.section__intro {
    color: var(--muted);
    font-size: 1.125rem;
}

/* Bento grid ------------------------------------------------------------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(250px, auto);
    grid-auto-flow: dense;
    gap: 16px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: clamp(20px, 2.4vw, 28px);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tile-bg);
    color: var(--tile-fg);
    text-decoration: none;
    isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.tile--large {
    grid-column: span 2;
    grid-row: span 2;
}

.tile--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
}

.tile--tall {
    grid-row: span 2;
}

.tile--small {
    justify-content: flex-end;
}

/* Tile colourways. Light text only on colours that pass AA contrast. */
.accent-sky   { --tile-bg: var(--sky);   --tile-fg: var(--ink); }
.accent-mint  { --tile-bg: var(--mint);  --tile-fg: var(--ink); }
.accent-peach { --tile-bg: var(--peach); --tile-fg: var(--ink); }
.accent-teal  { --tile-bg: var(--teal);  --tile-fg: var(--ink); }
.accent-coral { --tile-bg: var(--coral); --tile-fg: var(--ink); }
.accent-blue  { --tile-bg: var(--blue);  --tile-fg: #fff; }
.accent-ink   { --tile-bg: var(--ink);   --tile-fg: #fff; }

.tile--link:hover,
.tile--cta:hover,
.tile:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -18px rgb(35 31 32 / .35);
}

.tile__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.tile--wide .tile__body {
    flex: 1 1 45%;
    justify-content: flex-end;
}

.tile__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.tile--large .tile__title {
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem);
}

.tile__title a {
    text-decoration: none;
}

/* Stretch the link over the whole tile. */
.tile__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.tile:has(.tile__title a) {
    cursor: pointer;
}

.tile__title a:focus-visible {
    outline: none;
}

.tile:has(.tile__title a:focus-visible) {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.tile__meta {
    margin: 0;
    font-size: .9rem;
    opacity: .78;
}

.tile__summary {
    margin: 6px 0 0;
    max-width: 34em;
    font-size: .975rem;
}

.tile__stat {
    margin: 0 0 auto;
    font-size: .95rem;
}

.tile__stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.tile__badge {
    align-self: flex-start;
    margin: 10px 0 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .85rem;
}

.tile__badge strong {
    font-family: var(--font-heading);
}

.tile__arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tile-fg);
    color: var(--tile-bg);
    font-size: 1.1rem;
    transition: transform .35s var(--ease);
}

.tile--link:hover .tile__arrow,
.tile--cta:hover .tile__arrow {
    transform: rotate(45deg) scale(1.08);
}

.tile--cta:hover .tile__arrow {
    transform: translateX(4px) scale(1.08);
}

.tile--cta .tile__title {
    display: block;
}

/* Mini browser frame holding a screenshot. */
.frame {
    flex: 1 1 auto;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 1px 0 rgb(35 31 32 / .06), 0 14px 30px -18px rgb(35 31 32 / .35);
}

.tile--large .frame {
    min-height: 280px;
}

.tile--wide .frame {
    flex: 1 1 55%;
    order: 2;
    margin: 0 calc(clamp(20px, 2.4vw, 28px) * -1) calc(clamp(20px, 2.4vw, 28px) * -1) 0;
    border-radius: var(--radius-sm) 0 0 0;
}

.frame__bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.frame__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
}

.frame__shot {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s var(--ease);
}

.tile--link:hover .frame__shot {
    transform: scale(1.03);
}

/* Neutral page mock-up used until a screenshot is provided. */
.frame__mock {
    flex: 1;
    display: grid;
    grid-template-rows: 40% auto auto 1fr;
    gap: 10px;
    padding: 14px;
}

.frame__mock i {
    border-radius: 6px;
    background: rgb(35 31 32 / .07);
}

.frame__mock i:nth-child(1) { background: var(--tile-bg); opacity: .6; }
.frame__mock i:nth-child(2) { width: 70%; height: 12px; }
.frame__mock i:nth-child(3) { width: 45%; height: 12px; }
.frame__mock i:nth-child(4) { min-height: 30px; }

/* Large tiles show the whole 16:10 screenshot, uncropped. */
.tile--large .frame {
    flex: none;
    min-height: 0;
}

.tile--large .frame__shot {
    flex: none;
    height: auto;
}

/* Desktop + phone mockup on large tiles. */
.tile__media {
    position: relative;
    margin: auto 9% auto 0; /* centred in any spare height */
    padding-bottom: 56px;   /* room for the phone hanging below */
}

.tile .frame--phone.frame--overlay {
    position: absolute;
    right: -9%;
    bottom: 0;
    width: 31%;
    min-height: 0;
    aspect-ratio: 400 / 780;
    border-width: 5px;
    border-radius: 22px;
}

.frame--overlay .frame__shot {
    border-radius: 17px;
}

/* Wide tiles: give the screenshot more room and keep the logo in view. */
.tile--wide .frame {
    flex-basis: 58%;
}

.tile--wide .frame__shot {
    object-position: left top;
}

.tile--wide.tile--cta .tile__title {
    font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
}

/* Phone frame for tall tiles: shows the mobile screenshot. */
.frame--phone {
    align-self: center;
    width: min(100%, 240px);
    min-height: 300px;
    border: 7px solid var(--ink);
    border-radius: 30px;
    background: var(--ink);
    box-shadow: 0 22px 40px -22px rgb(35 31 32 / .55);
}

.frame--phone .frame__shot {
    border-radius: 23px;
}

.frame--phone .frame__mock {
    border-radius: 23px;
    background: var(--surface);
}

/* Platform chips, e.g. "Shopify". */
.tile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

.tile__tags li {
    padding: 3px 10px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: .85;
}

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

@media (max-width: 600px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .tile--large,
    .tile--wide,
    .tile--tall {
        grid-column: auto;
        grid-row: auto;
    }

    .tile--wide {
        flex-direction: column;
    }

    .tile--wide .frame {
        order: 0;
        margin: 0;
        border-radius: var(--radius-sm);
    }

    .tile--small {
        min-height: 200px;
    }

    .tile--large .frame,
    .frame {
        min-height: 0;
        aspect-ratio: 16 / 11;
    }

    .tile .frame--phone {
        width: min(100%, 230px);
        aspect-ratio: 400 / 620;
    }
}

/* Services ------------------------------------------------------------------ */
.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color .25s, transform .35s var(--ease);
}

.service:hover {
    border-color: var(--ink);
    transform: translateY(-3px);
}

.service__number {
    display: inline-block;
    margin-bottom: 40px;
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .85rem;
    background: var(--mint);
}

.service:nth-child(2) .service__number { background: var(--sky); }
.service:nth-child(3) .service__number { background: var(--peach); }
.service:nth-child(4) .service__number { background: var(--mint); }

.service h3 {
    margin-bottom: 10px;
}

.service p {
    margin: 0;
    color: var(--muted);
    font-size: .975rem;
}

@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .service__number {
        margin-bottom: 20px;
    }
}

/* About ------------------------------------------------------------------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.about__body {
    font-size: 1.125rem;
}

.about__facts {
    display: grid;
    gap: 0;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.about__facts li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 1rem;
}

.about__facts strong {
    color: var(--ink);
    font-family: var(--font-heading);
}

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

/* Contact --------------------------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.contact__intro {
    position: sticky;
    top: 110px;
}

.contact__intro h2 {
    margin-bottom: 20px;
}

.contact__intro p {
    color: #c9c3bd;
    font-size: 1.125rem;
}

.contact__intro a {
    color: #fff;
}

.contact__panel {
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: var(--radius);
    background: var(--ink-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
    font-size: .95rem;
}

.field__optional {
    font-weight: 400;
    color: #b3ada7;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #5a5455;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.field select {
    appearance: none;
    padding-right: 44px;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--peach);
    box-shadow: 0 0 0 3px rgb(255 202 173 / .3);
}

.field [aria-invalid="true"] {
    border-color: var(--coral);
}

.field__error {
    margin: 0;
    color: #ffb3b1;
    font-size: .9rem;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-turnstile {
    margin-top: 20px;
}

.contact-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 24px;
}

.contact-form__privacy {
    flex: 1 1 260px;
    margin: 0;
    color: #b3ada7;
    font-size: .9rem;
}

.form-status {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.form-status:focus {
    outline: none;
}

.form-status--success {
    background: var(--mint);
    color: var(--ink);
    margin-bottom: 0;
}

.form-status--error {
    background: #4a2726;
    color: #ffd6d5;
}

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

    .contact__intro {
        position: static;
    }
}

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

    .contact-form__footer .button {
        width: 100%;
    }
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
    padding-block: clamp(56px, 8vw, 96px) 32px;
    background: var(--ink);
    color: #f4f1ec;
    border-top: 1px solid #3a3536;
}

/* The "expanding logo" from the brand guide: F____B. */
.expanding-logo {
    display: flex;
    align-items: baseline;
    gap: .12em;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 1rem + 9vw, 9rem);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.expanding-logo__line {
    flex: 1;
    height: .13em;
    background: currentColor;
    transform-origin: left;
    transition: transform 1.2s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
    .js .expanding-logo:not(.is-visible) .expanding-logo__line {
        transform: scaleX(.08);
    }
}

.site-footer__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #3a3536;
}

.site-footer__tagline {
    margin: 0;
    font-size: 1.125rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a {
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__legal {
    padding-top: 24px;
    color: #a9a29c;
    font-size: .85rem;
}

/* Prose pages (privacy, cookies, errors) --------------------------------- */
.prose-page {
    padding-block: clamp(56px, 8vw, 110px) var(--section-space);
}

.prose {
    max-width: 720px;
}

.prose h1 {
    font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
    margin-bottom: 16px;
}

.prose h2 {
    font-size: 1.6rem;
    margin: 48px 0 12px;
}

.prose .updated {
    color: var(--muted);
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: .4em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

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

.prose .table-wrap {
    overflow-x: auto;
    margin-bottom: 1.25em;
}

.error-page {
    min-height: 50vh;
}

/* Scroll reveal (only when JS is running and motion is OK) -------------- */
@media (prefers-reduced-motion: no-preference) {
    /* Uses `translate` (not `transform`) so it never fights hover effects. */
    .js [data-reveal] {
        opacity: 0;
        translate: 0 24px;
        transition: opacity .8s var(--ease), translate .8s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
    }

    .js [data-reveal].is-visible {
        opacity: 1;
        translate: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
