/* ==========================================================================
   werserk.dev components
   Requires tokens.css (linked first). No build step, no JS needed to read.
   Live reference with every state: kit.html

   CONTRACT — class names below are the interface with the structure lane.
   They are stable. A rename is recorded in the changelog at the end of this
   comment; nothing is renamed silently.

   Naming: wk-block, wk-block__element, wk-block--modifier.
   State:  native attributes first ([disabled], [open], [aria-current],
           [aria-busy], [aria-invalid], [readonly]); data-state where a
           script drives several elements at once; .is-hover / .is-focus
           only force a state for documentation.

   -- PAGE FRAME -----------------------------------------------------------
   wk-page                 on <body>: background grid, type defaults
   wk-frame                centred column with hairline sides (use on <main>)
   wk-hatch                divider between sections: hatched band, full-bleed
                           rules, corner crosses  (<hr class="wk-hatch">)
   wk-seam                 full-bleed rule with crosses, no band (<hr>)
   wk-block                padded block inside the frame
   wk-block--ruled         ... with a hairline under it
   wk-split                two panels, 1/3 + 2/3 from 1024px, stacked below
     wk-split__aside         narrow panel (labels, links, facts)
     wk-split__main          wide panel (prose, form)
   wk-skip-link            first element in <body>
   wk-visually-hidden      screen-reader-only text

   -- 01 APP SHELL ---------------------------------------------------------
   wk-topbar               <header>, sticky
     wk-topbar__inner
     wk-topbar__brand        <a>: mark + name
     wk-topbar__name         "werserk.dev" (hidden below 640px, kept for AT)
     wk-topbar__nav          <nav>: section anchors, scrolls sideways on mobile
     wk-topbar__link         <a>; the "#" is drawn by CSS; [aria-current]
     wk-topbar__actions      holds a wk-button--sm "Sign in" or a wk-account
   wk-mark                 werserk logo mark, takes currentColor
   wk-account              <details>: account menu, works without JS
     wk-account__trigger     <summary>
     wk-account__avatar      initials
     wk-account__name        email (hidden below 640px)
     wk-account__menu
     wk-account__meta        "Signed in as ..."
     wk-account__item        <a> / <button>
     wk-account__count       number badge inside an item
   wk-footer               <footer>
     wk-footer__inner
     wk-footer__brand
     wk-footer__note
     wk-footer__col          <nav>
     wk-footer__title
     wk-footer__link
     wk-footer__meta         bottom line

   -- 02 SECTION HEADING ---------------------------------------------------
   wk-section              <section>
     wk-section__head
     wk-section__main
     wk-section__kicker      index + label line
     wk-section__index       "01"
     wk-section__label       mono uppercase label
     wk-section__title       display title
     wk-section__aside       optional right cell
     wk-section__lead
     wk-section__count       "3 projects"

   -- 03 PROJECT CARD ------------------------------------------------------
   wk-card                 <article>; states :hover, :focus-within,
                           .is-hover, .is-focus
     wk-card__cover          16:10; put an <img> inside
     wk-card__cover--empty   no cover: put wk-card__monogram inside instead
                             and add data-seed="<slug>" (see GENERATED COVER)
     wk-card__monogram       2-3 letters, aria-hidden
     wk-card__badge          tag on the cover ("Members only")
     wk-card__body
     wk-card__meta           index + status row
     wk-card__index          "01"
     wk-card__title          <h3>
     wk-card__link           <a> inside the title; stretches over the card
     wk-card__tagline        clamps to two lines
     wk-card__foot           access marker + year
     wk-card__year
     wk-card__arrow          decorative, aria-hidden
   wk-status               status chip; marker drawn by CSS
     wk-status--idea | --building | --demo | --live | --archived
   wk-access               access marker; icon drawn by CSS
     wk-access--open         anyone can use it
     wk-access--invite       invited members only
     wk-access--owner        owner only, over Tailscale
     wk-access--none         showcase, nothing to open
     wk-access--members      visibility: members (the lock)
   wk-tag                  bordered tag; wk-tags is the <ul> wrapper
   wk-label                mono uppercase micro-label; wk-label--accent

   -- 04 CATALOG GRID ------------------------------------------------------
   wk-grid                 1 / 2 / 3 columns (640px, 1024px). Children are
                           wk-card. Empty trailing cells show the hatch.

   -- 05 PROJECT PAGE HERO -------------------------------------------------
   wk-hero                 <header>; without __aside it is a page intro
     wk-hero__bar            strip above both panels
     wk-hero__origin         right cell of the strip (host, access marker)
     wk-hero__main
     wk-hero__title          <h1>
     wk-hero__tagline
     wk-hero__meta           status + year + tags row
     wk-hero__year
     wk-hero__aside          media panel
     wk-hero__media          <figure> with an <img>, 16:10
     wk-hero__media--empty   no image: empty <figure> with data-seed="<slug>"
   wk-breadcrumb           <nav>; inside it <ol class="wk-breadcrumb__list">
     wk-breadcrumb__list
     wk-breadcrumb__item     <li>; last one carries aria-current="page"
   wk-facts                <dl>
     wk-facts__item          <div> wrapping one dt + dd
     wk-facts__label         <dt>
     wk-facts__value         <dd>
   wk-links                <ul> of outbound links (project "links")
     wk-links__item          <a>

   -- 06 ACTION BUTTONS ----------------------------------------------------
   wk-button               <a> or <button>
     wk-button--primary | --secondary | --ghost
     wk-button--done         "Request sent": not interactive
     wk-button--sm           compact (top bar)
     wk-button--block        full width
     [disabled] / [aria-disabled="true"]      disabled
     [aria-busy="true"]                        sending
   wk-iconbutton           square icon-only button (needs aria-label)
   wk-icon                 inline icon, takes currentColor; aria-hidden
     wk-icon--arrow-right | --arrow-left | --arrow-up-right
     wk-icon--chevron-left | --chevron-right | --chevron-down
     wk-icon--close | --check | --expand
     wk-icon--lock | --key | --globe | --network | --eye | --user | --mail
     wk-icon--info | --warning | --clock
   wk-actions              the primary-action area of a project page
     wk-actions__note        one line under / instead of the buttons
     >> JS HOOK: data-state on wk-actions, data-when on its children.
        data-state = open | request | signin | pending | none
          open     viewer may use it          -> "Open site" / "Open demo"
          request  signed in, no access       -> "Request access"
          signin   anonymous, invite project  -> "Sign in to request"
          pending  request already sent       -> "Request sent"
          none     owner-only or showcase     -> note only, no button
        A child with data-when="a b" is shown only in states a and b.
        Children without data-when are always shown. Render the right
        state server-side; a script may change data-state later and CSS
        does the rest.

   -- 07 MEDIA GALLERY -----------------------------------------------------
   wk-gallery              2 / 3 columns; add data-wk-lightbox for kit.js
     wk-gallery__item        <figure>
     wk-gallery__thumb       <a href="full image"> wrapping an <img>
     wk-gallery__caption     <figcaption>
     wk-gallery__index       "01"
   wk-lightbox             <dialog>, built by kit.js
     wk-lightbox__bar | __counter | __stage | __image | __foot | __caption

   -- 08 PROSE -------------------------------------------------------------
   wk-prose                wraps rendered markdown: h2 h3 h4 p ul ol a
                           strong em code pre blockquote img figure hr table

   -- 09 REQUEST ACCESS FORM -----------------------------------------------
   wk-form                 <form>
     >> JS HOOK: data-state = idle | sending | sent | error
     wk-form__fields         everything hidden once sent
     wk-form__error          shown only in "error" (put a wk-notice--error in)
     wk-form__actions
     wk-form__done           shown only in "sent"
   wk-field
     wk-field__label         <label>
     wk-field__optional      "optional"
     wk-field__hint
     wk-field__error         field-level message
   wk-input                <input>; [readonly], [aria-invalid="true"]
     wk-input--area          <textarea>
   wk-dialog               <dialog>
     wk-dialog__head | __title | __body
   wk-panel                inline bordered box (same look as the dialog)
     wk-panel__head | __title | __body
   kit.js hooks: data-wk-open="dialog-id" opens, data-wk-close closes.

   -- 10 NOTICE ------------------------------------------------------------
   wk-notice               icon drawn by CSS
     wk-notice--info | --warning | --success | --error
     wk-notice__title
     wk-notice__text
     wk-notice__action       optional link

   -- 11 EMPTY STATE -------------------------------------------------------
   wk-empty
     wk-empty__art           decorative, aria-hidden, drawn by CSS
     wk-empty__title
     wk-empty__text
     wk-empty__actions

   -- GENERATED COVER (cover.js) -------------------------------------------
   For a project without a picture. Load cover.js (defer) and give the empty
   cover a seed; the same seed always draws the same cover.
     <div class="wk-card__cover wk-card__cover--empty" data-seed="kira">
       <span class="wk-card__monogram" aria-hidden="true">KI</span>
     </div>
     <figure class="wk-hero__media wk-hero__media--empty" data-seed="kira">
     </figure>
   >> JS HOOK: data-seed in, data-cover="art" out (set by cover.js once the
      drawing is in place; the monogram then becomes a corner tag).
   wk-cover-art            the generated <svg>; never written by hand
     wk-cover-art__t1 | __t2 | __t3 | __t4    tones: faint, mid, bright, accent
   Without JS, or without data-seed, the cover is the dot field + monogram.
   From a script: wkCover(root) draws covers added later.

   CHANGELOG
   2026-12-05  v1    first published list.
   2026-12-06  v1.1  additive, nothing renamed: generated covers (cover.js,
                     data-seed, wk-cover-art, wk-hero__media--empty).
   ========================================================================== */


