# Footer Minimal

> A one-line site footer: the logo, the ©, three links and Back to top, whose arrow rolls up on hover and which scrolls up smoothly; on phones, two centred lines.

Footer · footer, site footer, minimal footer, one line, back to top, landing page, documentation, blog · HTML, CSS, vanilla JS · no dependencies · updated 2026-10-28
Demo: https://kodza.dev/components/footer-minimal/
Source on GitHub: https://github.com/kodza-dev/kodza/tree/main/components/footer-minimal

## Files

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

- [`kodza-footer-minimal.css`](https://kodza.dev/registry/footer-minimal/kodza-footer-minimal.css) · 17.1 KB
- [`kodza-footer-minimal.js`](https://kodza.dev/registry/footer-minimal/kodza-footer-minimal.js) · 4.5 KB
- [`kodza-footer-minimal.html`](https://kodza.dev/registry/footer-minimal/kodza-footer-minimal.html) · 1.1 KB · the markup, to adapt and paste into your page

**Can you run shell commands? Download the CSS and the JS, don't retype them.** 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-footer-minimal.css https://kodza.dev/registry/footer-minimal/kodza-footer-minimal.css
curl -fsSL --create-dirs -o kodza/kodza-footer-minimal.js https://kodza.dev/registry/footer-minimal/kodza-footer-minimal.js
```

Then load the files 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 and the JS from the Code section only if you can't run commands, exactly as they are. (Windows PowerShell: `curl.exe`.)

## API

- Root: `.kodza-footer-minimal`
- Variables (set them on the root element itself: it declares its own defaults):
  - `--kz-footer-minimal-bg: #ffffff`
  - `--kz-footer-minimal-fg: #0a0a0a`
  - `--kz-footer-minimal-muted: rgba(10, 10, 10, 0.62)`
  - `--kz-footer-minimal-line: rgba(10, 10, 10, 0.1)`
  - `--kz-footer-minimal-soft: rgba(10, 10, 10, 0.05)` — Back to top, under the pointer
  - `--kz-footer-minimal-width: 1200px` — the line, centred
  - `--kz-footer-minimal-pad: 24px`
  - `--kz-footer-minimal-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace`
  - `--kz-footer-minimal-ease: cubic-bezier(0.22, 1, 0.36, 1)`
- Lifecycle: `kodza:init` / `kodza:destroy` on `document`, with `{ detail: { root } }` to target a container.

## Keyboard

What each key does, by where the focus is. Keep it working when you adapt the HTML: same elements, same classes.

- On Back to top:
  - `Enter`: Back to the top, focus too: Tab starts there

## 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-footer-minimal {
    --kz-footer-minimal-bg: #141414;
    --kz-footer-minimal-fg: #f2f2f0;
    --kz-footer-minimal-muted: rgba(242, 242, 240, 0.62);
    --kz-footer-minimal-line: rgba(255, 255, 255, 0.12);
    --kz-footer-minimal-soft: rgba(255, 255, 255, 0.08);
  }
}
```

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

Every colour is a variable on the footer: set --kz-footer-minimal-bg, -fg, -muted, -line and -soft (the demo's dark band has the recipe).

## Use it

### Plain HTML page

- CSS: `kodza/kodza-footer-minimal.css` next to the page (the Files commands as they are), linked in `<head>`: `<link rel="stylesheet" href="kodza/kodza-footer-minimal.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.
- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put your logo, and your name after the ©. (3) Keep three links, four at most: past that, Footer Columns is the one. (4) Back to top needs nothing on the page: it goes up on its own. --kz-footer-minimal-width sets how wide the line runs (1200px by default), --kz-footer-minimal-pad its margin on small screens.
- JS: `kodza/kodza-footer-minimal.js`, loaded with `<script src="kodza/kodza-footer-minimal.js" defer></script>` in `<head>`. Without a shell, paste it in a `<script>` before `</body>` (or in `<head>`: it waits for the page). One copy per page, whatever the number of instances.
- 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">`.
- Content added later (AJAX navigation, a SPA route, a builder preview): start it with `document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: container } }))`; before removing it, the same call with `'kodza:destroy'` stops it and puts the original markup back.

### Claude artifact (claude.ai)

- Paste the CSS in a `<style>` and the JS in a `<script>` at the end, 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>`, `KODZA-JS` inside the `<script>`, then `sed -e '/^KODZA-CSS$/{r kodza/kodza-footer-minimal.css' -e 'd' -e '}' -e '/^KODZA-JS$/{r kodza/kodza-footer-minimal.js' -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">`.
- 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.
- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put your logo, and your name after the ©. (3) Keep three links, four at most: past that, Footer Columns is the one. (4) Back to top needs nothing on the page: it goes up on its own. --kz-footer-minimal-width sets how wide the line runs (1200px by default), --kz-footer-minimal-pad its margin on small screens.

### 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.
- This one spans the page: a block theme keeps a Custom HTML block to the width of the text column, so put it inside a **Group** block set to **Full width**, with **Inner blocks use content width** turned off.
- CSS and JS: the downloaded files go 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-footer-minimal', $uri . 'kodza-footer-minimal.css', [], filemtime($dir . 'kodza-footer-minimal.css'));
    wp_enqueue_script('kodza-footer-minimal', $uri . 'kodza-footer-minimal.js', [], filemtime($dir . 'kodza-footer-minimal.js'), true);
  });
  ```
  Scoped to `kodza-` classes, the CSS never touches the theme. One copy of the JS, whatever the number of blocks.
- 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).
- Theme with AJAX page transitions: fire `kodza:init` on the new content after each swap (and `kodza:destroy` on the old one).
- Performance plugin (WP Rocket, LiteSpeed Cache, Perfmatters…) with **Delay JavaScript execution** turned on: add `kodza` to the scripts it must not delay. Otherwise the component waits for the visitor's first scroll, tap or mouse move, and that first click can be lost.
- Colours: it takes the colour of the text around it (or keeps its own monochrome): nothing to point at the theme.
- WordPress turns straight quotes and `--` into typographic ones in the text of a Custom HTML block (not inside `<code>` or `<pre>`).
- Put it in the site footer (Site Editor → Patterns → Footer, or the theme's footer.php) in place of the theme's own footer. The links can come from wp_nav_menu(['theme_location' => 'footer', 'container' => false, 'items_wrap' => '%3$s']) inside the ul, with the link class added by the nav_menu_link_attributes filter. The logo can be the_custom_logo() or bloginfo('name'); the script writes the year.

#### With Elementor

- HTML: an **HTML** widget (Elementor shows it to administrators only). It keeps the code exactly as pasted, straight quotes included.
- This one spans the page: give the widget its own container, **Content Width: Full Width**, padding 0.
- CSS and JS: 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.
- The Elementor editor redraws each widget after the page has loaded: without the script below, the component stays still in the editor preview (the published page works). Add it once per site, in the footer like the component's script (`kodza/elementor-editor.js`, or a code-snippets plugin):

```js
// Kodza in the Elementor editor: the editor redraws each HTML widget after the page has loaded.
// Start Kodza in what it draws, stop it in what it replaces or removes. Once per site.
window.addEventListener('elementor/frontend/init', () => {
  if (!elementorFrontend.isEditMode()) return;
  class KodzaWidget extends elementorModules.frontend.handlers.Base {
    onInit() {
      super.onInit();
      this.kodza = [...this.$element[0].children];
      document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: this.$element[0] } }));
    }
    onDestroy() {
      super.onDestroy();
      this.kodza.forEach((root) => document.dispatchEvent(new CustomEvent('kodza:destroy', { detail: { root } })));
    }
  }
  elementorFrontend.elementsHandler.attachHandler('html', KodzaWidget);
});
```

- No child theme: everything can go in the HTML widget instead, `<style>` with the CSS, the HTML, then `<script>` with the JS. It works on the page and in the editor without the script above. This one reads the page around it, and a script in the widget runs before the rest of the page exists: put its `<script>` in an HTML widget at the bottom of the page instead.

### Shopify

- Files: `assets/kodza-footer-minimal.css` and `assets/kodza-footer-minimal.js` (the Files commands with `-o assets/…`).
- In the section: `{{ 'kodza-footer-minimal.css' | asset_url | stylesheet_tag }}` and `<script src="{{ 'kodza-footer-minimal.js' | asset_url }}" defer></script>`, then the HTML.
- The theme editor re-renders sections: restart them with
  `document.addEventListener('shopify:section:load', (e) => document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: e.target } })));`
  and the same with `shopify:section:unload` → `kodza:destroy`.
- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put your logo, and your name after the ©. (3) Keep three links, four at most: past that, Footer Columns is the one. (4) Back to top needs nothing on the page: it goes up on its own. --kz-footer-minimal-width sets how wide the line runs (1200px by default), --kz-footer-minimal-pad its margin on small screens.

### React / Next.js

- Files, side by side (e.g. in `components/kodza/`): `FooterMinimal.tsx` (below), the CSS block under Code saved as `footer-minimal.css` and the JS block as `footer-minimal.js`, both as they are. The HTML block is already inside the component: skip it.
- Use it: `import { FooterMinimal } from '@/components/kodza/FooterMinimal';` then `<FooterMinimal />`. Props: `vars` (the `--kz-…` variables listed under API, e.g. `vars={{ '--kz-footer-minimal-bg': … }}`), `className`, `style` and the other props of its `<footer>` (`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 './footer-minimal.css'` line there.
- Safe under StrictMode, client-side navigation and prop changes: when a prop changes, the `key` gives React a fresh element, `kodza:destroy` stops the script on the old one and `kodza:init` starts it on the new one.
- Built from your data (tabs, rows, options)? Add what the markup is made of to the `key`, as plain values (ids, text, numbers). What the visitor changes (the open tab, the sort, what they type) is the script's: follow it with `onClick` or `onInput` on the root, and change it from your code as a visitor would (click the tab; set the field's value, then dispatch a bubbling `input` event). Fields stay uncontrolled (`defaultValue`, `name`).

```tsx
'use client';
// Kodza — Footer Minimal, for React. From https://kodza.dev/components/footer-minimal/
// 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: footer-minimal.css and footer-minimal.js, the component's CSS and JS from Kodza, as they are.
// Yours to edit: the markup is plain JSX below.
// The script changes this markup once React has rendered it (it adds layers, splits text, moves
// nodes), so React must not patch it afterwards. When a prop changes, the key gives React a fresh
// element: kodza:destroy stops the script on the old one, kodza:init starts it on the new one.
// Built from your data (tabs, rows, options)? Put what the markup is made of in the key, as plain
// values (ids, text, numbers): a change starts the script again on fresh markup. What the visitor
// changes (the open tab, the sort, what they type) is the script's: keep it out of the key, follow
// it with onClick or onInput on the root, and change it from your code as a visitor would (click
// the tab; set the field's value, then dispatch a bubbling input event).
import { useRef, useEffect, type ComponentPropsWithoutRef, type ComponentRef, type CSSProperties } from 'react';
import './footer-minimal.css';

