/* Kizuki site styles. Dark theme only. Values from docs/branding/design-system/tokens.json v2. */
@font-face {
    font-family: "Spectral";
    src: url("fonts/Spectral-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("fonts/PublicSans-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("fonts/PublicSans-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Spline Sans Mono";
    src: url("fonts/SplineSansMono-Variable.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --canvas: #0b0b0b;
    --surface: #212121;
    --surface-strong: #353535;
    --border: #212121;
    --border-strong: #353535;
    --ink: #ffffff;
    --body: #b9b9b9;
    --muted: #8a8a8a;
    --accent: #69c1fc;
    --accent-hover: #8ccffd;
    --on-accent: #0b0b0b;
    --accent-text: #8ccffd;
    --accent-soft: #0e2c3f;
    /* Controls and labels (2026-11-10). A neutral edge for secondary buttons
       (3.49:1 on surface, 4.27:1 on canvas), one translucent white step for
       a lifted control or a status label, and the Top button's fill. */
    --control-border: #757575;
    --control-lift: rgba(255, 255, 255, 0.08);
    --label-fill: rgba(255, 255, 255, 0.08);
    --float-fill: #353535;
    --float-fill-hover: #424242;

    --font-display: "Spectral", Georgia, "Times New Roman", serif;
    --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;

    --space-1: 1px;
    --space-2: 2px;
    --space-3: 4px;
    --space-4: 6px;
    --space-5: 8px;
    --space-6: 12px;
    --space-7: 16px;
    --space-8: 24px;
    --space-9: 32px;
    --space-10: 48px;
    --space-11: 64px;
    --space-12: 112px;

    --radius-xs: 3px;
    --radius-sm: 5px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-pill: 9999px;

    /* Motion (Emil Kowalski's curves: strong ease-out for UI, ease-in-out for movement on screen) */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --dur-press: 160ms;
    --dur-state: 150ms;
    --dur-enter: 200ms;
    --dur-exit: 120ms;
    /* The first entrance of a page runs once, so it may be slower than UI
       feedback: a gentler ease-out keeps the fade visible for its whole length. */
    --ease-entrance: cubic-bezier(0.33, 1, 0.68, 1);
    --dur-entrance: 700ms;
    --stagger: 80ms;

    --wrap: 1520px;
    --gutter: clamp(16px, 5vw - 32px, 80px);
}

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

html {
    background: #0b0b0b;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 400 16px/1.6 var(--font-body);
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
    font-synthesis: none;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 640px) {
    body {
        font-size: 17px;
    }
}

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

a {
    color: var(--body);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    a:hover {
        color: var(--accent-hover);
    }
}

h1,
h2,
h3,
p,
dl,
dd {
    margin: 0;
}

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

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

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

.skip {
    position: absolute;
    top: -100px;
    left: var(--space-7);
    z-index: 10;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--canvas);
    font: 400 15px/1.5 var(--font-body);
}

.skip:focus {
    top: var(--space-7);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.hero__copy,
.hero__aside,
.run,
.actor,
.actor__name,
.actor__desc,
.share,
.about__text,
.footer__base {
    min-width: 0;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
}

/* The way back up (nav.js). With the script, the header sticks, slides away
   while reading down and returns on a small scroll up. Without it, nothing
   here applies and the header scrolls away as a plain block. */
.js-nav .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--canvas);
    transition: transform 220ms var(--ease-out);
}

.js-nav .site-header[data-state="shown"] {
    border-bottom-color: var(--border-strong);
}

.js-nav .site-header[data-state="hidden"] {
    transform: translateY(-100%);
}

/* Anchored headings land below the header when it comes back. */
main [id] {
    scroll-margin-top: 104px;
}

/* Top: a zero-height sticky dock at the end of <main>, so the link rides the
   bottom of the screen but stops above the footer instead of covering it.
   Owner, 2026-11-10: at the bottom of a page the button rested on the footer
   rule, and a sticky box cannot travel past the end of its container. The gap
   is therefore the dock's own padding-bottom, and <main> has to end at the
   footer rule for that gap to survive to the end of the page. `.page` used to
   carry that space as padding-bottom, which put the end of <main> 64px above
   the rule and pulled the resting button up by exactly that much; the space is
   now `.main-tail`, a block after the dock, so the dock reaches the rule and
   the button keeps one gap (space-7, or the safe area) both while scrolling
   and at rest. The button's own translateY(-100%) lifts it by its height
   alone: with border-box, -100% is the button's height plus the dock's
   padding, so the gap is not counted twice. */
.to-top-dock {
    position: sticky;
    bottom: 0;
    z-index: 15;
    display: flex;
    height: 0;
    justify-content: flex-end;
    padding-bottom: max(var(--space-7), env(safe-area-inset-bottom));
    pointer-events: none;
}

/* The space below <main>'s last block, kept after the dock (was .page's
   padding-bottom). A block, not a margin, so it does not collapse out of
   <main> and the dock's sticky range reaches the footer rule. */
.main-tail {
    height: var(--space-11);
}

/* Back to top (design-system README, "Back to top"): bottom right, an up
   arrow and the words, as NN/g and GOV.UK advise; Material's small FAB
   height (40px, 44px on touch screens) without its shadow. A neutral lifted
   pill, so it stands out from the page without borrowing the accent. */
.to-top {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    padding: 0 var(--space-7) 0 14px;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-pill);
    background: var(--float-fill);
    color: var(--ink);
    font: 500 15px/1.3 var(--font-body);
    white-space: nowrap;
    pointer-events: auto;
    /* Lifted clear of the dock by its own height, so the button keeps space-7
       (or the safe area) both while it rides the bottom of the screen and when
       it comes to rest above the footer rule. The gap itself is the dock's
       padding-bottom: with box-sizing: border-box, translateY(-100%) is the
       button's height plus that padding, so the button is lifted by its height
       alone and the gap is not counted twice. No JavaScript takes part. */
    transform: translateY(-100%);
    transform-origin: 100% 100%;
    /* Appears over dur-enter; leaves in a 150ms fade (owner, 2026-11-10:
       "フェードですぐに消えてほしい"). display is transitioned discretely so
       the fade can play before it hides; browsers without that simply hide it. */
    transition-property: background-color, opacity, scale, display;
    transition-duration: var(--dur-state), var(--dur-enter), var(--dur-enter), var(--dur-enter);
    transition-timing-function: ease-out, var(--ease-out), var(--ease-out), linear;
    transition-behavior: allow-discrete;
}

