@font-face {
  font-family: "Public Sans";
  src: url("./public-sans.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("./dm-serif-display.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Excalifont;
  src: url("./excalifont.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #f9f3e7;
  --ink: #231e1a;
  --muted: #6c6158;
  --line: #cfc3b9;
  --surface: #eee5dc;
  --rule: #9c8777;
  --story-nav-bg: #151617;
  --project-rule: var(--rule);
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
  --control-size: 2.75rem;
  --selection-bg: oklch(27% 0.075 196);
  --selection-ink: oklch(97% 0.018 82);
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.6 "Public Sans",
    sans-serif;
}
:root[data-theme="dark"] {
  --paper: #13110f;
  --ink: #e9dfd7;
  --muted: #c9bdb3;
  --line: #3b3229;
  --surface: #201b17;
  --rule: #806c5b;
  --selection-bg: oklch(88% 0.11 180);
  --selection-ink: oklch(19% 0.035 180);
}
* {
  box-sizing: border-box;
}
::selection {
  background: var(--selection-bg);
  color: var(--selection-ink);
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9375rem;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
.nav-shell {
  line-height: 1.7;
}
.nav-shell a {
  color: inherit;
  text-decoration: none;
}
.nav-shell button {
  color: inherit;
  border: 0;
  background: none;
}
.nav-shell :is(a, button):hover {
  color: #f1733d;
}
.nav-shell :where(a, button):focus-visible {
  outline: 0.125rem solid #f1733d;
  outline-offset: 0.3125rem;
}
main {
  width: min(calc(100% - 96px), 1040px);
  margin: auto;
  padding: calc(var(--home-nav-space, 94px) + 24px + env(safe-area-inset-top)) 0
    max(60px, env(safe-area-inset-bottom));
}
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 42px;
}
h1,
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}
h1 {
  font-size: 46px;
  margin: 0;
}
h2 {
  font-size: 32px;
  margin: 0;
  overflow-wrap: anywhere;
}
.catalog-picker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 0;
}
.ink-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}
.ink-button::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 50' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round'%3E%3Cpath vector-effect='non-scaling-stroke' d='M5 5 C45 2 125 6 174 3 M174 4 C173 17 178 33 174 45 M174 45 C116 48 54 43 5 47 M5 46 C2 31 6 17 4 5'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M3 7 C58 5 110 2 176 5 M172 3 C176 19 172 36 176 47 M177 43 C120 45 57 49 3 44 M7 48 C5 35 3 14 7 3' opacity='.65'/%3E%3C/g%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  pointer-events: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 44px;
}
.project-frame {
  position: relative;
  padding: 8px;
}
.project-frame::before,
.project-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.project-frame::before {
  inset: 0 -12px;
  background:
    repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 6px)
      top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 6px)
      bottom / 100% 1px no-repeat;
}
.project-frame::after {
  inset: -12px 0;
  background:
    repeating-linear-gradient(0deg, var(--rule) 0 2px, transparent 2px 6px)
      left / 1px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--rule) 0 2px, transparent 2px 6px)
      right / 1px 100% no-repeat;
}
.deck {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
}
.visual {
  position: relative;
  height: clamp(174px, 22vw, 220px);
}
.visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
}
.ordinal {
  position: absolute;
  left: 24px;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 70px;
  height: 102px;
  padding-top: 15px;
  background: #9e271e;
  color: #fff4df;
  font:
    var(--index-size)/1 Excalifont,
    cursive;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 83%, 0 100%);
}
.without-art .visual {
  height: 102px;
}
.card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  align-items: center;
  padding: 28px 30px;
}
.deck-meta {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
}
.deck-meta:empty {
  display: none;
}
.deck-meta span + span::before {
  content: " / ";
  padding-inline: 8px;
}
.card-copy h2 {
  grid-column: 1;
}
.card-copy .ink-button {
  grid-column: 2;
  grid-row: 1 / 3;
}
.empty {
  border-block: 1px solid var(--line);
  padding: 60px 0;
  font-size: 26px;
}
@media (hover: hover) {
  .deck:hover .ink-button,
  .catalog-picker:hover {
    color: #b43125;
  }
}
@media (max-width: 700px) {
  main {
    width: calc(100% - 44px);
  }
  .catalog-header {
    margin-bottom: 32px;
  }
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 27px;
    line-height: 1.15;
  }
  .card-copy {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
  .card-copy .ink-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 24px;
  }
  .ordinal {
    left: 18px;
    width: 60px;
    height: 88px;
    font-size: calc(var(--index-size) * 0.85);
  }
  .catalog-picker {
    gap: 8px;
  }
}
@media (hover: hover) {
  :root[data-theme="dark"] .deck:hover .ink-button,
  :root[data-theme="dark"] .catalog-picker:hover {
    color: #f29b7c;
  }
}
kbd {
  font:
    400 12px/1.4 "Public Sans",
    sans-serif;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}
@media (forced-colors: active) {
  a:focus-visible,
  button:focus-visible {
    outline-color: LinkText;
  }
  .ordinal {
    clip-path: none;
    border: 1px solid CanvasText;
  }
}