/* ==========================================================================
   Shared drawings
   ========================================================================== */

:root {
  /* Diagonal hatch: divider bands, empty grid cells, disabled controls */
  --wk-hatch: repeating-linear-gradient(135deg, transparent 0 6px, var(--wk-line) 6px 7px);
  --wk-hatch-faint: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, 0.05) 6px 7px);
  /* Dot field: empty covers, empty state */
  --wk-dots: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.11) 1px, transparent 1.5px) 0 0 / 0.75rem 0.75rem;

  /* Corner crosses for a box that overhangs its frame by 7px on each side */
  --wk-crosses-top:
    linear-gradient(var(--wk-cross), var(--wk-cross)) left 0 top 6px / 13px 1px no-repeat,
    linear-gradient(var(--wk-cross), var(--wk-cross)) left 6px top 0 / 1px 13px no-repeat,
    linear-gradient(var(--wk-cross), var(--wk-cross)) right 0 top 6px / 13px 1px no-repeat,
    linear-gradient(var(--wk-cross), var(--wk-cross)) right 6px top 0 / 1px 13px no-repeat;
  --wk-crosses-bottom:
    linear-gradient(var(--wk-cross), var(--wk-cross)) left 0 bottom 6px / 13px 1px no-repeat,
    linear-gradient(var(--wk-cross), var(--wk-cross)) left 6px bottom 0 / 1px 13px no-repeat,
    linear-gradient(var(--wk-cross), var(--wk-cross)) right 0 bottom 6px / 13px 1px no-repeat,
    linear-gradient(var(--wk-cross), var(--wk-cross)) right 6px bottom 0 / 1px 13px no-repeat;

  /* Icons: 16px grid, 1.5px square-cut strokes. Used as masks. */
  --wk-icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M2 8h11.5M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E");
  --wk-icon-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M14 8H2.5M7 3.5 2.5 8 7 12.5'/%3E%3C/svg%3E");
  --wk-icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12l7.5-7.5M5 4.5h6.5V11'/%3E%3C/svg%3E");
  --wk-icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M10 3 5 8l5 5'/%3E%3C/svg%3E");
  --wk-icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='m6 3 5 5-5 5'/%3E%3C/svg%3E");
  --wk-icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  --wk-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='m3.5 3.5 9 9M12.5 3.5l-9 9'/%3E%3C/svg%3E");
  --wk-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='m2.5 8.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E");
  --wk-icon-expand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M9.5 2.5h4v4M6.5 13.5h-4v-4M13.5 2.5 9 7M2.5 13.5 7 9'/%3E%3C/svg%3E");
  --wk-icon-expand-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fafafa' stroke-width='1.5'%3E%3Cpath d='M9.5 2.5h4v4M6.5 13.5h-4v-4M13.5 2.5 9 7M2.5 13.5 7 9'/%3E%3C/svg%3E");
  --wk-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M3 7.25h10v6.25H3zM5.25 7V5a2.75 2.75 0 0 1 5.5 0v2'/%3E%3C/svg%3E");
  --wk-icon-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M8 10.5a2.75 2.75 0 1 1-5.5 0 2.75 2.75 0 0 1 5.5 0zM7.2 8.55 13 2.75M10.5 5.25l2 2'/%3E%3C/svg%3E");
  --wk-icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0zM2.5 8h11M8 2.5c-2.2 1.8-2.2 9.200 0 11M8 2.500c2.200 1.800 2.200 9.200 0 11'/%3E%3C/svg%3E");
  --wk-icon-network: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M6.25 2h3.500v3.500h-3.500zM1.750 10.500h3.500V14h-3.500zM10.750 10.500h3.500V14h-3.500zM7 5.500l-2.500 5M9 5.500l2.500 5M5.250 12.250h5.500'/%3E%3C/svg%3E");
  --wk-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M1.500 8S4 3.500 8 3.500 14.500 8 14.500 8 12 12.500 8 12.500 1.500 8 1.500 8zM10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0z'/%3E%3C/svg%3E");
  --wk-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M10.750 5.250a2.750 2.750 0 1 1-5.500 0 2.750 2.750 0 0 1 5.500 0zM2.500 14c.5-2.700 2.700-4 5.500-4s5 1.300 5.500 4'/%3E%3C/svg%3E");
  --wk-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M2 3.500h12v9H2zM2.500 4 8 8.750 13.500 4'/%3E%3C/svg%3E");
  --wk-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M2.500 2.500h11v11h-11zM8 7.250v4M8 4.500V6'/%3E%3C/svg%3E");
  --wk-icon-warning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M8 2.250 14.250 13.500H1.750zM8 6.500V10M8 10.750v1.500'/%3E%3C/svg%3E");
  --wk-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M13.500 8a5.500 5.500 0 1 1-11 0 5.500 5.500 0 0 1 11 0zM8 4.750V8h2.750'/%3E%3C/svg%3E");
  --wk-icon-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='42 92 940 940'%3E%3Cpath d='M820.475 459.551 624.475 616.352l-80 64-32-64v-224l112 224 155.789-290.808L965.948 188.001 820.475 459.551ZM772.474 549.151l-35.999 67.201-112 224-61.715-123.429 125.715-100.571 83.999-67.201ZM512.475 616.352l-74.667 149.333-53.333 42.667-64-128 80-64 112-224v224ZM244.685 325.544l136.589 254.967-79.086 63.268-13.713-27.427L59 188l185.685 137.544ZM320.475 744.352l16-32 144-32-96 128-176 128 112-192Z'/%3E%3C/svg%3E");
}


/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--wk-topbar-height) + var(--wk-space-06));
  background: var(--wk-background);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: var(--wk-focus-width) solid var(--wk-focus);
  outline-offset: var(--wk-focus-offset);
}

::selection {
  background: var(--wk-action-primary);
  color: var(--wk-layer-inverse);
}