.to-top[hidden] {
    display: none;
    opacity: 0;
    transition-duration: var(--dur-state), var(--dur-state), 0s, var(--dur-state);
}

@starting-style {
    .to-top {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @starting-style {
        .to-top {
            scale: 0.95;
        }
    }
}

@media (max-width: 640px), (pointer: coarse) {
    .to-top {
        min-height: 44px;
    }
}

/* Under reduced motion the page jumps and the link goes at once. */
@media (prefers-reduced-motion: reduce) {
    .to-top,
    .to-top[hidden] {
        transition: none;
    }
}

.to-top svg {
    flex: none;
}

@media (hover: hover) and (pointer: fine) {
    .to-top:hover {
        background: var(--float-fill-hover);
        color: var(--ink);
    }
}

.nav {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

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

.brand svg {
    width: 72px;
    height: auto;
}

.wordmark__text {
    fill: var(--ink);
}

.wordmark__mark {
    fill: var(--accent);
}

.nav__links {
    display: flex;
    gap: var(--space-8);
    font: 400 16px/1.5 var(--font-body);
    letter-spacing: 0;
    white-space: nowrap;
}

.nav__links a {
    color: var(--body);
}

.nav__links a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

/* Hero */
.hero {
    padding: var(--space-12) 0 var(--space-11);
    border-bottom: 1px solid var(--border);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: var(--space-11);
    align-items: end;
}

.hero__copy {
    max-width: 900px;
}

.hero h1 {
    max-width: 7em;
    font-family: var(--font-display);
    font-size: clamp(52px, 8.5vw, 130px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    word-spacing: 0.03em;
    font-kerning: normal;
    text-wrap: balance;
}

.k-fy {
    letter-spacing: 0.02em;
}

.hero__lead {
    max-width: 46ch;
    margin-top: var(--space-8);
    color: var(--body);
    font-family: var(--font-body);
    font-size: clamp(17px, 1.3vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-wrap: pretty;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-7);
    margin-top: var(--space-9);
}

/* Action buttons (design-system README, "Actions"). Primary: the accent
   pill, once per view, never repeated in lists or cards. Secondary: a clear
   pill with a neutral edge and an ink label, for the action inside a card or
   a row (Raycast's store card). Both are at least 40px tall, 44px on phones
   and touch screens; the label is never mono and never under 15px. */
.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    padding: 0 var(--space-8);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--on-accent);
    font: 500 16px/1.3 var(--font-body);
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        border-color: var(--accent-hover);
        background: var(--accent-hover);
        color: var(--on-accent);
    }
}

.btn.btn--secondary {
    min-height: 40px;
    padding: 0 var(--space-7);
    border-color: var(--control-border);
    background: transparent;
    color: var(--ink);
    font-size: 15px;
}

@media (max-width: 640px), (pointer: coarse) {
    .btn.btn--secondary {
        min-height: 44px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn.btn--secondary:hover {
        border-color: var(--muted);
        background: var(--control-lift);
        color: var(--ink);
    }
}

/* A link that leaves the site carries a north-east arrow after its words. */
.btn__out {
    flex: none;
    width: 10px;
    height: 10px;
}

/* The words a screen reader needs and the eye does not ("View on Apify Store:
   LinkedIn Jobs Feed"). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.hero__note {
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-wrap: pretty;
}

.hero__aside {
    display: grid;
    width: 100%;
    max-width: 520px;
    justify-self: end;
    gap: var(--space-6);
}

.run {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.run__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4) var(--space-7);
    padding: var(--space-7) var(--space-8);
    border-bottom: 1px solid var(--border-strong);
    color: var(--muted);
    font: 400 15px/1.5 var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "zero";
    white-space: nowrap;
}

.run__head span,
.run__foot span,
.run__actor {
    overflow-wrap: anywhere;
}

.mark {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: 1px var(--space-5);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent-text);
    font: 500 13px/1.4 var(--font-mono);
}

.mark::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.run__actor {
    padding: var(--space-7) var(--space-8) 0;
    color: var(--body);
    font: 500 13px/1.4 var(--font-mono);
    letter-spacing: 0;
    font-feature-settings: "zero";
}

.run__rows {
    padding-top: var(--space-5);
}

.run__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-7);
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid var(--border);
}

.run__row dt {
    color: var(--body);
    font: 400 16px/1.6 var(--font-body);
    letter-spacing: 0;
}

.run__row dd {
    color: var(--ink);
    font: 400 15px/1.5 var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "zero";
    white-space: nowrap;
}

.run__row--new {
    background: var(--accent-soft);
}

.run__row--new dt,
.run__row--new dd {
    color: var(--ink);
}

.run__row--closed dt,
.run__row--closed dd {
    color: var(--muted);
}

.run__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-4) var(--space-7);
    padding: var(--space-6) var(--space-8);
    color: var(--muted);
    font: 400 15px/1.5 var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "zero";
    white-space: nowrap;
}

.caption {
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: right;
    text-wrap: pretty;
}

/* Sections */
.section {
    padding: var(--space-11) 0;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: 0;
}

.section--surface {
    background: var(--surface);
    border-bottom: 1px solid var(--border-strong);
}

.section--surface .actor {
    border-bottom-color: var(--border-strong);
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-9);
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-variant-numeric: proportional-nums;
    text-wrap: balance;
}

