# Card

> An editorial card, clickable as a whole through one link: the image drifts closer, the border firms up and an arrow slides in.

Cards · card, hover, image, article · HTML and CSS only · no dependencies · updated 2026-10-16
Demo: https://kodza.dev/components/card/

## Files

The code below, served as files: byte for byte what the Kodza site copies (the CSS includes its theme guard).

- [`kodza-card.css`](https://kodza.dev/registry/card/kodza-card.css) · 10.9 KB
- [`kodza-card.html`](https://kodza.dev/registry/card/kodza-card.html) · 1.4 KB · the markup, to adapt and paste into your page

**Can you run shell commands? Download the CSS, don't retype it.** Retyping costs thousands of tokens and can drop or change lines of the CSS. Put the files where your stack expects them (Use it says where: change the `-o` paths):

```bash
curl -fsSL --create-dirs -o kodza/kodza-card.css https://kodza.dev/registry/card/kodza-card.css
```

Then load the file from your page as Use it shows, instead of pasting the content. The HTML is the part you adapt (text, links, modifiers): paste it from the Code section. Copy the CSS from the Code section only if you can't run commands, exactly as it is. (Windows PowerShell: `curl.exe`.)

## API

- Root: `.kodza-card`
- Variables (set them on the root element itself: it declares its own defaults):
  - `--kz-card-bg: #ffffff`
  - `--kz-card-fg: #0a0a0a`
  - `--kz-card-muted: rgba(10, 10, 10, 0.62)`
  - `--kz-card-border: rgba(10, 10, 10, 0.1)`
  - `--kz-card-border-hover: rgba(10, 10, 10, 0.32)`
  - `--kz-card-radius: 16px`
  - `--kz-card-pad: 28px`
  - `--kz-card-ratio: 4 / 3`
  - `--kz-card-duration: 0.9s`
  - `--kz-card-ease: cubic-bezier(0.22, 1, 0.36, 1)`
- Modifiers: `.kodza-card--horizontal`, `.kodza-card--text`

## Dark mode

The values Kodza uses on a dark background (`#0a0a0a`). For a page that follows the system theme, add them after the component's CSS:

```css
@media (prefers-color-scheme: dark) {
  .kodza-card {
    --kz-card-bg: #161616;
    --kz-card-fg: #f2f2f0;
    --kz-card-muted: rgba(242, 242, 240, 0.62);
    --kz-card-border: rgba(255, 255, 255, 0.12);
    --kz-card-border-hover: rgba(255, 255, 255, 0.4);
  }
}
```

A site with its own theme switch puts the same rules under its dark selector instead (`[data-theme="dark"] .kodza-card { … }`); a single dark section, under that section's class.

Its images have dark versions next to them (`kz-arch-1400.webp` → `kz-arch-dark-1400.webp`). To swap them on a dark page: `<picture><source media="(prefers-color-scheme: dark)" srcset="…-dark-….webp"><img …></picture>`.

## Use it

### Plain HTML page

- CSS: `kodza/kodza-card.css` next to the page (the Files commands as they are), linked in `<head>`: `<link rel="stylesheet" href="kodza/kodza-card.css">`. Without a shell, paste it in a `<style>` in `<head>` instead. It only touches `kodza-` classes.
- HTML: where the component goes. Paste it as many times as you need: instances never interfere.
- No JS.
- Restyle with the `--kz-…` variables, set on the component's root element itself (the root declares its own defaults, so a value on an ancestor is ignored), and with the modifiers / attributes listed under API.
- Font: it takes the page's own. The Kodza look is Geist: `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`.

### Claude artifact (claude.ai)

- Paste the CSS in a `<style>`, in the artifact itself: it loads stylesheets only from Google Fonts and scripts only from a few CDNs, so no `<link>` or `<script src>` to Kodza.
- Writing the artifact file with a shell? Insert the downloaded files (Files) with a command instead of retyping them: a line `KODZA-CSS` alone inside the `<style>`, then `sed -e '/^KODZA-CSS$/{r kodza/kodza-card.css' -e 'd' -e '}' page.html > artifact.html`.
- Font: load Geist from Google Fonts (allowed): `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`.
- Images: the artifact blocks every other host, `kodza.dev` included, without an error. Embed each one as a `data:` URI, with a command if you can run one (`curl -s <url> | base64`; the 1400 px files weigh 10 to 30 KB), never by typing base64 out. If you can't run commands, keep the `<img>` with its `width` and `height`, and tell the user the picture stays blank inside the artifact.
- Dark mode: the viewer sets `data-theme="dark"` or `"light"` on `<html>`, or nothing when it follows the system. Write the Dark mode rules twice: inside `@media (prefers-color-scheme: dark)` with `:root:not([data-theme="light"])` in front of each selector, and with `:root[data-theme="dark"]` in front of each selector.

### WordPress

- HTML: a **Custom HTML** block (or a pattern / template part). WordPress keeps this markup as it is only for users allowed to post unfiltered HTML (Administrators; Super Admins on multisite): for anyone else it strips tags such as `<svg>`, `<input>` or `<dialog>`, so add it from the theme (a pattern or template part) instead.
- CSS: the downloaded file goes in the theme, under `wp-content/themes/<your-theme>/kodza/` (the child theme if there is one), enqueued from its functions.php (or a code-snippets plugin):
  ```php
  add_action('wp_enqueue_scripts', function () {
    $dir = get_stylesheet_directory() . '/kodza/';
    $uri = get_stylesheet_directory_uri() . '/kodza/';
    wp_enqueue_style('kodza-card', $uri . 'kodza-card.css', [], filemtime($dir . 'kodza-card.css'));
  });
  ```
  Scoped to `kodza-` classes, the CSS never touches the theme.
- No access to the theme files? The CSS can also go, as it is, in **Appearance → Customize → Additional CSS** (classic theme) or **Styles → Additional CSS** in the Site Editor (block theme).
- No JS.
- Colours: by default, match the theme's palette. After the component's CSS, point these variables at the theme's colours, on the component root, Kodza's value as the fallback:
  `.kodza-card { --kz-card-fg: var(TEXT, #0a0a0a); --kz-card-bg: var(BACKGROUND, #ffffff); }`
  TEXT, BACKGROUND and ACCENT (the colour the theme fills its own buttons with) are the theme's own colour variables — block themes (theme.json, like Twenty Twenty-Five): `--wp--preset--color--contrast`, `--wp--preset--color--base`, `--wp--preset--color--contrast` (they fill their buttons with it; their accent-1… colours are decorative); Astra: `--ast-global-color-2`, `--ast-global-color-4`, `--ast-global-color-0`; Kadence: `--global-palette3`, `--global-palette9`, `--global-palette1`; GeneratePress: `--contrast`, `--base-3`, `--accent`; Blocksy: `--theme-palette-color-4`, `--theme-palette-color-8`, `--theme-palette-color-1`. Use only these names, and only if the site really has them (the theme's CSS, or Styles → Colors): the `--wp--preset--color--black`, `--white`, `--vivid-…` that WordPress adds everywhere are not the theme's palette. Another theme, or one without these variables (Hello Elementor, OceanWP): leave the variables alone, it keeps Kodza's monochrome; same when the developer asks for monochrome or the Kodza look. Leave the translucent greys (`rgba(10, 10, 10, …)`) as they are: they suit any light background. On a dark palette, set the other variables from Dark mode too.
- WordPress turns straight quotes and `--` into typographic ones in the text of a Custom HTML block (not inside `<code>` or `<pre>`).

#### With Elementor

- HTML: an **HTML** widget (Elementor shows it to administrators only). It keeps the code exactly as pasted, straight quotes included.
- CSS: as above. Elementor's Site Settings → Theme Style styles every button, field, link and image of the page, components included; the theme guard at the end of the CSS keeps the component's buttons, fields and link colours as they are.
- No child theme: the CSS can go in the HTML widget instead, in a `<style>` before the HTML.

### Shopify

- Files: `assets/kodza-card.css` (the Files commands with `-o assets/…`).
- In the section: `{{ 'kodza-card.css' | asset_url | stylesheet_tag }}`, then the HTML.

### React / Next.js

- Files, side by side (e.g. in `components/kodza/`): `Card.tsx` (below), the CSS block under Code saved as `card.css`, both as they are. The HTML block is already inside the component: skip it.
- Use it: `import { Card } from '@/components/kodza/Card';` then `<Card />`. Props: `variant` ("horizontal", "text", or several in an array), `vars` (the `--kz-…` variables listed under API, e.g. `vars={{ '--kz-card-bg': … }}`), `className`, `style` and the other props of its `<article>` (`onClick`, `aria-…`).
- Next.js App Router: it is a Client Component already (`'use client'`). Pages Router: Next.js takes global CSS only in `pages/_app`, so move the `import './card.css'` line there.

```tsx
'use client';
// Kodza — Card, for React. From https://kodza.dev/components/card/
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Next to this file: card.css, the component's CSS from Kodza, as they are.
// Yours to edit: the markup is plain JSX below.
import { useRef, type ComponentPropsWithoutRef, type ComponentRef, type CSSProperties } from 'react';
import './card.css';

type Variant = "horizontal" | "text";

export type CardProps = Omit<ComponentPropsWithoutRef<'article'>, "children" | "variant" | "vars"> & {
  /** Modifier class(es): .kodza-card--horizontal, .kodza-card--text */
  variant?: Variant | Variant[];
  /** Settings, as CSS variables on the root */
  vars?: {
    /** default: #ffffff */
    "--kz-card-bg"?: string | number;
    /** default: #0a0a0a */
    "--kz-card-fg"?: string | number;
    /** default: rgba(10, 10, 10, 0.62) */
    "--kz-card-muted"?: string | number;
    /** default: rgba(10, 10, 10, 0.1) */
    "--kz-card-border"?: string | number;
    /** default: rgba(10, 10, 10, 0.32) */
    "--kz-card-border-hover"?: string | number;
    /** default: 16px */
    "--kz-card-radius"?: string | number;
    /** default: 28px */
    "--kz-card-pad"?: string | number;
    /** default: 4 / 3 */
    "--kz-card-ratio"?: string | number;
    /** default: 0.9s */
    "--kz-card-duration"?: string | number;
    /** default: cubic-bezier(0.22, 1, 0.36, 1) */
    "--kz-card-ease"?: string | number;
  };
  className?: string;
};

export function Card({ variant, vars, className, style, ...rest }: CardProps) {
  const ref = useRef<ComponentRef<'article'>>(null);
  const classes = ["kodza-card", ...([] as string[]).concat(variant ?? []).map((v) => `kodza-card--${v}`), className].filter(Boolean).join(' ');
  // Everything the markup is made of: when it changes, React gets a fresh element (see the top)
  const key = JSON.stringify([classes, vars, style, rest]);

  return (
    <article key={key} {...rest} className={classes} style={{ ...vars, ...style } as CSSProperties} ref={ref}>
      <div className="kodza-card__media">
        <img src="https://kodza.dev/media/kz-arch-1400.webp" alt="A concrete wall with a round-topped opening, sunlight pouring through it" loading="lazy" />
      </div>
      <div className="kodza-card__body">
        <p className="kodza-card__meta">Field notes · 4 min</p>
        <h3 className="kodza-card__title">
          <a className="kodza-card__link" href="#">We deleted our config files</a>
        </h3>
        <p className="kodza-card__text">Nothing broke. Two people cried. Here is what we kept.</p>
      </div>
    </article>
  );
}
```

## Code

```html
<article class="kodza-card">
  <div class="kodza-card__media">
    <img src="https://kodza.dev/media/kz-arch-1400.webp" alt="A concrete wall with a round-topped opening, sunlight pouring through it" loading="lazy" />
  </div>
  <div class="kodza-card__body">
    <p class="kodza-card__meta">Field notes · 4 min</p>
    <h3 class="kodza-card__title"><a class="kodza-card__link" href="#">We deleted our config files</a></h3>
    <p class="kodza-card__text">Nothing broke. Two people cried. Here is what we kept.</p>
  </div>
</article>

<article class="kodza-card kodza-card--horizontal">
  <div class="kodza-card__media">
    <img src="https://kodza.dev/media/kz-columns-1400.webp" alt="A row of square concrete pillars under a flat roof, casting striped shadows" loading="lazy" />
  </div>
  <div class="kodza-card__body">
    <p class="kodza-card__meta">Changelog · v2.0</p>
    <h3 class="kodza-card__title"><a class="kodza-card__link" href="#">Seven columns, zero frameworks</a></h3>
    <p class="kodza-card__text">The grid you wanted in 2015, now in plain CSS and a lot less arguing.</p>
  </div>
</article>

<article class="kodza-card kodza-card--text">
  <div class="kodza-card__body">
    <p class="kodza-card__meta">Opinion · 2 min</p>
    <h3 class="kodza-card__title"><a class="kodza-card__link" href="#">Not everything needs React</a></h3>
    <p class="kodza-card__text">A button is a button. It was fine. It is still fine.</p>
  </div>
</article>
```

```css
/* Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license */
/* Kodza — Card
   An editorial card, clickable as a whole through its title link (one link, one tab stop).
   On hover the image drifts closer, the border firms up and an arrow slides in.
   Variants: (default) image on top, --horizontal, --text.
   Everything is tuned with the --kz-card-* variables. */
.kodza-card {
  --kz-card-bg: #ffffff;
  --kz-card-fg: #0a0a0a;
  --kz-card-muted: rgba(10, 10, 10, 0.62);
  --kz-card-border: rgba(10, 10, 10, 0.1);
  --kz-card-border-hover: rgba(10, 10, 10, 0.32);
  --kz-card-radius: 16px;
  --kz-card-pad: 28px;
  --kz-card-ratio: 4 / 3;
  --kz-card-duration: 0.9s;
  --kz-card-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--kz-card-radius);
  background: var(--kz-card-bg);
  box-shadow: inset 0 0 0 1px var(--kz-card-border);
  color: var(--kz-card-fg);
  transition: box-shadow 0.35s ease;
}

.kodza-card:hover,
.kodza-card:focus-within {
  box-shadow: inset 0 0 0 1px var(--kz-card-border-hover);
}

.kodza-card__media {
  position: relative;
  aspect-ratio: var(--kz-card-ratio);
  overflow: hidden;
}

.kodza-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--kz-card-duration) var(--kz-card-ease);
}

.kodza-card:hover .kodza-card__media img,
.kodza-card:focus-within .kodza-card__media img {
  transform: scale(1.05);
}

.kodza-card__body {
  display: grid;
  gap: 8px;
  padding: var(--kz-card-pad);
}

.kodza-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--kz-card-muted);
}

.kodza-card__title {
  margin: 0;
  padding-right: 28px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kodza-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--kz-card-muted);
}

/* The link covers the whole card */
.kodza-card__link {
  color: inherit;
  text-decoration: none;
}

.kodza-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* The arrow, top right of the text */
.kodza-card__body {
  position: relative;
}

.kodza-card__body::after {
  content: "";
  position: absolute;
  top: var(--kz-card-pad);
  right: var(--kz-card-pad);
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12L12 4M5 4h7v7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12L12 4M5 4h7v7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s ease, transform 0.5s var(--kz-card-ease);
}

.kodza-card:hover .kodza-card__body::after,
.kodza-card:focus-within .kodza-card__body::after {
  opacity: 1;
  transform: none;
}

.kodza-card:has(.kodza-card__link:focus-visible) {
  outline: 2px solid var(--kz-card-fg);
  outline-offset: 3px;
}

.kodza-card__link:focus-visible {
  outline: none;
}

/* Horizontal: the image on the left, the text on the right */
.kodza-card--horizontal {
  flex-direction: row;
}

.kodza-card--horizontal .kodza-card__media {
  flex: 0 0 42%;
  aspect-ratio: auto;
}

.kodza-card--horizontal .kodza-card__body {
  flex: 1;
  align-content: end;
}

@media (max-width: 560px) {
  .kodza-card--horizontal {
    flex-direction: column;
  }

  .kodza-card--horizontal .kodza-card__media {
    aspect-ratio: var(--kz-card-ratio);
  }
}

/* Text only: the content sits at the bottom of the card */
.kodza-card--text .kodza-card__body {
  flex: 1;
  align-content: end;
  min-height: 180px;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-card,
  .kodza-card__media img,
  .kodza-card__body::after {
    transition-duration: 0.01ms !important;
  }
}

/* Theming example — on a dark background:
.dark-section .kodza-card {
  --kz-card-bg: #161616;
  --kz-card-fg: #f2f2f0;
  --kz-card-muted: rgba(242, 242, 240, 0.62);
  --kz-card-border: rgba(255, 255, 255, 0.12);
  --kz-card-border-hover: rgba(255, 255, 255, 0.4);
}
*/

/* kodza-guard 7b70c66bb290 — generated by Kodza, do not edit.
   Theme guard: keeps a site's own CSS (WordPress themes, Bootstrap, CSS resets…) off this
   component. :not(#_) is always true and weighs as much as an id, so these lines win over
   theme rules made of classes and tags. Customise the component through its --kz-* variables. */

/* What the browser gives, where the component sets it only in some states: at the lowest weight, so its own rules below put it back */

:where(.kodza-card):not(#_) {
  outline: revert;
  outline-offset: revert;
}

:where(.kodza-card__link):not(#_) {
  outline: revert;
}

/* What the browser gives, on everything the component leaves to it */

.kodza-card:not(#_) {
  border: revert;
  padding: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  appearance: revert;
  max-height: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-card__media:not(#_),
.kodza-card__body:not(#_) {
  box-sizing: revert;
}

.kodza-card__meta:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-card__title:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  padding-top: revert;
  padding-bottom: revert;
  padding-left: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-style: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-card__link:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-card__text:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-card__media img:where(:not([class*="kodza-"])):not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-card__meta:not(#_):where(:not([hidden])),
.kodza-card__title:not(#_):where(:not([hidden])),
.kodza-card__link:not(#_):where(:not([hidden])),
.kodza-card__text:not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-card__meta:not(#_):where([hidden]),
.kodza-card__title:not(#_):where([hidden]),
.kodza-card__link:not(#_):where([hidden]),
.kodza-card__text:not(#_):where([hidden]) {
  display: none;
}

.kodza-card__link:not(#_)::after,
.kodza-card__body:not(#_)::after {
  box-sizing: revert;
}

/* The component's own rules, one step stronger: real buttons and fields, what it sets on tags themes style (links, lists, headings, images…), and the root width (a theme may narrow it, never widen it) */

.kodza-card:not(#_) {
  position: relative;
  display: flex;
  border-radius: var(--kz-card-radius);
  background: var(--kz-card-bg);
  box-shadow: inset 0 0 0 1px var(--kz-card-border);
  color: var(--kz-card-fg);
  transition: box-shadow 0.35s ease;
}

.kodza-card:hover:not(#_),
.kodza-card:focus-within:not(#_) {
  box-shadow: inset 0 0 0 1px var(--kz-card-border-hover);
}

.kodza-card__media img:not(#_) {
  display: block;
  transition: transform var(--kz-card-duration) var(--kz-card-ease);
}

.kodza-card__meta:not(#_) {
  margin: 0;
  font-size: 13px;
  color: var(--kz-card-muted);
}

.kodza-card__title:not(#_) {
  margin: 0;
  padding-right: 28px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kodza-card__text:not(#_) {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--kz-card-muted);
}

.kodza-card__link:not(#_) {
  color: inherit;
  text-decoration: none;
}

.kodza-card:has(.kodza-card__link:focus-visible):not(#_) {
  outline: 2px solid var(--kz-card-fg);
  outline-offset: 3px;
}

.kodza-card__link:focus-visible:not(#_) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-card:not(#_),
  .kodza-card__media img:not(#_) {
    transition-duration: 0.01ms !important;
  }
}
```

Free to use, from Kodza (https://kodza.dev).