.wk-page {
  --wk-frame-w: min(100vw - 2 * var(--wk-frame-gutter), var(--wk-frame-max));
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background-color: var(--wk-background);
  /* werserk.com grid, anchored to the frame's left edge so the frame
     hairlines sit on grid lines */
  background-image:
    linear-gradient(var(--wk-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--wk-grid-minor) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath d='M0 0H8M0 0V8M256 0H248M256 0V8M0 256H8M0 256V248M256 256H248M256 256V248' fill='none' stroke='%23fff' stroke-opacity='.075' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-position:
    calc(50% + var(--wk-grid-cell) / 2 - var(--wk-frame-w) / 2) 0,
    calc(50% + var(--wk-grid-cell) / 2 - var(--wk-frame-w) / 2) 0,
    calc(50% + var(--wk-grid-major-cell) / 2 - var(--wk-frame-w) / 2) 0;
  background-size:
    var(--wk-grid-cell) var(--wk-grid-cell),
    var(--wk-grid-cell) var(--wk-grid-cell),
    var(--wk-grid-major-cell) var(--wk-grid-major-cell);
  color: var(--wk-text-secondary);
  font-family: var(--wk-font-sans);
  font-size: var(--wk-font-size-05);
  font-weight: var(--wk-font-weight-regular);
  line-height: var(--wk-leading-body);
  letter-spacing: var(--wk-tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wk-page :where(h1, h2, h3, h4, p, figure, blockquote, dl, dd, pre) {
  margin: 0;
}

.wk-page :where(ul, ol)[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wk-page :where(img, svg, video) {
  display: block;
  max-width: 100%;
}

.wk-page :where(a) {
  color: inherit;
}

.wk-page :where(button, input, textarea, select) {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.wk-page :where(a, button, summary) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

.wk-skip-link {
  position: absolute;
  top: var(--wk-space-03);
  left: var(--wk-space-03);
  z-index: var(--wk-z-overlay);
  padding: var(--wk-space-03) var(--wk-space-05);
  background: var(--wk-action-primary);
  color: var(--wk-layer-inverse);
  font-size: var(--wk-font-size-04);
  font-weight: var(--wk-font-weight-semibold);
  text-decoration: none;
  transform: translateY(-200%);
}

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


/* ==========================================================================
   Frame, hatch, seam
   ========================================================================== */

.wk-frame,
.wk-topbar__inner,
.wk-footer__inner {
  position: relative;
  width: min(100% - 2 * var(--wk-frame-gutter), var(--wk-frame-max));
  margin-inline: auto;
  border-inline: var(--wk-border-width) solid var(--wk-line);
}

.wk-page > .wk-frame {
  flex: 1 0 auto;
}

.wk-hatch,
.wk-seam {
  position: relative;
  display: block;
  width: auto;
  margin: -1px 0 0;
  overflow: visible; /* the UA clips <hr>; the rules and crosses overhang it */
  border: 0;
  color: inherit;
}

.wk-hatch {
  height: var(--wk-hatch-height);
  background: var(--wk-hatch);
}

.wk-seam {
  height: 1px;
}

/* full-bleed rules */
.wk-hatch::before,
.wk-seam::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: var(--wk-border-width) solid var(--wk-line);
  pointer-events: none;
}

.wk-hatch::before {
  border-bottom: var(--wk-border-width) solid var(--wk-line);
}

/* crosses where the rules meet the frame */
.wk-hatch::after,
.wk-seam::after {
  content: "";
  position: absolute;
  inset: -6px -7px;
  background: var(--wk-crosses-top), var(--wk-crosses-bottom);
  pointer-events: none;
}

.wk-seam::after {
  background: var(--wk-crosses-top);
}

.wk-block {
  padding: var(--wk-space-07) var(--wk-frame-pad);
}

.wk-block--ruled {
  border-bottom: var(--wk-border-width) solid var(--wk-line);
}

.wk-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.wk-split__aside {
  display: grid;
  align-content: start;
  gap: var(--wk-space-06);
  padding: var(--wk-space-07) var(--wk-frame-pad);
  border-bottom: var(--wk-border-width) solid var(--wk-line);
}

.wk-split__main {
  min-width: 0;
  padding: var(--wk-space-07) var(--wk-frame-pad) var(--wk-space-09);
}

@media (min-width: 64rem) {
  .wk-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .wk-split__aside {
    border-right: var(--wk-border-width) solid var(--wk-line);
    border-bottom: 0;
    padding-block: var(--wk-space-09);
  }

  .wk-split__main {
    padding-block: var(--wk-space-09) var(--wk-space-10);
  }
}


/* ==========================================================================
   Small parts: label, tag, status, access, icon, mark
   ========================================================================== */

.wk-label,
.wk-status,
.wk-access,
.wk-tag {
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  line-height: var(--wk-leading-label);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

.wk-label {
  color: var(--wk-text-muted);
}

.wk-label--accent {
  color: var(--wk-action-primary);
}

.wk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wk-space-02);
}

.wk-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--wk-space-02) var(--wk-space-03);
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: var(--wk-state-hover);
  color: var(--wk-text-muted);
}

/* status: a square marker whose fill tells the stage, plus the word */
.wk-status {
  --wk-status-color: var(--wk-status-idea);
  display: inline-flex;
  align-items: center;
  gap: var(--wk-space-03);
  color: var(--wk-text-secondary);
  white-space: nowrap;
}

.wk-status::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border: var(--wk-border-width) solid var(--wk-status-color);
  background: var(--wk-status-color);
}

.wk-status--idea::before {
  background: transparent;
}

.wk-status--building {
  --wk-status-color: var(--wk-status-building);
}

.wk-status--building::before {
  background: linear-gradient(90deg, var(--wk-status-color) 50%, transparent 50%);
}

.wk-status--demo {
  --wk-status-color: var(--wk-status-demo);
}

.wk-status--live {
  --wk-status-color: var(--wk-status-live);
}

.wk-status--archived {
  --wk-status-color: var(--wk-status-archived);
  color: var(--wk-text-muted);
}

.wk-status--archived::before {
  background: linear-gradient(135deg, transparent 44%, var(--wk-status-color) 44% 56%, transparent 56%);
}

/* access: icon + word */
.wk-access {
  --wk-icon: var(--wk-icon-globe);
  display: inline-flex;
  align-items: center;
  gap: var(--wk-space-03);
  color: var(--wk-text-muted);
  white-space: nowrap;
}

.wk-access::before,
.wk-notice::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--wk-icon) center / contain no-repeat;
  mask: var(--wk-icon) center / contain no-repeat;
}

.wk-access::before {
  width: 0.875rem;
  height: 0.875rem;
}

.wk-access--invite {
  --wk-icon: var(--wk-icon-key);
}

.wk-access--owner {
  --wk-icon: var(--wk-icon-network);
}

.wk-access--none {
  --wk-icon: var(--wk-icon-eye);
}

.wk-access--members {
  --wk-icon: var(--wk-icon-lock);
}

.wk-icon,
.wk-mark {
  display: inline-block;
  flex: none;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--wk-icon) center / contain no-repeat;
  mask: var(--wk-icon) center / contain no-repeat;
  vertical-align: -0.1875em;
}

.wk-icon--arrow-right { --wk-icon: var(--wk-icon-arrow-right); }
.wk-icon--arrow-left { --wk-icon: var(--wk-icon-arrow-left); }
.wk-icon--arrow-up-right { --wk-icon: var(--wk-icon-arrow-up-right); }
.wk-icon--chevron-left { --wk-icon: var(--wk-icon-chevron-left); }
.wk-icon--chevron-right { --wk-icon: var(--wk-icon-chevron-right); }
.wk-icon--chevron-down { --wk-icon: var(--wk-icon-chevron-down); }
.wk-icon--close { --wk-icon: var(--wk-icon-close); }
.wk-icon--check { --wk-icon: var(--wk-icon-check); }
.wk-icon--expand { --wk-icon: var(--wk-icon-expand); }
.wk-icon--lock { --wk-icon: var(--wk-icon-lock); }
.wk-icon--key { --wk-icon: var(--wk-icon-key); }
.wk-icon--globe { --wk-icon: var(--wk-icon-globe); }
.wk-icon--network { --wk-icon: var(--wk-icon-network); }
.wk-icon--eye { --wk-icon: var(--wk-icon-eye); }
.wk-icon--user { --wk-icon: var(--wk-icon-user); }
.wk-icon--mail { --wk-icon: var(--wk-icon-mail); }
.wk-icon--info { --wk-icon: var(--wk-icon-info); }
.wk-icon--warning { --wk-icon: var(--wk-icon-warning); }
.wk-icon--clock { --wk-icon: var(--wk-icon-clock); }

.wk-mark {
  --wk-icon: var(--wk-icon-mark);
  width: 1.5rem;
  height: 1.5rem;
  color: var(--wk-text-primary);
  vertical-align: middle;
}

@media (forced-colors: active) {
  .wk-icon,
  .wk-mark,
  .wk-access::before,
  .wk-notice::before {
    background: CanvasText;
    forced-color-adjust: none;
  }
}


/* ==========================================================================
   01 App shell
   ========================================================================== */

.wk-topbar {
  position: sticky;
  top: 0;
  z-index: var(--wk-z-sticky);
  border-bottom: var(--wk-border-width) solid var(--wk-line);
  background: var(--wk-background-veil);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.wk-topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  height: var(--wk-topbar-height);
}

.wk-topbar__inner::after,
.wk-footer__inner::before {
  content: "";
  position: absolute;
  right: -7px;
  left: -7px;
  height: var(--wk-cross-size);
  background: var(--wk-crosses-top);
  pointer-events: none;
}

.wk-topbar__inner::after {
  bottom: -7px;
}