.section__note {
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: right;
    text-wrap: pretty;
}

/* Shared properties */
.shares {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 2.5vw, 40px);
}

.share {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-strong);
}

.share h3 {
    margin-bottom: 0.5em;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums proportional-nums;
    text-wrap: balance;
}

.share p:last-child {
    max-width: 34ch;
    color: var(--body);
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-wrap: pretty;
}

.sample {
    max-width: 76ch;
    margin-top: var(--space-8);
}

.sample__note {
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    letter-spacing: 0;
    text-wrap: pretty;
}

code {
    color: var(--body);
    font-family: var(--font-mono);
    font-size: 0.95em;
    line-height: 1.5;
    letter-spacing: 0;
    font-variant-ligatures: none;
    font-feature-settings: "zero";
    overflow-wrap: anywhere;
}

pre code {
    font-size: 1em;
    white-space: inherit;
}

/* Actor list */
.actors-head,
.actor {
    display: grid;
    /* A fixed action column (the width of the "View on Apify Store" button
       and of the "Coming soon on Apify Store" label), so the description
       column starts at the same x in every row and under its header. */
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) 232px;
    gap: var(--space-8);
}

.actors-head {
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-strong);
    color: var(--muted);
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    white-space: nowrap;
}

.actors-head span:last-child {
    justify-self: end;
}

.actor {
    align-items: start;
    padding: var(--space-7) 0;
    border-bottom: 1px solid var(--border);
}

.actor h3 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums proportional-nums;
    text-wrap: balance;
}

.actor h3 a {
    color: var(--ink);
    text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .actor h3 a:hover {
        color: var(--accent-hover);
        text-decoration: underline;
    }
}

.actor__id {
    margin-top: var(--space-3);
    overflow-wrap: anywhere;
    color: var(--muted);
    font: 400 13px/1.4 var(--font-mono);
    letter-spacing: 0;
    font-feature-settings: "zero";
}

.actor__desc {
    max-width: 50ch;
    color: var(--body);
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-wrap: pretty;
}

.actor__action {
    justify-self: end;
}

/* Actor icons. The files are site/icons/<slug>-<picture>.png at 1x, 2x and 3x
   (site-src/icons.mjs); the width and height attributes in the markup set the
   outer box, and the srcset gives each screen a file of its own size. The 1px
   border sits inside that box (box-sizing: border-box), so the picture is
   box - 2 and the files are cut at box - 2: a 56px box gets a 54px file, not a
   56px one squeezed into 54. Change the border width here and
   ICON_BORDER_PX in site-src/icons.mjs with it; icon-shots.mjs measures both
   and fails when they disagree. */
.actor-icon {
    flex: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    object-fit: cover;
}

.actor-icon--lg {
    border-radius: var(--radius-lg);
}

.actor__name {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: var(--space-5);
    align-items: start;
}

.actor__name .actor-icon {
    grid-row: 1 / span 2;
}

.page-head__icon {
    margin-bottom: var(--space-6);
}

.icon-note {
    max-width: 60ch;
    margin-top: var(--space-6);
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
}

.actor-card__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-6);
}

/* About */
.about {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-10);
}

.about__text {
    display: grid;
    max-width: 50ch;
    gap: 1em;
}

.about__lead {
    max-width: 34ch;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.about__text p:not(.about__lead):not(.about__note) {
    color: var(--body);
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-wrap: pretty;
}

.about__note {
    margin-top: var(--space-2);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-strong);
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-wrap: pretty;
}

/* Footer */
.footer {
    overflow: hidden;
    padding: var(--space-9) 0 0;
    border-top: 1px solid var(--border);
}

/* Footer link groups (2026-11-11). Three labelled columns, in the order a
   visitor looks: what Kizuki sells, the legal pages, how to reach Kizuki.
   Below them one quiet line with the copyright, the operator and the name.
   Apify's own footer is the model: grouped columns, small icons beside the
   social accounts, the copyright in a bottom row. As on Linear, Vercel and
   Supabase, the wordmark opens the row on the left and the link columns
   share the rest, so the footer spans the full width of the page. */