export type FooterMinimalProps = Omit<ComponentPropsWithoutRef<'footer'>, "children" | "vars"> & {
  /** Settings, as CSS variables on the root */
  vars?: {
    /** default: #ffffff */
    "--kz-footer-minimal-bg"?: string | number;
    /** default: #0a0a0a */
    "--kz-footer-minimal-fg"?: string | number;
    /** default: rgba(10, 10, 10, 0.62) */
    "--kz-footer-minimal-muted"?: string | number;
    /** default: rgba(10, 10, 10, 0.1) */
    "--kz-footer-minimal-line"?: string | number;
    /** Back to top, under the pointer — default: rgba(10, 10, 10, 0.05) */
    "--kz-footer-minimal-soft"?: string | number;
    /** the line, centred — default: 1200px */
    "--kz-footer-minimal-width"?: string | number;
    /** default: 24px */
    "--kz-footer-minimal-pad"?: string | number;
    /** default: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace */
    "--kz-footer-minimal-mono"?: string | number;
    /** default: cubic-bezier(0.22, 1, 0.36, 1) */
    "--kz-footer-minimal-ease"?: string | number;
  };
  className?: string;
};

export function FooterMinimal({ vars, className, style, ...rest }: FooterMinimalProps) {
  const ref = useRef<ComponentRef<'footer'>>(null);
  const classes = ["kodza-footer-minimal", 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]);

  // Starts the script on this element once React has rendered it, stops it when it goes
  useEffect(() => {
    const root = ref.current;
    let live = true;
    // @ts-ignore: a plain script, no types to find
    import('./footer-minimal.js').then(() => {
      if (live) document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root } }));
    });
    return () => {
      live = false;
      document.dispatchEvent(new CustomEvent('kodza:destroy', { detail: { root } }));
    };
  }, [key]);

  return (
    <footer key={key} {...rest} className={classes} style={{ ...vars, ...style } as CSSProperties} ref={ref}>
      <div className="kodza-footer-minimal__inner">
        <a className="kodza-footer-minimal__logo" href="#" aria-label="Tern, home">
          <svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true">
            <path d="M2 7.5 12 12l10-4.5L12 3z" />
            <path d="M2 12.5 12 17l10-4.5V16l-10 5-10-5z" />
          </svg>
          <span>tern</span>
        </a>
        <p className="kodza-footer-minimal__copy">© <span className="kodza-footer-minimal__year">2026</span> Tern Labs</p>
        <nav className="kodza-footer-minimal__nav" aria-label="Footer">
          <ul className="kodza-footer-minimal__links">
            <li>
              <a className="kodza-footer-minimal__link" href="#">Docs</a>
            </li>
            <li>
              <a className="kodza-footer-minimal__link" href="#">Changelog</a>
            </li>
            <li>
              <a className="kodza-footer-minimal__link" href="#">Status</a>
            </li>
          </ul>
        </nav>
        <a className="kodza-footer-minimal__top" href="#top">Back to top<span className="kodza-footer-minimal__arrow" aria-hidden="true"> <svg viewBox="0 0 12 12" width="12" height="12"> <path d="M6 10.5v-9M2 5.5l4-4 4 4" /> </svg> <svg viewBox="0 0 12 12" width="12" height="12"> <path d="M6 10.5v-9M2 5.5l4-4 4 4" /> </svg> </span></a>
      </div>
    </footer>
  );
}
```

- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put your logo, and your name after the ©. (3) Keep three links, four at most: past that, Footer Columns is the one. (4) Back to top needs nothing on the page: it goes up on its own. --kz-footer-minimal-width sets how wide the line runs (1200px by default), --kz-footer-minimal-pad its margin on small screens.

## Code

```html
<footer class="kodza-footer-minimal">
  <div class="kodza-footer-minimal__inner">
    <a class="kodza-footer-minimal__logo" href="#" aria-label="Tern, home"><svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true"><path d="M2 7.5 12 12l10-4.5L12 3z"/><path d="M2 12.5 12 17l10-4.5V16l-10 5-10-5z"/></svg><span>tern</span></a>
    <p class="kodza-footer-minimal__copy">© <span class="kodza-footer-minimal__year">2026</span> Tern Labs</p>
    <nav class="kodza-footer-minimal__nav" aria-label="Footer">
      <ul class="kodza-footer-minimal__links">
        <li><a class="kodza-footer-minimal__link" href="#">Docs</a></li>
        <li><a class="kodza-footer-minimal__link" href="#">Changelog</a></li>
        <li><a class="kodza-footer-minimal__link" href="#">Status</a></li>
      </ul>
    </nav>
    <a class="kodza-footer-minimal__top" href="#top">Back to top<span class="kodza-footer-minimal__arrow" aria-hidden="true"><svg viewBox="0 0 12 12" width="12" height="12"><path d="M6 10.5v-9M2 5.5l4-4 4 4"/></svg><svg viewBox="0 0 12 12" width="12" height="12"><path d="M6 10.5v-9M2 5.5l4-4 4 4"/></svg></span></a>
  </div>