.wk-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--wk-space-04);
  padding-inline: var(--wk-frame-pad);
  border-right: var(--wk-border-width) solid var(--wk-line);
  color: var(--wk-text-primary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-04);
  font-weight: var(--wk-font-weight-semibold);
  line-height: 1;
  text-decoration: none;
}

.wk-topbar__brand:focus-visible,
.wk-topbar__link:focus-visible,
.wk-account__trigger:focus-visible,
.wk-account__item:focus-visible {
  outline-offset: calc(var(--wk-focus-width) * -1);
}

.wk-topbar__nav {
  display: flex;
  align-items: center;
  gap: var(--wk-space-02);
  padding-inline: var(--wk-space-03);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent);
}

.wk-topbar__nav::-webkit-scrollbar {
  display: none;
}

.wk-topbar__link {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: var(--wk-touch-target);
  padding-inline: var(--wk-space-03);
  border: var(--wk-border-width) solid transparent;
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-03);
  line-height: 1;
  text-decoration: none;
  transition:
    color var(--wk-duration-fast) ease,
    border-color var(--wk-duration-fast) ease,
    background-color var(--wk-duration-fast) ease;
}

.wk-topbar__link::before {
  content: "#";
  color: var(--wk-action-primary);
}

.wk-topbar__link:hover {
  border-color: var(--wk-border-subtle);
  color: var(--wk-text-primary);
}

.wk-topbar__link[aria-current]:not([aria-current="false"]) {
  background: var(--wk-state-selected);
  color: var(--wk-text-primary);
  box-shadow: inset 0 -1px 0 var(--wk-intent-marker);
}

.wk-topbar__actions {
  display: flex;
  align-items: stretch;
  border-left: var(--wk-border-width) solid var(--wk-line);
}

.wk-topbar__actions > .wk-button {
  align-self: center;
  margin-inline: var(--wk-space-03);
}

@media (max-width: 39.99rem) {
  .wk-topbar__brand {
    padding-inline: var(--wk-space-04);
  }

  .wk-topbar__name,
  .wk-account__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 64rem) {
  .wk-topbar__nav {
    padding-inline: var(--wk-space-05);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .wk-topbar__nav > :first-child {
    margin-left: auto;
  }

  .wk-topbar__nav > :last-child {
    margin-right: auto;
  }

  .wk-topbar__actions > .wk-button {
    margin-inline: var(--wk-space-04);
  }
}

/* account menu */
.wk-account {
  position: relative;
  display: flex;
}

.wk-account__trigger {
  display: flex;
  align-items: center;
  gap: var(--wk-space-03);
  padding-inline: var(--wk-space-04);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-03);
  line-height: 1;
  list-style: none;
  cursor: pointer;
  transition:
    color var(--wk-duration-fast) ease,
    background-color var(--wk-duration-fast) ease;
}

.wk-account__trigger::-webkit-details-marker {
  display: none;
}

.wk-account__trigger:hover,
.wk-account[open] > .wk-account__trigger {
  background: var(--wk-state-selected);
  color: var(--wk-text-primary);
}

.wk-account__trigger .wk-icon {
  transition: transform var(--wk-duration-fast) var(--wk-ease);
}

.wk-account[open] > .wk-account__trigger .wk-icon {
  transform: rotate(180deg);
}

.wk-account__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: var(--wk-layer-02);
  color: var(--wk-text-primary);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-semibold);
  text-transform: uppercase;
}

.wk-account__name {
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wk-account__menu {
  position: absolute;
  top: calc(100% + 1px);
  right: -1px;
  z-index: var(--wk-z-menu);
  display: grid;
  width: max-content;
  min-width: 15rem;
  max-width: calc(100vw - 2 * var(--wk-frame-gutter));
  border: var(--wk-border-width) solid var(--wk-line-strong);
  background: var(--wk-layer-01);
  box-shadow: var(--wk-shadow-overlay);
}

.wk-account__meta {
  display: grid;
  gap: var(--wk-space-02);
  padding: var(--wk-space-04) var(--wk-space-05);
  border-bottom: var(--wk-border-width) solid var(--wk-line-strong);
  color: var(--wk-text-primary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-03);
  overflow-wrap: anywhere;
}

.wk-account__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wk-space-05);
  min-height: var(--wk-touch-target);
  padding: var(--wk-space-03) var(--wk-space-05);
  border: 0;
  background: transparent;
  color: var(--wk-text-secondary);
  font-size: var(--wk-font-size-04);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.wk-account__item + .wk-account__item {
  border-top: var(--wk-border-width) solid var(--wk-line);
}

.wk-account__item:hover {
  background: var(--wk-state-selected);
  color: var(--wk-text-primary);
  box-shadow: inset var(--wk-marker-width) 0 0 var(--wk-intent-marker);
}

.wk-account__count {
  min-width: 1.25rem;
  padding: 0 var(--wk-space-02);
  background: var(--wk-action-primary);
  color: var(--wk-layer-inverse);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-semibold);
  line-height: 1.25rem;
  text-align: center;
}

/* footer */
.wk-footer {
  margin-top: -1px;
  border-top: var(--wk-border-width) solid var(--wk-line);
}

.wk-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.wk-footer__inner::before {
  top: -7px;
}

.wk-footer__brand,
.wk-footer__col {
  display: grid;
  align-content: start;
  gap: var(--wk-space-03);
  padding: var(--wk-space-07) var(--wk-frame-pad);
}

.wk-footer__brand {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: var(--wk-space-04);
  color: var(--wk-text-primary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-04);
  font-weight: var(--wk-font-weight-semibold);
}

.wk-footer__note {
  grid-column: 1 / -1;
  max-width: 22rem;
  margin-top: var(--wk-space-03);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-sans);
  font-size: var(--wk-font-size-04);
  font-weight: var(--wk-font-weight-regular);
}

.wk-footer__col {
  border-top: var(--wk-border-width) solid var(--wk-line);
}

.wk-footer__title {
  margin-bottom: var(--wk-space-03);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  line-height: var(--wk-leading-label);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

.wk-footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--wk-space-03);
  justify-self: start;
  min-height: 1.75rem;
  color: var(--wk-text-secondary);
  font-size: var(--wk-font-size-04);
  text-decoration: none;
}

.wk-footer__link:hover {
  color: var(--wk-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--wk-intent-marker);
  text-underline-offset: 0.22em;
}

.wk-footer__link .wk-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--wk-text-muted);
}

.wk-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--wk-space-03) var(--wk-space-06);
  padding: var(--wk-space-04) var(--wk-frame-pad);
  border-top: var(--wk-border-width) solid var(--wk-line);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  line-height: var(--wk-leading-label);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

@media (min-width: 48rem) {
  .wk-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wk-footer__col {
    border-top: 0;
    border-left: var(--wk-border-width) solid var(--wk-line);
  }

  .wk-footer__meta {
    grid-column: 1 / -1;
  }
}


/* ==========================================================================
   02 Section heading
   ========================================================================== */

.wk-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.wk-section__main {
  display: grid;
  align-content: end;
  gap: var(--wk-space-04);
  padding: var(--wk-space-08) var(--wk-frame-pad) var(--wk-space-06);
}

.wk-section__kicker {
  display: flex;
  align-items: baseline;
  gap: var(--wk-space-04);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  line-height: var(--wk-leading-label);
}

.wk-section__index {
  color: var(--wk-action-primary);
  font-weight: var(--wk-font-weight-medium);
}