.footer__groups {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: var(--space-9) var(--space-10);
    font: 400 14px/1.5 var(--font-body);
    letter-spacing: 0;
}

.footer__group {
    min-width: 0;
}

.footer__brand {
    display: grid;
    align-content: start;
    gap: var(--space-6);
    color: var(--muted);
}

.footer__brand p {
    margin: 0;
}

.footer__logo {
    justify-self: start;
    color: var(--ink);
}

.footer__logo svg {
    display: block;
    width: 72px;
    height: auto;
}

.footer__heading {
    margin: 0 0 var(--space-6);
    color: var(--muted);
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer__list {
    display: grid;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Every link is the same flex box, with or without an icon, so the rows in
   all three columns keep one rhythm. */
.footer__list li {
    display: flex;
}

.footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    line-height: 20px;
    color: var(--body);
    overflow-wrap: anywhere;
}

/* An icon and its name. The 12px gap (three quarters of the icon) is the
   marks' clear space ("plenty of space around Apify assets"); the icons keep
   their owners' colours (white X and Discord, three-colour Apify), so only
   the name (and Kizuki's own envelope) changes colour on hover. */
.footer__iconlink {
    gap: var(--space-6);
}

.footer__icon {
    flex: none;
    width: 16px;
    height: 16px;
}

/* The focus ring clears the icon and the text instead of touching them. */
.footer__list a:focus-visible,
.footer__logo:focus-visible {
    outline-offset: 4px;
    border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .footer__list a:hover {
        color: var(--accent-hover);
    }

    .footer__list a:hover span {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }
}

/* Fingers: every footer link is at least 44px tall (Apple HIG and WCAG 2.5.5),
   the rows touching so the list keeps its rhythm. */
@media (pointer: coarse), (max-width: 900px) {
    .footer__list {
        gap: 0;
    }

    .footer__list a {
        min-height: 44px;
    }

    .footer__heading {
        margin-bottom: var(--space-3);
    }
}

.footer__base {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-8);
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-wrap: pretty;
}

.footer__base p {
    margin: 0;
}

/* Pages without the large wordmark end on the bottom row. */
.footer > .footer__base:last-child {
    padding-bottom: var(--space-9);
}

/* The wordmark's viewBox starts just above the "!", so the space above it
   is the margin alone. */
.footer__mark {
    width: calc(100% - 64px);
    height: auto;
    margin: var(--space-10) auto -4%;
    fill: var(--surface-strong);
}

/* Below 1200px four columns leave the e-mail address too little room: the
   wordmark takes its own row and the three link columns share the width. */
@media (max-width: 1199px) {
    .footer__groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1080px) {
    .shares {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-9) var(--space-8);
    }
}

@media (max-width: 900px) {
    .hero {
        padding: var(--space-11) 0;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-9);
        align-items: start;
    }

    .hero__aside {
        max-width: 520px;
        justify-self: start;
    }

    .caption {
        text-align: left;
    }

    .actors-head,
    .actor {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    }

    .actors-head {
        display: none;
    }

    .actor__action {
        grid-column: 2;
        justify-self: start;
    }

    .about {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 640px) {
    main [id] {
        scroll-margin-top: 88px;
    }

    .wrap {
        padding-left: max(var(--space-7), env(safe-area-inset-left));
        padding-right: max(var(--space-7), env(safe-area-inset-right));
    }

    .nav {
        flex-wrap: wrap;
        row-gap: var(--space-3);
        min-height: 72px;
        gap: var(--space-6);
    }

    .nav__links {
        flex-wrap: wrap;
        gap: var(--space-3) var(--space-6);
        font-size: 15px;
    }

    .hero,
    .section {
        padding: var(--space-10) 0;
    }

    .hero__lead {
        margin-top: var(--space-7);
        font-size: 17px;
    }

    .hero__actions {
        margin-top: var(--space-8);
    }

    .section__head {
        display: block;
        margin-bottom: var(--space-8);
    }

    .section__note {
        margin-top: var(--space-4);
        text-align: left;
    }

    .shares {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .actor {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        padding: var(--space-7) 0;
    }

    .actor__action {
        grid-column: auto;
        justify-self: start;
        margin-top: var(--space-3);
    }

    .about__lead {
        font-size: 20px;
    }

    .about__text p:not(.about__lead):not(.about__note) {
        font-size: 16px;
    }

    .footer {
        padding: var(--space-8) 0 0;
    }

    /* Phones: the wordmark on top, Product and Legal side by side, Connect
       under them across the full width so the e-mail address never wraps. */
    .footer__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8) var(--space-7);
    }

    .footer__brand,
    .footer__group:last-child {
        grid-column: 1 / -1;
    }

    .footer__base {
        flex-direction: column;
        margin-top: var(--space-9);
    }

    .footer > .footer__base:last-child {
        padding-bottom: var(--space-8);
    }

    .footer__mark {
        width: calc(100% - 32px);
        margin-top: var(--space-9);
        margin-bottom: -3%;
    }
}

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

    .js-nav .site-header {
        transition: none;
    }
}

/* P0: indexes, Actor pages, data sources and policy drafts */
.brand--text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.page {
    /* The bottom space is .main-tail, after the dock, so <main> ends at the
       footer rule and the sticky Top link can reach it. */
    padding-block: var(--space-9) 0;
}