</footer>
```

```css
/* Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license */
/* Kodza — Footer Minimal
   The footer that takes no room: one line with the logo, the ©, three links and Back to top. On
   hover, a line comes in under a link from the left and leaves by the right, and the arrow of
   Back to top rolls up. On phones, two centred lines: the logo and the links, then the rest.
   Everything is tuned with the --kz-footer-minimal-* variables. */
.kodza-footer-minimal {
  --kz-footer-minimal-bg: #ffffff;
  --kz-footer-minimal-fg: #0a0a0a;
  --kz-footer-minimal-muted: rgba(10, 10, 10, 0.62);
  --kz-footer-minimal-line: rgba(10, 10, 10, 0.1);
  --kz-footer-minimal-soft: rgba(10, 10, 10, 0.05); /* Back to top, under the pointer */
  --kz-footer-minimal-width: 1200px; /* the line, centred */
  --kz-footer-minimal-pad: 24px;
  --kz-footer-minimal-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --kz-footer-minimal-ease: cubic-bezier(0.22, 1, 0.36, 1);

  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--kz-footer-minimal-line);
  background: var(--kz-footer-minimal-bg);
  color: var(--kz-footer-minimal-fg);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  container: kodza-footer-minimal / inline-size;
}

/* Centred by its margins (no margin: auto, which some browsers read late) */
.kodza-footer-minimal__inner {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  box-sizing: border-box;
  margin: 0 max(0px, calc((100% - var(--kz-footer-minimal-width)) / 2));
  padding-top: 22px;
  padding-bottom: 22px;
  padding-left: max(var(--kz-footer-minimal-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--kz-footer-minimal-pad), env(safe-area-inset-right, 0px));
}