.wk-section__label {
  color: var(--wk-text-muted);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

.wk-section__title {
  max-width: 22ch;
  color: var(--wk-text-primary);
  font-size: var(--wk-font-size-title);
  font-weight: var(--wk-font-weight-semibold);
  line-height: var(--wk-leading-title);
  text-wrap: balance;
}

.wk-section__aside {
  display: grid;
  align-content: end;
  gap: var(--wk-space-04);
  padding: 0 var(--wk-frame-pad) var(--wk-space-06);
}

.wk-section__lead {
  max-width: 34rem;
  color: var(--wk-text-muted);
  font-size: var(--wk-font-size-05);
}

.wk-section__count {
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

@media (min-width: 40rem) {
  .wk-section__head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wk-section__main:only-child {
    grid-column: 1 / -1;
  }

  .wk-section__main {
    padding-block: var(--wk-space-10) var(--wk-space-07);
  }

  .wk-section__aside {
    padding-block: var(--wk-space-10) var(--wk-space-07);
    border-left: var(--wk-border-width) solid var(--wk-line);
  }
}

@media (min-width: 64rem) {
  /* the divider lands on the line between card columns 2 and 3 */
  .wk-section__head {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .wk-section__main {
    padding-block: var(--wk-space-11) var(--wk-space-08);
  }

  .wk-section__aside {
    padding-block: var(--wk-space-11) var(--wk-space-08);
  }
}


/* ==========================================================================
   03 Project card  ·  04 Catalog grid
   ========================================================================== */

.wk-grid,
.wk-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--wk-border-width) solid var(--wk-line);
  background: var(--wk-hatch);
}

.wk-grid > *,
.wk-gallery > * {
  border-bottom: var(--wk-border-width) solid var(--wk-line);
  background-color: var(--wk-background);
}

.wk-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wk-gallery > :nth-child(odd) {
  border-right: var(--wk-border-width) solid var(--wk-line);
}

@media (min-width: 40rem) and (max-width: 63.99rem) {
  .wk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wk-grid > :nth-child(odd) {
    border-right: var(--wk-border-width) solid var(--wk-line);
  }
}

@media (min-width: 64rem) {
  .wk-grid,
  .wk-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wk-grid > *,
  .wk-gallery > :nth-child(n) {
    border-right: var(--wk-border-width) solid var(--wk-line);
  }

  .wk-grid > :nth-child(3n),
  .wk-gallery > :nth-child(3n) {
    border-right: 0;
  }
}

.wk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--wk-space-05);
  transition:
    background-color var(--wk-duration-fast) ease,
    box-shadow var(--wk-duration-fast) ease;
}

.wk-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: var(--wk-layer-inverse);
  transition: border-color var(--wk-duration-fast) ease;
}

.wk-card__cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* corner brackets, werserk.com style: shown on hover and focus */
.wk-card__cover::before,
.wk-card__cover::after {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--wk-duration-fast) ease,
    transform var(--wk-duration-base) var(--wk-ease);
}

.wk-card__cover::before {
  top: -0.4375rem;
  right: -0.4375rem;
  border-top: var(--wk-border-width) solid var(--wk-text-muted);
  border-right: var(--wk-border-width) solid var(--wk-text-muted);
  transform: translate(-3px, 3px);
}

.wk-card__cover::after {
  bottom: -0.4375rem;
  left: -0.4375rem;
  border-bottom: var(--wk-border-width) solid var(--wk-text-muted);
  border-left: var(--wk-border-width) solid var(--wk-text-muted);
  transform: translate(3px, -3px);
}

.wk-card__cover--empty {
  display: grid;
  place-items: center;
  background: var(--wk-dots), var(--wk-layer-inverse);
}

.wk-card__monogram {
  color: var(--wk-text-faint);
  font-family: var(--wk-font-mono);
  font-size: 2.5rem;
  font-weight: var(--wk-font-weight-medium);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Generated cover (cover.js): a contour map set in mono characters */
.wk-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--wk-font-mono);
  font-weight: var(--wk-font-weight-medium);
  pointer-events: none;
  user-select: none;
}

.wk-cover-art__t1 { fill: var(--wk-text-faint); }
.wk-cover-art__t2 { fill: rgba(229, 229, 229, 0.5); }
.wk-cover-art__t3 { fill: var(--wk-text-secondary); }
.wk-cover-art__t4 { fill: var(--wk-action-primary); }

.wk-card__cover--empty[data-cover="art"],
.wk-hero__media--empty[data-cover="art"] {
  background: var(--wk-layer-inverse);
}

/* with a drawing behind it the monogram steps back to a corner tag */
[data-cover="art"] > .wk-card__monogram {
  position: absolute;
  bottom: var(--wk-space-03);
  left: var(--wk-space-03);
  padding: var(--wk-space-02) var(--wk-space-03);
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: rgba(15, 15, 15, 0.9);
  color: var(--wk-text-secondary);
  font-size: var(--wk-font-size-01);
  line-height: var(--wk-leading-label);
  letter-spacing: var(--wk-tracking-label);
}

.wk-card__badge {
  position: absolute;
  top: var(--wk-space-03);
  right: var(--wk-space-03);
  display: inline-flex;
  align-items: center;
  gap: var(--wk-space-02);
  padding: var(--wk-space-02) var(--wk-space-03);
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: rgba(15, 15, 15, 0.9);
  color: var(--wk-text-secondary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  line-height: var(--wk-leading-label);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

.wk-card__badge .wk-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.wk-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: var(--wk-space-05);
}

.wk-card__meta,
.wk-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wk-space-04);
}

.wk-card__index,
.wk-card__year {
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  line-height: var(--wk-leading-label);
}

.wk-card__index {
  color: var(--wk-action-primary);
  font-weight: var(--wk-font-weight-medium);
}

.wk-card__year {
  color: var(--wk-text-muted);
}

.wk-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--wk-space-04);
  margin-top: var(--wk-space-04);
  color: var(--wk-text-primary);
  font-size: var(--wk-font-size-07);
  font-weight: var(--wk-font-weight-semibold);
  line-height: var(--wk-leading-snug);
}

.wk-card__link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

.wk-card__link:focus-visible {
  outline: 0;
}

.wk-card__arrow {
  margin-top: 0.25em;
  color: var(--wk-text-faint);
  transition:
    color var(--wk-duration-fast) ease,
    transform var(--wk-duration-base) var(--wk-ease);
}

.wk-card__tagline {
  display: -webkit-box;
  margin-top: var(--wk-space-03);
  overflow: hidden;
  color: var(--wk-text-muted);
  font-size: var(--wk-font-size-04);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.wk-card__foot {
  margin-top: auto;
  padding-top: var(--wk-space-05);
}

/* hover + keyboard focus */
.wk-card:hover,
.wk-card:focus-within,
.wk-card.is-hover,
.wk-card.is-focus {
  background-color: var(--wk-layer-01);
  box-shadow: inset var(--wk-marker-width) 0 0 var(--wk-intent-marker);
}

.wk-card:hover .wk-card__cover,
.wk-card:focus-within .wk-card__cover,
.wk-card.is-hover .wk-card__cover,
.wk-card.is-focus .wk-card__cover {
  border-color: var(--wk-border-field);
}

.wk-card:hover .wk-card__cover::before,
.wk-card:hover .wk-card__cover::after,
.wk-card:focus-within .wk-card__cover::before,
.wk-card:focus-within .wk-card__cover::after,
.wk-card.is-hover .wk-card__cover::before,
.wk-card.is-hover .wk-card__cover::after,
.wk-card.is-focus .wk-card__cover::before,
.wk-card.is-focus .wk-card__cover::after {
  opacity: 1;
  transform: none;
}

.wk-card:hover .wk-card__arrow,
.wk-card:focus-within .wk-card__arrow,
.wk-card.is-hover .wk-card__arrow,
.wk-card.is-focus .wk-card__arrow {
  color: var(--wk-action-primary);
  transform: translate(2px, -2px);
}

.wk-card__link:focus-visible::after,
.wk-card.is-focus .wk-card__link::after {
  outline: var(--wk-focus-width) solid var(--wk-focus);
  outline-offset: calc(var(--wk-focus-width) * -1);
}


/* ==========================================================================
   05 Project page hero
   ========================================================================== */

.wk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.wk-hero__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: var(--wk-border-width) solid var(--wk-line);
}

.wk-hero__bar > * {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wk-space-03) var(--wk-space-05);
  min-height: var(--wk-touch-target);
  padding: var(--wk-space-03) var(--wk-frame-pad);
}

.wk-hero__origin {
  justify-content: space-between;
  border-top: var(--wk-border-width) solid var(--wk-line);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
}

.wk-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wk-space-02) var(--wk-space-03);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  line-height: var(--wk-leading-label);
}

.wk-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--wk-space-03);
}

.wk-breadcrumb__item + .wk-breadcrumb__item::before {
  content: "/";
  color: var(--wk-text-faint);
}

.wk-breadcrumb__item a {
  color: inherit;
  text-decoration: none;
}

.wk-breadcrumb__item a:hover {
  color: var(--wk-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--wk-intent-marker);
  text-underline-offset: 0.22em;
}

.wk-breadcrumb__item[aria-current] {
  color: var(--wk-text-primary);
}

.wk-hero__main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--wk-space-05);
  min-width: 0;
  padding: var(--wk-space-08) var(--wk-frame-pad);
}