/* Sub-pages read as a text column plus a side panel (2026-11-19). The panel
   carries the page's one action or its contents, so the right half of the
   frame is used and the panel stays in view while the text is read. The text
   keeps a 68ch measure; tables may use the full width of their column.
   Below 1024px the grid is one column and the panel follows the text: nothing
   scrolls sideways. */
.page-layout {
    margin-top: var(--space-8);
}

.page-layout__main {
    min-width: 0;
}

.page-layout__aside {
    margin-top: var(--space-9);
}

.page-layout__aside > * + * {
    margin-top: var(--space-6);
}

/* Inside the reading layout the sections breathe less than on the wide pages:
   24px above and below, and no display-sized top margin before the first
   heading. The first section starts at the rule under the page head, and two
   sections are about 48px apart (review 2026-11-19: they were about 150px
   apart, which read as empty space). */
.page-layout .section-block {
    padding-block: var(--space-8);
}

.page-layout .section-block:first-child {
    padding-top: 0;
}

.page-layout .section-block > h2:first-child {
    margin-top: 0;
}

@media (min-width: 1024px) {
    .page-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        column-gap: clamp(40px, 5vw, 96px);
        align-items: start;
    }

    .page-layout__aside {
        position: sticky;
        top: 104px;
        max-height: calc(100vh - 132px);
        margin-top: 0;
        padding-bottom: var(--space-6);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

.aside-card {
    padding: var(--space-6);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.aside-card__title {
    margin: 0 0 var(--space-5);
    color: var(--muted);
    font: 500 11px/1.4 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* One price is read as the headline: the Free-plan unit price. The volume
   tiers sit under it as a small table, so a four-line price never turns into a
   display-serif block (review 2026-11-19: it wrapped to five lines and pushed
   the Store button out of the panel). */
.aside-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-5);
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.aside-card__price-unit {
    color: var(--muted);
    font: 400 12px/1.4 var(--font-mono);
    letter-spacing: 0;
}

.aside-card__tiers {
    margin: var(--space-5) 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.aside-card__tiers li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-6);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font: 400 12px/1.4 var(--font-mono);
}

.aside-card__tiers li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.aside-card__tiers li span:last-child {
    color: var(--body);
    font-variant-numeric: tabular-nums;
}

/* The full catalog string is the fallback: if a price ever takes a shape the
   parser does not know, it is shown small rather than breaking the layout. */
.aside-card__price-note {
    margin: 0;
    color: var(--body);
    font: 400 14px/1.55 var(--font-body);
}

.aside-card__note {
    margin: var(--space-4) 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.aside-card__facts {
    margin: var(--space-5) 0 0;
    color: var(--body);
    font: 400 13px/1.7 var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.aside-card__action {
    margin: var(--space-6) 0 0;
}

.aside-card__action .btn {
    width: 100%;
    justify-content: center;
}

.toc,
.aside-links {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.45;
}

.toc li + li,
.aside-links li + li {
    margin-top: var(--space-4);
}

.toc a,
.aside-links a {
    color: var(--body);
}

@media (hover: hover) and (pointer: fine) {
    .toc a:hover,
    .aside-links a:hover {
        color: var(--accent-hover);
    }
}

.page-note {
    max-width: 68ch;
    margin-top: var(--space-5);
    color: var(--body);
    text-wrap: pretty;
}

.breadcrumb {
    margin-bottom: var(--space-8);
    color: var(--muted);
    font: 400 13px/1.5 var(--font-mono);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: var(--space-4);
    color: var(--border-strong);
}

.breadcrumb a {
    color: var(--body);
}

@media (hover: hover) and (pointer: fine) {
    .breadcrumb a:hover {
        color: var(--accent-hover);
    }
}

.page-head {
    padding-bottom: var(--space-9);
    border-bottom: 1px solid var(--border);
}

.page-head > h1 {
    max-width: 940px;
}

.eyebrow {
    margin-bottom: var(--space-5);
    color: var(--accent-text);
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    white-space: nowrap;
}

.error-code {
    margin: 0 0 var(--space-6);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(96px, 22vw, 240px);
    font-variant-numeric: lining-nums;
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -0.06em;
}

.page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-kerning: normal;
    font-variant-numeric: proportional-nums;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.lede {
    max-width: 46ch;
    margin-top: var(--space-7);
    color: var(--body);
    font-family: var(--font-body);
    font-size: clamp(17px, 1.3vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-wrap: pretty;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-7);
    margin-top: var(--space-7);
    color: var(--muted);
    font: 400 13px/1.5 var(--font-mono);
}

/* The page's one action (or its status), under the meta row. */
.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

/* On a one-column page the price and the page's one action come back to the
   top, right after the lede, as a small band. The panel card that carries the
   same action below the text is hidden at that width, so it appears once. */
.page-cta {
    display: none;
}

@media (max-width: 1023px) {
    .page-cta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-5) var(--space-6);
        margin-top: var(--space-6);
        padding: var(--space-5) var(--space-6);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-md);
        background: var(--surface);
    }

    .page-cta__price {
        color: var(--ink);
        font: 500 14px/1.4 var(--font-mono);
        font-variant-numeric: tabular-nums;
    }

    .page-cta .btn {
        min-height: 44px;
        padding: 0 var(--space-6);
        font-size: 14px;
    }

    .page-head__actions,
    .aside-card--store,
    .aside-card--contact {
        display: none;
    }
}