.kodza-footer-minimal__logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 32px;
  border-radius: 6px;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.kodza-footer-minimal__logo svg {
  display: block;
  flex: none;
  fill: currentColor;
}

/* A hairline between the logo and the © */
.kodza-footer-minimal__copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 20px;
  margin: 0;
  font-family: var(--kz-footer-minimal-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--kz-footer-minimal-muted);
  white-space: nowrap;
}

.kodza-footer-minimal__copy::before {
  content: "";
  flex: none;
  width: 1px;
  height: 14px;
  background: var(--kz-footer-minimal-line);
}

.kodza-footer-minimal__nav {
  margin-left: auto;
  min-width: 0;
}

.kodza-footer-minimal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-minimal__links li {
  margin: 0;
  padding: 0;
}

/* Links: the line grows from the left, and shrinks away to the right */
.kodza-footer-minimal__link {
  color: var(--kz-footer-minimal-muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size 0.4s var(--kz-footer-minimal-ease), color 0.2s ease;
}

@media (hover: hover) {
  .kodza-footer-minimal__link:hover {
    color: var(--kz-footer-minimal-fg);
    background-position: 0 100%;
    background-size: 100% 1px;
  }
}

/* Back to top: a pill, and an arrow that rolls up (the next one waits under it) */
.kodza-footer-minimal__top {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-left: 4px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--kz-footer-minimal-line);
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.kodza-footer-minimal__arrow {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 12px;
  height: 12px;
  overflow: clip;
}

.kodza-footer-minimal__arrow svg {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--kz-footer-minimal-ease);
}