.wk-hero__title {
  max-width: 16ch;
  color: var(--wk-text-primary);
  font-size: var(--wk-font-size-display);
  font-weight: var(--wk-font-weight-semibold);
  line-height: var(--wk-leading-display);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.wk-hero__tagline {
  max-width: 34rem;
  color: var(--wk-action-primary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-05);
  line-height: 1.4;
}

.wk-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wk-space-03) var(--wk-space-05);
}

.wk-hero__year {
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
}

.wk-hero__aside {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: var(--wk-space-06) var(--wk-frame-pad) var(--wk-space-07);
  border-top: var(--wk-border-width) solid var(--wk-line);
}

.wk-hero__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: var(--wk-layer-inverse);
}

.wk-hero__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wk-hero__media--empty {
  background: var(--wk-dots), var(--wk-layer-inverse);
}

/* brackets: top-right and bottom-left, as on the werserk.com portrait */
.wk-hero__media::before {
  content: "";
  position: absolute;
  inset: -0.5rem;
  background:
    linear-gradient(var(--wk-line-strong), var(--wk-line-strong)) right top / 2rem 1px no-repeat,
    linear-gradient(var(--wk-line-strong), var(--wk-line-strong)) right top / 1px 2rem no-repeat,
    linear-gradient(var(--wk-line-strong), var(--wk-line-strong)) left bottom / 2rem 1px no-repeat,
    linear-gradient(var(--wk-line-strong), var(--wk-line-strong)) left bottom / 1px 2rem no-repeat;
  pointer-events: none;
}

/* slow scan line, as on werserk.com media frames */
.wk-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.5) 0 1px, transparent 1px 100%);
  opacity: 0.3;
  pointer-events: none;
  animation: wk-scan var(--wk-duration-scan) linear infinite;
}

@keyframes wk-scan {
  from { transform: translateY(0); }
  to { transform: translateY(calc(100% - 1px)); }
}

.wk-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin: 0;
  overflow: hidden;
  border-top: var(--wk-border-width) solid var(--wk-line);
}

.wk-facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--wk-space-02);
  padding: var(--wk-space-05) var(--wk-frame-pad);
  box-shadow:
    -1px 0 0 var(--wk-line),
    0 -1px 0 var(--wk-line);
}

.wk-facts__label {
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  line-height: var(--wk-leading-label);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

.wk-facts__value {
  margin: 0;
  color: var(--wk-text-primary);
  font-size: var(--wk-font-size-08);
  font-weight: var(--wk-font-weight-semibold);
  line-height: var(--wk-leading-title);
  font-variant-numeric: tabular-nums;
}

.wk-links {
  display: grid;
  border-top: var(--wk-border-width) solid var(--wk-line);
}

.wk-links__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wk-space-05);
  min-height: var(--wk-touch-target);
  padding: var(--wk-space-03) var(--wk-space-04);
  border-bottom: var(--wk-border-width) solid var(--wk-line);
  color: var(--wk-text-secondary);
  font-size: var(--wk-font-size-04);
  text-decoration: none;
  transition:
    background-color var(--wk-duration-fast) ease,
    color var(--wk-duration-fast) ease;
}

.wk-links__item .wk-icon {
  color: var(--wk-text-muted);
}

.wk-links__item:hover {
  background: var(--wk-state-selected);
  color: var(--wk-text-primary);
  box-shadow: inset var(--wk-marker-width) 0 0 var(--wk-intent-marker);
}

.wk-links__item:hover .wk-icon {
  color: var(--wk-action-primary);
}

@media (min-width: 40rem) {
  .wk-hero__main {
    padding-block: var(--wk-space-10);
  }
}

@media (min-width: 64rem) {
  .wk-hero:has(> .wk-hero__aside) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wk-hero__bar,
  .wk-facts {
    grid-column: 1 / -1;
  }

  .wk-hero__bar:has(> .wk-hero__origin) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wk-hero__origin {
    border-top: 0;
    border-left: var(--wk-border-width) solid var(--wk-line);
  }

  .wk-hero__main {
    padding-block: var(--wk-space-11);
  }

  .wk-hero__aside {
    padding: var(--wk-frame-pad);
    border-top: 0;
    border-left: var(--wk-border-width) solid var(--wk-line);
  }
}


/* ==========================================================================
   06 Action buttons
   ========================================================================== */

.wk-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wk-space-03);
  min-height: var(--wk-touch-target);
  padding: var(--wk-space-03) var(--wk-space-05);
  overflow: hidden;
  border: var(--wk-border-width) solid var(--wk-border-strong);
  border-radius: var(--wk-radius);
  background: transparent;
  color: var(--wk-text-primary);
  font-family: var(--wk-font-sans);
  font-size: var(--wk-font-size-04);
  font-weight: var(--wk-font-weight-semibold);
  line-height: var(--wk-leading-snug);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--wk-duration-fast) ease,
    background-color var(--wk-duration-fast) ease,
    color var(--wk-duration-fast) ease,
    box-shadow var(--wk-duration-fast) ease;
}

.wk-button .wk-icon {
  transition: transform var(--wk-duration-base) var(--wk-ease);
}

.wk-button:hover .wk-icon--arrow-right,
.wk-button.is-hover .wk-icon--arrow-right {
  transform: translateX(2px);
}

.wk-button:hover .wk-icon--arrow-up-right,
.wk-button.is-hover .wk-icon--arrow-up-right {
  transform: translate(1px, -1px);
}

.wk-button.is-focus {
  outline: var(--wk-focus-width) solid var(--wk-focus);
  outline-offset: var(--wk-focus-offset);
}

.wk-button--primary {
  border-color: var(--wk-action-primary);
  background: var(--wk-action-primary);
  color: var(--wk-layer-inverse);
}

.wk-button--primary:hover,
.wk-button--primary.is-hover {
  border-color: var(--wk-action-hover);
  background: var(--wk-action-hover);
}

.wk-button--primary:active {
  border-color: var(--wk-action-soft);
  background: var(--wk-action-soft);
}

.wk-button--secondary:hover,
.wk-button--secondary.is-hover {
  border-color: var(--wk-border-field);
  background: var(--wk-state-hover);
  box-shadow: inset var(--wk-marker-width) 0 0 var(--wk-intent-marker);
}

.wk-button--secondary:active,
.wk-button--ghost:active {
  background: var(--wk-state-pressed);
}

.wk-button--ghost {
  border-color: transparent;
  color: var(--wk-text-muted);
}

.wk-button--ghost:hover,
.wk-button--ghost.is-hover {
  background: var(--wk-state-hover);
  color: var(--wk-text-primary);
}

.wk-button--sm {
  min-height: 2.25rem;
  padding: var(--wk-space-02) var(--wk-space-04);
  font-size: var(--wk-font-size-03);
}

.wk-button--block {
  display: flex;
  width: 100%;
}

/* disabled: hatched, like every "nothing here" surface in the system */
.wk-button:disabled,
.wk-button[aria-disabled="true"] {
  border-color: var(--wk-line-strong);
  background: var(--wk-hatch-faint);
  color: var(--wk-text-faint);
  box-shadow: none;
  cursor: not-allowed;
}

.wk-button:disabled .wk-icon,
.wk-button[aria-disabled="true"] .wk-icon {
  transform: none;
}

/* done: the request is in; nothing left to press */
.wk-button--done,
.wk-button--done:disabled,
.wk-button--done:hover {
  border-color: var(--wk-line-strong);
  background: var(--wk-layer-02);
  color: var(--wk-text-secondary);
  box-shadow: none;
  cursor: default;
}

.wk-button--done .wk-icon {
  color: var(--wk-support-success);
}

/* busy: a sweep along the bottom edge */
.wk-button[aria-busy="true"],
.wk-form[data-state="sending"] .wk-button[type="submit"] {
  cursor: progress;
  pointer-events: none;
}

.wk-button[aria-busy="true"]::after,
.wk-form[data-state="sending"] .wk-button[type="submit"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: var(--wk-marker-width);
  background: currentColor;
  animation: wk-sweep 1.1s var(--wk-ease) infinite;
}

@keyframes wk-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

.wk-iconbutton {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--wk-touch-target);
  height: var(--wk-touch-target);
  padding: 0;
  border: var(--wk-border-width) solid var(--wk-border-strong);
  border-radius: var(--wk-radius);
  background: transparent;
  color: var(--wk-text-secondary);
  cursor: pointer;
  transition:
    border-color var(--wk-duration-fast) ease,
    background-color var(--wk-duration-fast) ease,
    color var(--wk-duration-fast) ease;
}