/* Status label (design-system README, "Status labels"): what state a thing
   is in, never something to press. No edge, one translucent white step as its
   fill, body text in the text face (6.44:1 on surface, 8.4:1 on canvas) and,
   for a state, a 6px dot before the words. */
.label {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: var(--space-4);
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: var(--label-fill);
    color: var(--body);
    font: 500 13px/1.3 var(--font-body);
    letter-spacing: 0;
    white-space: nowrap;
}

/* Coming soon: a hollow dot, so the state reads as "not yet". */
.label--soon::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border: 1px solid var(--muted);
    border-radius: 50%;
}

/* New: the one place a label may carry the accent, as a dot beside the word. */
.label--new::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.section-block {
    padding: var(--space-9) 0;
    border-bottom: 1px solid var(--border);
}

/* Long URLs and identifiers in running text wrap instead of pushing past
   the gutter on phones. */
.section-block p,
.section-block li {
    overflow-wrap: break-word;
}

.section-block:last-of-type {
    border-bottom: 0;
}

.section-block h2 {
    margin: 3.2em 0 0.6em;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.4vw, 36px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0;
    font-variant-numeric: proportional-nums;
    text-wrap: balance;
}

.section-block h3 {
    margin: 2em 0 0.5em;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums proportional-nums;
    text-wrap: balance;
}

.section-block h4 {
    margin: 2em 0 0.5em;
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
}

.section-block p,
.section-block li {
    max-width: 68ch;
    color: var(--body);
    text-wrap: pretty;
}

.section-block p + p {
    margin-top: 1em;
}

.section__more {
    margin-top: var(--space-8);
}

.billing-rule {
    max-width: 68ch;
    color: var(--body);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    text-wrap: pretty;
}

.section-block ul,
.section-block ol {
    margin: var(--space-5) 0 0;
    padding-left: 1.2em;
    list-style: disc;
}

.section-block ol {
    list-style: decimal;
}

.section-block li + li {
    margin-top: var(--space-3);
}

.section-block code {
    padding: 1px 4px;
    border-radius: var(--radius-xs);
    background: var(--surface-strong);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.95em;
    line-height: 1.5;
    letter-spacing: 0;
    font-variant-ligatures: none;
    font-feature-settings: "zero";
    overflow-wrap: anywhere;
}

.section-block blockquote {
    margin: var(--space-6) 0;
    padding-left: var(--space-6);
    border-left: 2px solid var(--border-strong);
    color: var(--muted);
    hanging-punctuation: first;
}

.table-wrap {
    width: 100%;
    margin-top: var(--space-6);
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.data-table th,
.data-table td {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--surface);
    color: var(--muted);
    font: 500 11px/1.4 var(--font-mono);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    color: var(--body);
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: 0;
    text-wrap: pretty;
}

.data-table td:nth-child(2),
.data-table td:nth-child(5),
.data-table td:nth-child(6) {
    min-width: 12em;
}

.data-table td:last-child {
    white-space: nowrap;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table code {
    white-space: nowrap;
}

/* Custom-work pages: a two-column notice (label, text) and the sizes table.
   The Actor tables keep their last column on one line; these hold sentences. */
.legal-table {
    min-width: 0;
}

.legal-table th {
    width: 13em;
    white-space: normal;
}

.data-table.legal-table td:last-child,
.data-table.legal-sizes td:last-child {
    min-width: 14em;
    white-space: normal;
}

.legal-table td ul {
    margin: 0.4em 0 0.4em 1.2em;
    padding: 0;
}

.legal-table td p {
    margin: 0;
}

.legal-table td p + p,
.legal-table td ul + p,
.legal-table td p + ul {
    margin-top: 0.5em;
}

.legal-ja {
    line-break: strict;
}

@media (max-width: 640px) {
    .legal-table th,
    .legal-table td {
        display: block;
        width: auto;
    }

    .legal-table th {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .data-table.legal-table td:last-child {
        min-width: 0;
    }
}

.code {
    max-width: 100%;
    margin-top: var(--space-6);
    padding: var(--space-6) var(--space-7);
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--body);
    font: 400 13px/1.6 var(--font-mono);
    letter-spacing: 0;
    font-variant-ligatures: none;
    font-feature-settings: "zero";
    white-space: pre;
    tab-size: 2;
}

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

/* Actor index: search, filter and sort (actors-filter.js), then the cards.
   One gap value between cards in both directions, 16px on phones and 24px
   from 768px, so no two surfaces ever touch. */
.actor-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: end;
    margin-top: var(--space-9);
}

.actor-tools[hidden] {
    display: none;
}

.field {
    display: grid;
    gap: var(--space-4);
    min-width: 0;
}

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

.field__row {
    display: flex;
    gap: var(--space-5);
}

.field__row input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Shown only while the search has text; a phone's search field often has no
   visible clear control. */
.field__clear {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--space-6);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--body);
    font: 400 15px/1 var(--font-body);
    cursor: pointer;
    transition: border-color 150ms ease-out, color 150ms ease-out;
}

.field__clear[hidden] {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .field__clear:hover {
        border-color: var(--accent);
        color: var(--accent-hover);
    }
}

.field__clear:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.actor-tools__noscript {
    margin-top: var(--space-9);
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
}