@media (hover: hover) {
  .kodza-footer-minimal__top:hover {
    background-color: var(--kz-footer-minimal-soft);
  }

  .kodza-footer-minimal__top:hover .kodza-footer-minimal__arrow svg {
    transform: translateY(-100%);
  }
}

.kodza-footer-minimal__logo:focus-visible,
.kodza-footer-minimal__link:focus-visible,
.kodza-footer-minimal__top:focus-visible {
  outline: 2px solid var(--kz-footer-minimal-fg);
  outline-offset: 3px;
}

.kodza-footer-minimal__link:focus-visible {
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-footer-minimal__link,
  .kodza-footer-minimal__arrow svg {
    transition: none;
  }
}

/* Phones: two centred lines, the logo and the links, then the © and Back to top. An empty item
   the width of the line breaks it (the row gap counts twice around it, hence half of it); on a
   very narrow screen a line wraps again instead of running out */
@container kodza-footer-minimal (max-width: 640px) {
  .kodza-footer-minimal__inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    column-gap: 20px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .kodza-footer-minimal__inner::after {
    content: "";
    order: 1;
    flex: 0 0 100%;
  }

  .kodza-footer-minimal__nav {
    margin-left: 0;
  }

  .kodza-footer-minimal__copy {
    order: 2;
  }

  .kodza-footer-minimal__copy::before {
    display: none;
  }

  .kodza-footer-minimal__top {
    order: 2;
    margin-left: 0;
  }
}