.wk-iconbutton:hover {
  border-color: var(--wk-border-field);
  background: var(--wk-state-hover);
  color: var(--wk-text-primary);
}

.wk-iconbutton:disabled {
  border-color: var(--wk-line-strong);
  background: var(--wk-hatch-faint);
  color: var(--wk-text-faint);
  cursor: not-allowed;
}

/* the action area and its state hook */
.wk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wk-space-03);
}

.wk-actions__note {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  gap: var(--wk-space-03);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  line-height: 1.5;
}

.wk-actions[data-state="open"] > [data-when]:not([data-when~="open"]),
.wk-actions[data-state="request"] > [data-when]:not([data-when~="request"]),
.wk-actions[data-state="signin"] > [data-when]:not([data-when~="signin"]),
.wk-actions[data-state="pending"] > [data-when]:not([data-when~="pending"]),
.wk-actions[data-state="none"] > [data-when]:not([data-when~="none"]) {
  display: none;
}


/* ==========================================================================
   07 Media gallery + lightbox
   ========================================================================== */

.wk-gallery__item {
  display: grid;
  align-content: start;
  gap: var(--wk-space-04);
  min-width: 0;
  padding: var(--wk-space-04);
}

.wk-gallery__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: var(--wk-layer-inverse);
  cursor: zoom-in;
  transition: border-color var(--wk-duration-fast) ease;
}

.wk-gallery__thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wk-gallery__thumb::after {
  content: "";
  position: absolute;
  top: var(--wk-space-03);
  right: var(--wk-space-03);
  width: 1.75rem;
  height: 1.75rem;
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background:
    var(--wk-icon-expand-light) center / 0.875rem no-repeat,
    rgba(15, 15, 15, 0.9);
  opacity: 0;
  transition: opacity var(--wk-duration-fast) ease;
}

.wk-gallery__thumb:hover,
.wk-gallery__thumb:focus-visible {
  border-color: var(--wk-border-field);
}

.wk-gallery__thumb:hover::after,
.wk-gallery__thumb:focus-visible::after {
  opacity: 1;
}

.wk-gallery__caption {
  display: flex;
  gap: var(--wk-space-04);
  color: var(--wk-text-muted);
  font-size: var(--wk-font-size-03);
  line-height: 1.45;
}

.wk-gallery__index {
  flex: none;
  color: var(--wk-action-primary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  font-weight: var(--wk-font-weight-medium);
  line-height: 1.6;
}

@media (min-width: 40rem) {
  .wk-gallery__item {
    padding: var(--wk-space-05);
  }
}

.wk-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--wk-overlay-solid);
  color: var(--wk-text-secondary);
}

.wk-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: wk-fade var(--wk-duration-base) ease;
}

.wk-lightbox::backdrop {
  background: rgba(12, 12, 12, 0.97);
}

.wk-lightbox__bar,
.wk-lightbox__stage,
.wk-lightbox__foot {
  width: min(100% - 2 * var(--wk-frame-gutter), var(--wk-frame-max));
  margin-inline: auto;
  border-inline: var(--wk-border-width) solid var(--wk-line);
}

.wk-lightbox__bar,
.wk-lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wk-space-05);
  padding: var(--wk-space-03) var(--wk-space-04);
}

.wk-lightbox__bar {
  border-bottom: var(--wk-border-width) solid var(--wk-line);
}

.wk-lightbox__foot {
  border-top: var(--wk-border-width) solid var(--wk-line);
}

.wk-lightbox__counter {
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  letter-spacing: var(--wk-tracking-label);
}

.wk-lightbox__counter b {
  color: var(--wk-action-primary);
  font-weight: var(--wk-font-weight-medium);
}

.wk-lightbox__stage {
  display: grid;
  /* definite tracks, so the image's max-height has something to resolve against */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: var(--wk-space-05);
  background: var(--wk-dots);
}

.wk-lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: var(--wk-layer-inverse);
  object-fit: contain;
}

.wk-lightbox__caption {
  flex: 1;
  min-width: 0;
  color: var(--wk-text-secondary);
  font-size: var(--wk-font-size-04);
  text-align: center;
}

@keyframes wk-fade {
  from { opacity: 0; }
}

@keyframes wk-rise {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}


/* ==========================================================================
   08 Prose
   ========================================================================== */

.wk-prose {
  max-width: var(--wk-measure);
  color: var(--wk-text-secondary);
  font-size: var(--wk-font-size-05);
  line-height: var(--wk-leading-prose);
  overflow-wrap: break-word;
}

.wk-prose > * {
  margin-block: 0;
}

.wk-prose > * + * {
  margin-top: var(--wk-space-05);
}

.wk-prose h2,
.wk-prose h3,
.wk-prose h4 {
  color: var(--wk-text-primary);
  font-weight: var(--wk-font-weight-semibold);
  text-wrap: balance;
}

.wk-prose h2 {
  font-size: var(--wk-font-size-08);
  line-height: var(--wk-leading-title);
}

.wk-prose h3 {
  font-size: var(--wk-font-size-07);
  line-height: var(--wk-leading-snug);
}

.wk-prose h4 {
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  font-weight: var(--wk-font-weight-medium);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

.wk-prose > * + h2 {
  margin-top: var(--wk-space-09);
}

.wk-prose > * + h3,
.wk-prose > * + h4 {
  margin-top: var(--wk-space-07);
}

.wk-prose > h2 + *,
.wk-prose > h3 + *,
.wk-prose > h4 + * {
  margin-top: var(--wk-space-04);
}

.wk-prose strong {
  color: var(--wk-text-primary);
  font-weight: var(--wk-font-weight-semibold);
}

.wk-prose a {
  color: var(--wk-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--wk-intent-marker);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--wk-duration-fast) ease;
}

.wk-prose a:hover {
  color: var(--wk-action-soft);
  text-decoration-thickness: 2px;
}

.wk-prose ul,
.wk-prose ol {
  display: grid;
  gap: var(--wk-space-03);
  margin-bottom: 0;
  padding-left: var(--wk-space-07);
  list-style: none;
}

.wk-prose li {
  position: relative;
}

.wk-prose li > ul,
.wk-prose li > ol {
  margin-top: var(--wk-space-03);
}

.wk-prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: calc(var(--wk-space-07) * -1 + 0.375rem);
  width: 0.375rem;
  height: 0.375rem;
  background: var(--wk-action-primary);
}

.wk-prose ol {
  counter-reset: wk-ol;
}

.wk-prose ol > li {
  counter-increment: wk-ol;
}

.wk-prose ol > li::before {
  content: counter(wk-ol, decimal-leading-zero);
  position: absolute;
  top: 0.3em;
  left: calc(var(--wk-space-07) * -1);
  color: var(--wk-action-primary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  font-weight: var(--wk-font-weight-medium);
}

.wk-prose code {
  padding: 0.1em 0.35em;
  border: var(--wk-border-width) solid var(--wk-line-strong);
  background: var(--wk-layer-02);
  color: var(--wk-text-primary);
  font-family: var(--wk-font-mono);
  font-size: 0.875em;
}

.wk-prose pre {
  padding: var(--wk-space-05);
  overflow-x: auto;
  border: var(--wk-border-width) solid var(--wk-line-strong);
  background: var(--wk-layer-inverse);
  color: var(--wk-text-secondary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-03);
  line-height: 1.6;
  tab-size: 2;
}

.wk-prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.wk-prose blockquote {
  padding-left: var(--wk-space-05);
  border-left: var(--wk-border-width) solid var(--wk-intent-marker);
  color: var(--wk-text-secondary);
  font-family: var(--wk-font-mono);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.wk-prose blockquote > * + * {
  margin-top: var(--wk-space-03);
}

.wk-prose img {
  width: 100%;
  height: auto;
  border: var(--wk-border-width) solid var(--wk-border-subtle);
  background: var(--wk-layer-inverse);
}

.wk-prose figure {
  margin-inline: 0;
}

.wk-prose figcaption {
  margin-top: var(--wk-space-03);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
}

.wk-prose > * + figure,
.wk-prose > * + pre,
.wk-prose > * + blockquote,
.wk-prose > figure + *,
.wk-prose > pre + *,
.wk-prose > blockquote + * {
  margin-top: var(--wk-space-06);
}

.wk-prose hr {
  height: var(--wk-space-05);
  margin-block: var(--wk-space-07);
  border: 0;
  border-block: var(--wk-border-width) solid var(--wk-line);
  background: var(--wk-hatch);
}

.wk-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wk-font-size-04);
}