.field label {
    color: var(--muted);
    font: 400 13px/1.4 var(--font-body);
}

.field input,
.field select {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 var(--space-6);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    background-color: var(--canvas);
    color: var(--ink);
    font: 400 16px/1.4 var(--font-body);
    transition: border-color 150ms ease-out;
}

.field select {
    padding-right: var(--space-9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b9b9b9' stroke-width='1.5'/%3E%3C/svg%3E");
    background-position: right var(--space-6) center;
    background-repeat: no-repeat;
    appearance: none;
    cursor: pointer;
}

.field input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.field input::-webkit-search-cancel-button {
    filter: invert(0.75);
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .field input:hover,
    .field select:hover {
        border-color: var(--muted);
    }
}

.field input:focus-visible,
.field select:focus-visible {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.actor-tools__count {
    grid-column: 1 / -1;
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
}

.actor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    margin-top: var(--space-9);
}

.actor-tools:not([hidden]) + .actor-grid {
    margin-top: var(--space-8);
}

.actor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    min-width: 0;
    padding: var(--space-8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.actor-card[hidden] {
    display: none;
}

.actor-card__title {
    align-items: flex-start;
}

.actor-card__title .actor-icon {
    margin-top: 1px;
}


.actor-card h2 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums proportional-nums;
    text-wrap: balance;
}

/* The title link covers the card, so the whole card is one target; the
   Store link (after publication) sits above it. */
.actor-card h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* The action sits at the foot of the card, after the facts, and above the
   title link that covers the card. */
.actor-card__action {
    margin-top: var(--space-6);
}

.actor-card__action .btn {
    position: relative;
    z-index: 1;
}

.actor-card h2 a:focus-visible {
    outline: none;
}

.actor-card:has(h2 a:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.actor-card h2 a,
.source-card h3 a {
    color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
    .actor-card h2 a:hover,
    .source-card h3 a:hover {
        color: var(--accent-hover);
    }
}

.actor-card__desc {
    max-width: 62ch;
    color: var(--body);
    font-size: 15px;
    line-height: 1.6;
    text-wrap: pretty;
}

.actor-card__foot {
    display: grid;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-5);
}

.actor-card__cats {
    color: var(--body);
    font: 400 13px/1.5 var(--font-body);
}

/* A Japanese word inside an English title (note's 記事) never splits
   between its characters. */
:is(h1, h2, h3, .breadcrumb) [lang="ja"] {
    white-space: nowrap;
}

/* Inputs table: "Read each job page (includeDetails)" — the key and its
   brackets never split across lines. */
.input-key {
    white-space: nowrap;
}

.actor-card__price {
    color: var(--body);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
}

.actor-card__meta {
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-wrap: pretty;
}

/* The "Coming soon" note under the grid (/actors/, review 11). The cards it
   describes sit at the end of the same list, so the note is a rule and two
   lines, not a second grid. */
.actor-group {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.actor-group__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.actor-group__note {
    max-width: 62ch;
    margin-top: var(--space-5);
    color: var(--muted);
    text-wrap: pretty;
}

/* The three-line summary at the top of an Actor page (review 13): the same
   reading measure as the prose below it. */
.summary-list {
    margin-top: var(--space-8);
}

.actor-empty {
    display: grid;
    justify-items: start;
    gap: var(--space-7);
    margin-top: var(--space-8);
    padding: var(--space-9) var(--space-8);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--body);
}

.actor-empty[hidden] {
    display: none;
}

@media (min-width: 768px) {
    .actor-tools {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    .field--search {
        grid-column: auto;
    }

    .actor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8);
    }
}

@media (min-width: 1200px) {
    .actor-tools {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    }

    .actor-tools__count {
        grid-column: auto;
        padding-bottom: 12px;
    }

    .actor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.source-card {
    width: 100%;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--border);
}

.source-card:last-child {
    border-bottom: 0;
}

.source-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
}

/* A source card's title is a card title, not a section heading: it keeps
   neither the section h2's display size nor its 3.2em top margin. */
.section-block .source-card h3 {
    margin: 0;
}

.source-card__head + .muted {
    margin-top: var(--space-4);
}

.source-card h3 {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums proportional-nums;
    text-wrap: balance;
}

.source-card .muted {
    font: 400 13px/1.5 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-wrap: pretty;
}

.source-card .data-table {
    min-width: 940px;
    table-layout: fixed;
}

.source-card .data-table code {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Tables and code samples take the frame; the prose above them keeps its
   68ch measure. The declarations are repeated here so no earlier wrapper
   rule can hold a table to the text column. */
.section-block {
    width: 100%;
    max-width: none;
}

.section-block > .table-wrap,
.source-card > .table-wrap,
.section-block > .code {
    width: 100%;
    max-width: none;
}

.section-block > .table-wrap > .data-table {
    width: 100%;
    max-width: none;
}

.notice {
    max-width: 68ch;
    margin-top: var(--space-8);
    padding: var(--space-6) var(--space-7);
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--body);
    text-wrap: pretty;
}

.prose-list {
    max-width: 68ch;
    margin-top: var(--space-5);
    padding-left: 1.2em;
    list-style: disc;
    text-wrap: pretty;
}

.prose-list li {
    margin-top: var(--space-3);
    color: var(--body);
}