/* kodza-guard 439744504171 — 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-footer-minimal__logo):not(#_) {
  outline: revert;
  outline-offset: revert;
}

:where(.kodza-footer-minimal__link):not(#_) {
  border-radius: revert;
  outline: revert;
  outline-offset: revert;
}

:where(.kodza-footer-minimal__top):not(#_) {
  outline: revert;
  background-color: revert;
  outline-offset: revert;
}

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

.kodza-footer-minimal:not(#_) {
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  position: revert;
  border-right-width: revert;
  border-bottom-width: revert;
  border-left-width: revert;
  border-right-style: revert;
  border-bottom-style: revert;
  border-left-style: revert;
  border-right-color: revert;
  border-bottom-color: revert;
  border-left-color: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-minimal__logo:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: 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-footer-minimal__copy: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-style: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-minimal__year:not(#_),
.kodza-footer-minimal__arrow:not(#_),
.kodza-footer-minimal__logo span:where(:not([class*="kodza-"])):not(#_) {
  box-sizing: revert;
}

.kodza-footer-minimal__nav: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;
  margin-top: revert;
  margin-right: revert;
  margin-bottom: 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-footer-minimal__links:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: 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-footer-minimal__link:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  box-shadow: 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-footer-minimal__top:not(#_) {
  border: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  margin-top: revert;
  margin-right: revert;
  margin-bottom: revert;
  background-image: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: 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-footer-minimal__logo svg:where(:not([class*="kodza-"])):not(#_) {
  border: revert;
  margin: 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;
  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-footer-minimal__links li:where(:not([class*="kodza-"]):not(.kodza-footer-minimal__links [class*="kodza-"] *)):not(#_) {
  border: 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;
  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-footer-minimal__arrow svg: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-footer-minimal__nav:not(#_):where(:not([hidden])),
.kodza-footer-minimal__link:not(#_):where(:not([hidden])),
.kodza-footer-minimal__links li:where(:not([class*="kodza-"]):not(.kodza-footer-minimal__links [class*="kodza-"] *)):not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-footer-minimal__nav:not(#_):where([hidden]),
.kodza-footer-minimal__link:not(#_):where([hidden]),
.kodza-footer-minimal__links li:where(:not([class*="kodza-"]):not(.kodza-footer-minimal__links [class*="kodza-"] *)):not(#_):where([hidden]) {
  display: none;
}

.kodza-footer-minimal__copy:not(#_)::before,
.kodza-footer-minimal__inner: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-footer-minimal:not(#_) {
  display: block;
  box-sizing: border-box;
  padding: 0;
  border-top: 1px solid var(--kz-footer-minimal-line);
  background: var(--kz-footer-minimal-bg);
  color: var(--kz-footer-minimal-fg);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.kodza-footer-minimal__logo:not(#_) {
  display: inline-flex;
  border-radius: 6px;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.kodza-footer-minimal__logo svg:not(#_) {
  display: block;
}

.kodza-footer-minimal__copy:not(#_) {
  display: inline-flex;
  margin: 0;
  font-family: var(--kz-footer-minimal-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--kz-footer-minimal-muted);
}

.kodza-footer-minimal__nav:not(#_) {
  margin-left: auto;
}

.kodza-footer-minimal__links:not(#_) {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-minimal__links li:not(#_) {
  margin: 0;
  padding: 0;
}

.kodza-footer-minimal__link:not(#_) {
  color: var(--kz-footer-minimal-muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size 0.4s var(--kz-footer-minimal-ease), color 0.2s ease;
}

@media (hover: hover) {
  .kodza-footer-minimal__link:hover:not(#_) {
    color: var(--kz-footer-minimal-fg);
    background-position: 0 100%;
    background-size: 100% 1px;
  }
}

.kodza-footer-minimal__top:not(#_) {
  display: inline-flex;
  margin-left: 4px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--kz-footer-minimal-line);
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.kodza-footer-minimal__arrow svg:not(#_) {
  display: block;
  transition: transform 0.45s var(--kz-footer-minimal-ease);
}

@media (hover: hover) {
  .kodza-footer-minimal__top:hover:not(#_) {
    background-color: var(--kz-footer-minimal-soft);
  }
}

.kodza-footer-minimal__logo:focus-visible:not(#_),
.kodza-footer-minimal__link:focus-visible:not(#_),
.kodza-footer-minimal__top:focus-visible:not(#_) {
  outline: 2px solid var(--kz-footer-minimal-fg);
  outline-offset: 3px;
}

.kodza-footer-minimal__link:focus-visible:not(#_) {
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-footer-minimal__link:not(#_),
  .kodza-footer-minimal__arrow svg:not(#_) {
    transition: none;
  }
}

@container kodza-footer-minimal (max-width: 640px) {
  .kodza-footer-minimal__nav:not(#_) {
    margin-left: 0;
  }
}

@container kodza-footer-minimal (max-width: 640px) {
  .kodza-footer-minimal__top:not(#_) {
    margin-left: 0;
  }
}
```

```js
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Kodza — Footer Minimal
// The script writes the year of the ©, and Back to top goes up smoothly (at once when motion is
// reduced). From the keyboard the focus goes up with it: the next Tab starts at the top of the
// page instead of coming back down to the footer. Without the script, #top still goes up.
(() => {
  const SELECTOR = '.kodza-footer-minimal';
  const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])';

  // One instance, with its own state: two copies on a page never interfere. Everything it
  // starts is tied to `signal`, so kodza:destroy stops it all.
  function mount(root, signal) {
    root.querySelectorAll('.kodza-footer-minimal__year').forEach((year) => {
      year.textContent = String(new Date().getFullYear());
    });

    root.querySelectorAll('.kodza-footer-minimal__top').forEach((top) => {
      top.addEventListener('click', (event) => {
        event.preventDefault();
        window.scrollTo({ top: 0, behavior: reduceMotion ? 'auto' : 'smooth' });
        if (event.detail !== 0) return; // a click with the mouse leaves the focus where it is
        // From the keyboard: the first thing on the page you can reach takes the focus
        const first = [...document.querySelectorAll(FOCUSABLE)].find((el) => !root.contains(el) && el.getClientRects().length && el.checkVisibility?.({ visibilityProperty: true }) !== false);
        first?.focus({ preventScroll: true });
      }, { signal });
    });
  }

  // Kodza lifecycle, the same in every component: `kodza:init` starts the instances inside
  // event.detail.root (the whole page by default), `kodza:destroy` stops them and puts their
  // markup back. For themes and apps that swap content without a page load. Each running root
  // keeps its markup as written under KODZA, shared by every Kodza script on the page: a Kodza
  // component inside another one is saved as written, not half-started, and stopped with it.
  const KODZA = Symbol.for('kodza');
  const instances = new WeakMap();
  const find = (scope = document) => [scope, ...scope.querySelectorAll(SELECTOR)].filter((el) => el.matches?.(SELECTOR));
  const attrsOf = (el) => [...el.attributes].map((a) => [a.name, a.value]);
  const put = (el, saved) => {
    [...el.attributes].forEach((a) => el.removeAttribute(a.name));
    saved.attrs.forEach(([name, value]) => el.setAttribute(name, value));
    el.innerHTML = saved.html;
  };
  // The markup inside a root as written: Kodza components already running in it give back their own
  const written = (root) => {
    const all = [...root.querySelectorAll('*')];
    if (!all.some((el) => el[KODZA])) return root.innerHTML;
    const copy = root.cloneNode(true);
    const twins = copy.querySelectorAll('*');
    let last = null;
    all.forEach((el, i) => {
      if (!el[KODZA] || last?.contains(el)) return;
      last = el;
      put(twins[i], el[KODZA]);
    });
    return copy.innerHTML;
  };
  const init = (scope) => find(scope).forEach((root) => {
    if (root.classList.contains('is-ready')) return; // already running, maybe from another copy of this script
    const controller = new AbortController();
    const saved = { html: written(root), attrs: attrsOf(root), stop: () => destroy(root) };
    instances.set(root, { controller, saved });
    root[KODZA] = saved;
    mount(root, controller.signal);
    root.classList.add('is-ready');
  });
  const destroy = (scope) => find(scope).forEach((root) => {
    const instance = instances.get(root);
    if (!instance) return;
    instances.delete(root);
    // The Kodza components running inside it stop first: once its markup is put back, their own
    // script could not find them any more
    root.querySelectorAll('*').forEach((el) => el[KODZA]?.stop());
    instance.controller.abort();
    delete root[KODZA];
    put(root, instance.saved);
  });
  document.addEventListener('kodza:init', (event) => init(event.detail?.root));
  document.addEventListener('kodza:destroy', (event) => destroy(event.detail?.root));
  init();
  // Loaded in <head>, the script runs before the markup exists: once more when it is parsed
  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', () => init(), { once: true });
})();
```

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