.wk-prose th,
.wk-prose td {
  padding: var(--wk-space-03) var(--wk-space-04);
  border: var(--wk-border-width) solid var(--wk-line-strong);
  text-align: left;
  vertical-align: top;
}

.wk-prose th {
  background: var(--wk-layer-01);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}


/* ==========================================================================
   09 Request access form, dialog, panel
   ========================================================================== */

.wk-form,
.wk-form__fields {
  display: grid;
  gap: var(--wk-space-05);
}

.wk-field {
  display: grid;
  gap: var(--wk-space-03);
}

.wk-field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wk-space-04);
  color: var(--wk-text-secondary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-01);
  font-weight: var(--wk-font-weight-medium);
  line-height: var(--wk-leading-label);
  letter-spacing: var(--wk-tracking-label);
  text-transform: uppercase;
}

.wk-field__optional {
  color: var(--wk-text-muted);
  font-weight: var(--wk-font-weight-regular);
}

.wk-field__hint,
.wk-field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--wk-space-03);
  color: var(--wk-text-muted);
  font-size: var(--wk-font-size-03);
  line-height: 1.45;
}

.wk-field__hint .wk-icon,
.wk-field__error .wk-icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.15em;
}

.wk-field__error {
  color: var(--wk-support-error);
}

.wk-input {
  display: block;
  width: 100%;
  min-height: var(--wk-touch-target);
  padding: var(--wk-space-03) var(--wk-space-04);
  border: var(--wk-border-width) solid var(--wk-border-field);
  border-radius: var(--wk-radius);
  background: var(--wk-layer-inverse);
  color: var(--wk-text-primary);
  font-family: var(--wk-font-sans);
  font-size: var(--wk-font-size-05);
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--wk-duration-fast) ease,
    background-color var(--wk-duration-fast) ease;
}

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

.wk-input:hover {
  border-color: var(--wk-text-muted);
}

.wk-input:focus-visible {
  border-color: var(--wk-text-primary);
  outline-offset: 0;
}

.wk-input--area {
  min-height: 6.5rem;
  resize: vertical;
}

/* read-only: prefilled from the account */
.wk-input[readonly] {
  border-style: dashed;
  background: var(--wk-hatch-faint);
  color: var(--wk-text-secondary);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-04);
  cursor: default;
}

.wk-input[readonly]:hover {
  border-color: var(--wk-border-field);
}

.wk-input[aria-invalid="true"] {
  border-color: var(--wk-support-error);
}

.wk-input:disabled,
.wk-form[data-state="sending"] .wk-input {
  opacity: 0.6;
  pointer-events: none;
}

.wk-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wk-space-03);
}

.wk-form__error,
.wk-form__done {
  display: none;
}

.wk-form[data-state="error"] .wk-form__error {
  display: block;
}

.wk-form[data-state="sent"] .wk-form__fields {
  display: none;
}

.wk-form[data-state="sent"] .wk-form__done {
  display: grid;
  gap: var(--wk-space-05);
  justify-items: start;
}

.wk-dialog {
  width: min(100% - 2 * var(--wk-space-04), 31rem);
  max-height: min(100% - 2 * var(--wk-space-04), 44rem);
  padding: 0;
  overflow: auto;
  border: var(--wk-border-width) solid var(--wk-line-strong);
  background: var(--wk-layer-01);
  color: var(--wk-text-secondary);
  box-shadow: var(--wk-shadow-overlay);
}

.wk-dialog[open] {
  animation: wk-rise var(--wk-duration-slow) var(--wk-ease);
}

.wk-dialog::backdrop {
  background: rgba(10, 10, 10, 0.8);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.wk-panel {
  border: var(--wk-border-width) solid var(--wk-line-strong);
  background: var(--wk-layer-01);
}

.wk-dialog__head,
.wk-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wk-space-05);
  min-height: 3.25rem;
  padding: var(--wk-space-03) var(--wk-space-03) var(--wk-space-03) var(--wk-space-05);
  border-bottom: var(--wk-border-width) solid var(--wk-line-strong);
}

.wk-panel__head {
  padding-right: var(--wk-space-05);
}

.wk-dialog__title,
.wk-panel__title {
  display: grid;
  gap: var(--wk-space-01);
  color: var(--wk-text-primary);
  font-size: var(--wk-font-size-05);
  font-weight: var(--wk-font-weight-semibold);
  line-height: var(--wk-leading-snug);
}

.wk-dialog__head .wk-iconbutton {
  border-color: transparent;
}

.wk-dialog__body,
.wk-panel__body {
  padding: var(--wk-space-05);
}

@media (min-width: 40rem) {
  .wk-dialog__body,
  .wk-panel__body {
    padding: var(--wk-space-06);
  }

  .wk-dialog__head,
  .wk-panel__head {
    padding-left: var(--wk-space-06);
  }

  .wk-panel__head {
    padding-right: var(--wk-space-06);
  }
}


/* ==========================================================================
   10 Notice
   ========================================================================== */

.wk-notice {
  --wk-notice-tone: var(--wk-support-info);
  --wk-icon: var(--wk-icon-info);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--wk-space-02) var(--wk-space-04);
  align-items: start;
  padding: var(--wk-space-04) var(--wk-space-05);
  border: var(--wk-border-width) solid var(--wk-line-strong);
  background: var(--wk-layer-01);
  box-shadow: inset var(--wk-marker-width) 0 0 var(--wk-notice-tone);
  color: var(--wk-text-secondary);
  font-size: var(--wk-font-size-04);
  line-height: 1.5;
}

.wk-notice::before {
  grid-row: 1 / span 3;
  margin-top: 0.15em;
  color: var(--wk-notice-tone);
}

.wk-notice > * {
  grid-column: 2;
}

.wk-notice--warning {
  --wk-notice-tone: var(--wk-support-warning);
  --wk-icon: var(--wk-icon-warning);
}

.wk-notice--success {
  --wk-notice-tone: var(--wk-support-success);
  --wk-icon: var(--wk-icon-check);
}

.wk-notice--error {
  --wk-notice-tone: var(--wk-support-error);
  --wk-icon: var(--wk-icon-warning);
}

.wk-notice__title {
  color: var(--wk-text-primary);
  font-weight: var(--wk-font-weight-semibold);
}

.wk-notice__text {
  color: var(--wk-text-secondary);
}

.wk-notice__action {
  justify-self: start;
  margin-top: var(--wk-space-02);
  color: var(--wk-text-primary);
  font-weight: var(--wk-font-weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--wk-intent-marker);
  text-underline-offset: 0.22em;
}

.wk-notice__action:hover {
  color: var(--wk-action-soft);
}


/* ==========================================================================
   11 Empty state
   ========================================================================== */

.wk-empty {
  display: grid;
  justify-items: center;
  gap: var(--wk-space-04);
  padding: var(--wk-space-10) var(--wk-frame-pad);
  background: var(--wk-dots);
  text-align: center;
}

/* three empty card slots, drawn in type */
.wk-empty__art {
  margin-bottom: var(--wk-space-04);
  color: var(--wk-text-muted);
  font-family: var(--wk-font-mono);
  font-size: var(--wk-font-size-02);
  line-height: 1.25;
  white-space: pre;
  user-select: none;
}

.wk-empty__art::before {
  content: "+ - - - - - +   + - - - - - +   + - - - - - +\A:           :   :           :   :           :\A:           :   :     _     :   :           :\A:           :   :           :   :           :\A+ - - - - - +   + - - - - - +   + - - - - - +";
}

.wk-empty__title {
  color: var(--wk-text-primary);
  font-size: var(--wk-font-size-07);
  font-weight: var(--wk-font-weight-semibold);
  line-height: var(--wk-leading-snug);
}

.wk-empty__text {
  max-width: 28rem;
  color: var(--wk-text-muted);
  font-size: var(--wk-font-size-04);
}

.wk-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wk-space-03);
  margin-top: var(--wk-space-04);
}

@media (max-width: 27.99rem) {
  .wk-empty__art {
    font-size: 0.5625rem;
  }
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wk-hero__media::after {
    display: none;
  }

  /* the sweep becomes a steady bar: still says "busy", does not move */
  .wk-button[aria-busy="true"]::after,
  .wk-form[data-state="sending"] .wk-button[type="submit"]::after {
    width: 100%;
    opacity: 0.6;
    animation: none !important;
    transform: none;
  }
}