@media (max-width: 640px) {
    .page {
        padding-block: var(--space-7) 0;
    }

    .main-tail {
        height: var(--space-10);
    }

    .page-head h1 {
        font-size: clamp(34px, 9vw, 40px);
    }

    .lede {
        font-size: 17px;
    }

    .section-block {
        padding: var(--space-8) 0;
    }

    .section-block h2 {
        margin-top: 2em;
        font-size: 30px;
    }

    .section-block .source-card h3 {
        margin-top: 0;
        font-size: 20px;
    }

    .data-table {
        min-width: 560px;
    }

    .actor-card {
        padding: var(--space-7);
    }

    .source-card__head {
        display: block;
    }

    .source-card__head .label {
        margin-top: var(--space-5);
    }
}

/* Quiet motion: entrance, the added row, scroll reveal, hover and page fades. */
@starting-style {
    .hero h1,
    .hero__lead,
    .hero__actions,
    .hero__aside,
    .page-head > * {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* The first entrance: once per page load, never on filtering or scrolling.
   700ms with an 80ms stagger, so the last line settles about 0.95s in. */
@media (prefers-reduced-motion: no-preference) {
    .hero h1,
    .hero__lead,
    .hero__actions,
    .hero__aside,
    .page-head > * {
        transition:
            opacity var(--dur-entrance) var(--ease-entrance),
            transform var(--dur-entrance) var(--ease-entrance);
    }

    .hero h1 { transition-delay: 0ms; }
    .hero__lead { transition-delay: calc(var(--stagger) * 1); }
    .hero__actions { transition-delay: calc(var(--stagger) * 2); }
    .hero__aside { transition-delay: calc(var(--stagger) * 3); }

    .page-head > :nth-child(2) { transition-delay: calc(var(--stagger) * 1); }
    .page-head > :nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
    .page-head > :nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
    .page-head > :nth-child(n + 5) { transition-delay: calc(var(--stagger) * 4); }
}

@keyframes added-glow {
    0% { background-color: rgba(105, 193, 252, 0.22); }
    100% { background-color: var(--accent-soft); }
}

@media (prefers-reduced-motion: no-preference) {
    .run__row--new {
        animation: added-glow 600ms var(--ease-out) 240ms 1 normal forwards;
    }
}

@keyframes scroll-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .actor,
        .share,
        .actor-card,
        .source-card {
            animation: scroll-reveal 1ms linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 100%;
        }
    }
}

.share,
.actor,
.actor-card,
.source-card,
.btn,
.nav__links a {
    transition:
        border-color 150ms ease-out,
        color 150ms ease-out,
        background-color 150ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .share:hover,
    .actor:hover,
    .actor-card:hover,
    .source-card:hover {
        border-color: var(--accent);
    }
}

@media (hover: hover) and (pointer: fine) {
    .share:hover h3,
    .actor:hover h3,
    .actor-card:hover h2 a,
    .source-card:hover h3 a,
    .nav__links a:hover {
        color: var(--accent-hover);
    }
}

/* Press: a pressable control shrinks a little under the finger or pointer, so
   the page shows it heard the press. Uses the scale property, which composes
   with any transform the control already has. */
.btn,
.field__clear {
    transition-property: background-color, border-color, color, scale;
    transition-duration: var(--dur-state), var(--dur-state), var(--dur-state), var(--dur-press);
    transition-timing-function: ease-out, ease-out, ease-out, var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
    .btn:active,
    .field__clear:active,
    .to-top:active {
        scale: 0.97;
    }
}

@view-transition {
    navigation: auto;
}

.site-header {
    view-transition-name: site-header;
}

@keyframes view-fade-out {
    to { opacity: 0; }
}

@keyframes view-fade-in {
    from { opacity: 0; }
}

::view-transition-old(root) {
    animation: view-fade-out 200ms var(--ease-out) both;
}

::view-transition-new(root) {
    animation: view-fade-in 200ms var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero__lead,
    .hero__actions,
    .hero__aside,
    .page-head > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .run__row--new,
    .actor,
    .share,
    .actor-card,
    .source-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    ::view-transition-old(root),
    ::view-transition-new(root),
    ::view-transition-group(root),
    ::view-transition-old(site-header),
    ::view-transition-new(site-header),
    ::view-transition-group(site-header) {
        animation: none;
    }
}

/* 404: an empty dataset, with the Actor rows that do exist */
.empty-state {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-9);
    align-items: start;
    margin-top: var(--space-9);
}

.empty-state__json {
    padding: var(--space-7);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow-x: auto;
}

.empty-state__json pre {
    margin: 0;
    color: var(--body);
    font: 400 13px/1.6 var(--font-mono);
    letter-spacing: 0;
    font-variant-ligatures: none;
    font-feature-settings: "zero";
}

.empty-state__note {
    max-width: 50ch;
}

.empty-state__line {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.empty-state__note p + p {
    margin-top: 1em;
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-top: var(--space-7);
}

.actor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-9);
    margin-top: var(--space-7);
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.actor-list li {
    border-bottom: 1px solid var(--border);
}

.actor-list a {
    display: block;
    padding: var(--space-6) 0;
    color: var(--body);
    font-size: 15px;
    line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
    .actor-list a:hover {
        color: var(--ink);
    }
}

@media (max-width: 900px) {
    .empty-state {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .actor-list {
        grid-template-columns: 1fr;
    }
}
