@import url('https://fonts.googleapis.com/css2?family=Bentham&family=Quicksand:wght@400;500;600&display=swap');

:root {
  --page: #f7f7f3;
  --paper: #fffef9;
  --ink: #1c1b1a;
  --muted: #706d67;
  --line: #cbc8bd;
  --line-dark: #928f87;
  --soft: #ecebe4;
  --pink: #e9a1b4;
  --yellow: #dfc668;
  --green: #a7c58d;
  --blue: #8fa9cf;
  --link: #405b91;
  color-scheme: light;
}

html[data-theme="dark"] {
  --page: #181817;
  --paper: #20201e;
  --ink: #efeee8;
  --muted: #aaa79e;
  --line: #44423d;
  --line-dark: #77736a;
  --soft: #292925;
  --pink: #e0a3b4;
  --yellow: #d8c36d;
  --green: #a4c08f;
  --blue: #9badd0;
  --link: #aec3ef;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

::selection {
  background: var(--pink);
  color: #171717;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

button,
input {
  font: inherit;
}

.site {
  width: min(900px, calc(100% - 34px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.site-head {
  position: relative;
  display: grid;
  place-items: center;
  padding: 6px 0 24px;
}

.title-link {
  display: block;
  width: min(565px, 86vw);
}

.title-art,
.nav-art,
.kitties-art {
  transition: filter .15s ease, opacity .15s ease;
}

html[data-theme="dark"] .title-art,
html[data-theme="dark"] .nav-art,
html[data-theme="dark"] .kitties-art {
  filter: invert(1) brightness(1.08);
}

.theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--line-dark);
}

.tiny-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 17px;
  margin: 3px auto 0;
}

.tiny-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.tiny-nav a:hover .nav-art,
.tiny-nav a:focus-visible .nav-art {
  transform: translateY(-1px) rotate(-1deg);
}

.tiny-nav a:nth-child(even):hover .nav-art,
.tiny-nav a:nth-child(even):focus-visible .nav-art {
  transform: translateY(-1px) rotate(1deg);
}

.nav-about { width: 112px; }
.nav-notes { width: 118px; }
.nav-progress { width: 164px; }
.nav-resources { width: 188px; }

.home-page {
  min-height: 100vh;
}

.home-shell {
  position: relative;
  width: min(900px, calc(100% - 34px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 54px;
}

.home-title {
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
}

.home-title .title-link {
  width: min(565px, 86vw);
}

.home-nav {
  margin: 4px auto 28px;
}

.home-theme-toggle {
  top: 22px;
}

.home-art {
  width: min(760px, 94%);
  margin: 0 auto;
}

.kitties-art {
  width: 100%;
  height: auto;
}

.page-about   { --active-arrow: url("assets/arrow-about.png"); }
.page-notes   { --active-arrow: url("assets/arrow-notes.png"); }
.page-progress{ --active-arrow: url("assets/arrow-progress.png"); }
.page-resources{ --active-arrow: url("assets/arrow-resources.png"); }

.subpage .tiny-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: 28px;
  height: 43px;
  background: center / contain no-repeat var(--active-arrow);
  transform: translateX(-50%);
  pointer-events: none;
}

html[data-theme="dark"] .subpage .tiny-nav a[aria-current="page"]::after {
  filter: invert(1) brightness(1.08);
}

.page-panel {
  width: min(780px, 100%);
  margin: 53px auto 0;
  padding: 26px 28px 0;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 0;

}

.page-panel main {
  width: 100%;
  margin: 0 auto;
}

.section-copy {
  max-width: 640px;
  margin: 0 0 20px;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.section-title {
  margin: 0 0 12px;
  font-family: "Bentham", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.scribble,
.jot {
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}

.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .8rem;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--line-dark);
}

.page-about .paper-note {
  padding: 0;
  border: 0;
  background: transparent;

}

.page-about .paper-note p {
  max-width: 650px;
}

.page-about section {
  margin-top: 4px;
}

.page-about section p {
  margin: 0 0 8px;
}

.page-about section p strong {
  display: inline-block;
  min-width: 112px;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .84rem;
  font-weight: 500;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin: 18px 0 5px;
}

.search-row input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--page);
  color: var(--ink);
  outline: none;
}

.search-row input:focus {
  outline: 1px dotted var(--ink);
  outline-offset: 2px;
}

.search-row button,
.ghost-button {
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.search-row button:hover,
.ghost-button:hover {
  background: var(--soft);
}

.search-meta {
  min-height: 1.3em;
  margin: 0 0 10px;
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .72rem;
}

.note-tools {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 13px;
}

.note-group {
  border-top: 1px dashed var(--line-dark);
}

.note-group:last-of-type {
  border-bottom: 1px dashed var(--line-dark);
}

.note-group[hidden],
.resource-card[hidden] {
  display: none;
}

.note-group summary {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 3px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.note-group summary::-webkit-details-marker {
  display: none;
}

.note-group[open] > summary {
  background: var(--soft);
}

.note-num {
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .72rem;
}

.note-num::before { content: "["; }
.note-num::after { content: "]"; }

.note-name {
  font-size: 1rem;
  font-weight: 600;
}

.note-arrow {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 1rem;
}

.note-group[open] .note-arrow {
  transform: rotate(45deg);
}

.note-body {
  padding: 13px 4px 22px 30px;
}

.intro-jot {
  margin-bottom: 12px;
}

.note-block {
  margin: 0;
  padding: 13px 0 14px;
  border: 0;
  border-top: 1px dotted var(--line);
  background: transparent;

}

.note-block:first-of-type {
  border-top: 0;
}

.note-block h3 {
  margin: 0 0 9px;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .8rem;
  font-weight: 700;
  text-transform: lowercase;
}

.note-block h3::before {
  content: "* ";
  color: var(--pink);
}

.note-block p {
  margin-bottom: 8px;
}

.note-block > :last-child {
  margin-bottom: 0;
}

.scrappy-list,
.note-body ul {
  margin: 8px 0;
  padding-left: 1.25rem;
}

.scrappy-list li,
.note-body li {
  margin-bottom: 4px;
}

.key-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 9px 0 11px;
  border: 1px solid var(--line);
}

.key-row {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  gap: 10px;
  min-height: 32px;
  padding: 5px 7px;
  align-items: center;
  border-bottom: 1px dotted var(--line);
}

.key-row:nth-child(odd) {
  border-right: 1px dotted var(--line);
}

.key-row:nth-last-child(-n+2) {
  border-bottom: 0;
}

kbd {
  display: inline-block;
  width: fit-content;
  padding: 1px 4px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .72rem;
  line-height: 1.45;
  white-space: nowrap;
}

.jot {
  margin-left: 14px;
}

.remember {
  margin: 10px 0;
  padding-left: 10px;
  border-left: 2px solid var(--pink);
}

.remember.yellow { border-left-color: var(--yellow); }
.remember.green { border-left-color: var(--green); }
.remember.blue { border-left-color: var(--blue); }

.resource-list {
  margin-top: 18px;
}

.resource-card {
  padding: 16px 2px 17px;
  border-top: 1px dashed var(--line-dark);
}

.resource-card:last-child {
  border-bottom: 1px dashed var(--line-dark);
}

.resource-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.resource-card h2 {
  margin: 0 0 5px;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.resource-card h2 a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.resource-tag {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .68rem;
}

.resource-tag::before { content: "["; }
.resource-tag::after { content: "]"; }

.resource-card p {
  margin: 0 0 6px;
}

.resource-card .why {
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}

.resource-card .why::before {
  content: "why i saved it -> ";
  font-style: normal;
  color: var(--ink);
}

.progress-feed {
  display: grid;
  gap: 52px;
  margin-top: 28px;
}

.progress-post {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 0;

}

.progress-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px dashed var(--line-dark);
  font-family: ui-monospace, "Courier New", monospace;
}

.progress-post-label {
  color: var(--pink);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.progress-post-head time {
  margin-left: auto;
  color: var(--muted);
  font-size: .67rem;
}

.progress-gallery {
  display: grid;
  width: 100%;
  border-bottom: 1px dashed var(--line-dark);
  background: var(--page);
}

.progress-gallery-single {
  grid-template-columns: 1fr;
}

.progress-gallery-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.progress-media-item {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #0f1013;
  color: inherit;
  text-decoration: none;
}

.progress-gallery-single .progress-media-item {
  border: 0;
}

.progress-media-image-button {
  width: 100%;
  padding: 0;
  cursor: zoom-in;
}

.progress-media-image-button > img,
.progress-local-video > video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  object-fit: contain;
}

.progress-gallery-multi .progress-media-image-button > img,
.progress-gallery-multi .progress-local-video > video {
  max-height: 58vh;
}

.progress-post-body {
  padding: 16px 18px 18px;
}

.progress-post-body h2 {
  margin: 0 0 9px;
  font-family: "Bentham", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.1;
}

.progress-caption p {
  margin: 0 0 9px;
}

.progress-caption p:last-child {
  margin-bottom: 0;
}

.progress-empty {
  padding: 18px;
  border: 1px dashed var(--line-dark);
  color: var(--muted);
  text-align: center;
}

footer {
  width: 100%;
  margin: 42px auto 0;
  padding: 12px 0 14px;
  border-top: 1px dashed var(--line-dark);
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .68rem;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer-sep {
  padding: 0 5px;
  opacity: .7;
}

@media (max-width: 680px) {
  .site {
    width: min(100% - 24px, 900px);
    padding-top: 22px;
  }

  .site-head {
    padding-top: 31px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .tiny-nav {
    gap: 7px 10px;
  }

  .nav-about { width: 92px; }
  .nav-notes { width: 96px; }
  .nav-progress { width: 132px; }
  .nav-resources { width: 150px; }

  .subpage .tiny-nav a[aria-current="page"]::after {
    width: 26px;
    height: 40px;
  }

  .page-panel {
    margin-top: 49px;
    padding: 20px 17px 0;

  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    justify-self: start;
  }

  .note-body {
    padding-left: 15px;
  }

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

  .key-row,
  .key-row:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px dotted var(--line);
  }

  .key-row:last-child {
    border-bottom: 0;
  }

  .resource-top {
    display: block;
  }

  .resource-tag {
    display: inline-block;
    margin-bottom: 5px;
  }

  .home-shell {
    width: min(100% - 24px, 900px);
    padding-top: 68px;
  }

  .home-theme-toggle {
    top: 14px;
  }

  .home-nav {
    margin-bottom: 22px;
  }

  .home-art {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.theme-toggle {
  border: 0;
  background: transparent;
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
}

.theme-toggle:hover {
  background: transparent;
}

.theme-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-theme="dark"] .theme-icon {
  filter: invert(1) brightness(1.08);
}

.home-title {
  margin-bottom: 24px;
}

.home-nav {
  margin-top: 3px;
}

.home-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: start;
}

.home-art {
  width: min(620px, 72vw);
  margin: 0 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  align-self: center;
}

.kitties-art {
  width: 100%;
  max-width: 620px;
}

.tiny-nav {
  gap: 10px 24px;
}

html,
body {
  cursor: url("assets/cursor-arrow.png") 3 2, auto;
}

a,
button,
summary,
label,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
.theme-toggle,
.note-group summary,
details summary {
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

input,
textarea,
select {
  cursor: text;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
[contenteditable="true"] {
  cursor: url("assets/cursor-text.png") 15 16, text;
}

.search-row button,
.search-row button[data-search-button],
.ghost-button {
  cursor: url("assets/cursor-hand.png") 8 4, pointer !important;
}

.search-row input[type="search"],
input[data-search-input] {
  cursor: url("assets/cursor-text.png") 15 16, text !important;
}

input[type="search"]::-webkit-search-cancel-button {
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

.page-panel,
.paper-note,
.note-block,
.progress-post,
.resource-card,
.progress-empty {
  box-shadow: none !important;
}

.corner-drawer {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  width: 430px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.corner-drawer > summary {
  list-style: none;
}

.corner-drawer > summary::-webkit-details-marker {
  display: none;
}

.corner-drawer-toggle {
  pointer-events: auto;
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

.corner-drawer-toggle::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: center / contain no-repeat url("assets/arrow-about.png");
  transform: rotate(0deg);
  transition: transform .12s ease;
}

.corner-drawer[open] .corner-drawer-toggle::before {
  transform: rotate(180deg);
}

html[data-theme="dark"] .corner-drawer-toggle::before {
  filter: invert(1) brightness(1.08);
}

.corner-drawer-panel {
  pointer-events: auto;
  position: relative;
  width: 430px;
  min-height: 700px;
  margin: 0;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.drawer-item {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 22px;
  image-rendering: auto;
}

.drawer-item:last-child {
  margin-bottom: 0;
}

.drawer-ghosts {
  width: 205px;
  margin-left: 0;
}

.drawer-catgirl {
  width: 185px;
  margin-left: 8px;
}

.drawer-catface,
.drawer-pinkcat,
.drawer-smilecat {
  width: 172px;
  margin-left: 12px;
}

.love-award-corner {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 20;
  width: 225px;
  height: auto;
  margin: 0;
  box-shadow: none;
}

.mobile-love-footer {
  display: none;
}

.page-about .page-panel {
  text-align: center;
}

.page-about .page-panel main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 22px;
}

.about-me-title-art {
  width: min(165px, 46vw);
  height: auto;
  margin: 0 auto 18px;
}

.about-me-character-art {
  width: min(330px, 72vw);
  height: auto;
  margin: 0 auto;
}

.page-about .about-copy {
  width: min(620px, 100%);
  margin: 0 auto;
  text-align: center;
}

.page-about .about-copy p {
  max-width: none;
}

.page-about .rule {
  width: min(620px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-about .about-setup {
  width: min(620px, 100%);
  margin: 0 auto;
  text-align: center;
}

.page-about .about-setup p {
  margin-bottom: 8px;
}

.page-about .about-setup p strong {
  display: inline;
  min-width: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}

html[data-theme="dark"] .about-me-title-art,
html[data-theme="dark"] .about-me-character-art {
  filter: invert(1) brightness(1.08);
}

.search-highlight {
  background: var(--yellow);
  color: #171717;
  padding: 0 1px;
}

html[data-theme="dark"] .search-highlight {
  background: var(--yellow);
  color: #171717;
}

.resource-group {
  border-top: 1px dashed var(--line-dark);
}

.resource-group:last-child {
  border-bottom: 1px dashed var(--line-dark);
}

.resource-group[hidden] {
  display: none;
}

.resource-group > summary {
  display: grid;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 12px;
  padding: 14px 3px;
  list-style: none;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
  user-select: none;
}

.resource-group > summary::-webkit-details-marker {
  display: none;
}

.resource-group[open] > summary {
  background: var(--soft);
}

.resource-group-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.resource-group-meta {
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .68rem;
}

.resource-group-toggle {
  color: var(--muted);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 1rem;
  text-align: center;
}

.resource-group[open] .resource-group-toggle {
  font-size: 0;
}

.resource-group[open] .resource-group-toggle::after {
  content: "-";
  font-size: 1rem;
}

.resource-group-content {
  padding: 0 12px 8px 18px;
}

.resource-group .resource-card {
  padding: 14px 2px 15px;
  border-top: 1px dotted var(--line);
}

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

.resource-card .why::before {
  content: "why i saved it -> ";
}

@media (min-width: 821px) {
  .home-shell {
    width: min(900px, calc(100% - 180px));
  }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .corner-drawer {
    width: 350px;
  }

  .corner-drawer-panel {
    width: 350px;
    min-height: 620px;
  }

  .drawer-ghosts {
    width: 175px;
  }

  .drawer-catgirl {
    width: 160px;
  }

  .drawer-catface,
  .drawer-pinkcat,
  .drawer-smilecat {
    width: 150px;
  }
}

@media (max-width: 1080px) and (min-width: 821px) {
  .home-shell {
    width: min(860px, calc(100% - 120px));
  }
}

@media (max-width: 820px) {
  .corner-drawer {
    display: none !important;
  }

  .love-award-corner {
    display: none !important;
  }

  .mobile-love-footer {
    display: grid;
    place-items: center;
    width: 100%;
    margin: 34px auto 14px;
    padding: 0 12px;
  }

  .mobile-love-footer img {
    display: block;
    width: min(210px, 62vw);
    height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .theme-toggle {
    width: 48px;
    height: 48px;
  }

  .tiny-nav,
  .home-nav {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2.6vw, 12px);
  }

  .tiny-nav a {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 32px;
  }

  .tiny-nav .nav-art {
    width: auto !important;
    height: clamp(14px, 4.2vw, 18px);
    max-width: none;
    object-fit: contain;
  }

  .subpage .tiny-nav a[aria-current="page"]::after {
    width: 20px;
    height: 30px;
    top: calc(100% - 2px);
  }

  .about-me-title-art {
    width: min(150px, 44vw);
  }

  .about-me-character-art {
    width: min(285px, 78vw);
  }

  .resource-group > summary {
    grid-template-columns: 1fr auto 18px;
    gap: 7px;
    padding: 13px 2px;
  }

  .resource-group-title {
    font-size: .93rem;
  }

  .resource-group-meta {
    font-size: .62rem;
  }

  .resource-group-content {
    padding-left: 10px;
    padding-right: 4px;
  }
}


.corner-drawer-panel {
  pointer-events: none;
}

.corner-drawer-panel a,
.corner-drawer-panel button,
.corner-drawer-panel [role="button"] {
  pointer-events: auto;
}

.music-player {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 850;
  width: 242px;
  padding: 9px 10px 10px;
  border: 1px solid var(--ink);
  background: var(--page);
  box-shadow: none;
  font-family: ui-monospace, "Courier New", monospace;
}

.music-player-handle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 7px;
  padding: 0 2px 4px;
  border-bottom: 1px dashed var(--line-dark);
  font-size: .68rem;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.music-player-drag {
  color: var(--muted);
  font-size: .58rem;
}

.music-video {
  width: 220px;
  height: 200px;
  margin: 0 auto 7px;
  background: #000;
}

.music-video iframe {
  display: block;
  width: 220px;
  height: 200px;
  border: 0;
}

.music-title {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink);
  font-family: "Quicksand", sans-serif;
  font-size: .78rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 6px;
  margin-bottom: 8px;
}

.music-controls button {
  min-height: 29px;
  padding: 3px 6px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .68rem;
}

.music-controls button:hover,
.music-controls button:focus-visible {
  background: var(--soft);
}

.music-volume {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 7px;
  font-size: .62rem;
}

.music-volume input {
  width: 100%;
  accent-color: var(--ink);
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

html[data-theme="dark"] .music-video {
  outline: 1px solid var(--line-dark);
}

@media (max-width: 820px) {
  .music-player {
    display: none !important;
  }
}

.site-stickers {
  position: fixed;
  inset: 0;
  z-index: 180;
  pointer-events: none;
}

.site-sticker {
  position: fixed;
  display: block;
  width: 92px;
  height: auto;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: grab;
  pointer-events: auto;
}

.site-sticker:active,
.site-sticker.is-dragging {
  cursor: grabbing;
}

.sticker-one {
  left: 5vw;
  top: 34vh;
  width: 100px;
  transform: rotate(-8deg);
}

.sticker-two {
  right: 7vw;
  top: 27vh;
  width: 92px;
  transform: rotate(7deg);
}

.sticker-three {
  right: 5vw;
  top: 58vh;
  width: 96px;
  transform: rotate(-5deg);
}

.sticker-four {
  left: 8vw;
  top: 68vh;
  width: 94px;
  transform: rotate(8deg);
}

@media (max-width: 1100px) and (min-width: 821px) {
  .site-sticker {
    width: 78px;
  }

  .sticker-one {
    width: 84px;
  }

  .sticker-two {
    width: 76px;
  }

  .sticker-three {
    width: 80px;
  }

  .sticker-four {
    width: 78px;
  }
}

@media (max-width: 820px) {
  .site-stickers {
    display: none !important;
  }
}

.site-stickers {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 840;
  pointer-events: none;
  visibility: visible !important;
  opacity: 1 !important;
}

.site-sticker {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.sticker-one {
  left: 24px;
  top: 180px;
  width: 128px;
}

.sticker-two {
  left: auto;
  right: 72px;
  top: 185px;
  width: 118px;
}

.sticker-three {
  left: auto;
  right: 42px;
  top: auto;
  bottom: 175px;
  width: 124px;
}

.sticker-four {
  left: 72px;
  top: auto;
  bottom: 105px;
  width: 120px;
}

@media (max-width: 900px) and (min-width: 681px) {
  .sticker-one {
    left: 12px;
    top: 155px;
    width: 104px;
  }

  .sticker-two {
    right: 18px;
    top: 160px;
    width: 96px;
  }

  .sticker-three {
    right: 16px;
    bottom: 145px;
    width: 102px;
  }

  .sticker-four {
    left: 22px;
    bottom: 90px;
    width: 100px;
  }
}

@media (max-width: 680px) {
  .site-stickers {
    display: none !important;
  }
}

.site-stickers {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .site-stickers {
    display: block !important;
  }
}

.site-stickers {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 820px) and (hover: none) and (pointer: coarse) {
  .site-stickers {
    display: none !important;
  }
}


.sticker-one {
  left: auto;
  right: 7.8vw;
  top: auto;
  bottom: 16.5vh;
  width: 92px;
  transform: rotate(-5deg);
}

.sticker-two {
  left: 8.2vw;
  right: auto;
  top: auto;
  bottom: 28.5vh;
  width: 92px;
  transform: rotate(4deg);
}

.sticker-three {
  left: 64.4vw;
  right: auto;
  top: 10.8vh;
  bottom: auto;
  width: 90px;
  transform: rotate(-3deg);
}

.sticker-four {
  left: 33.4vw;
  right: auto;
  top: 4.8vh;
  bottom: auto;
  width: 88px;
  transform: rotate(7deg);
}

@media (max-width: 1100px) and (min-width: 821px) {
  .sticker-one {
    right: 5vw;
    bottom: 15vh;
    width: 78px;
  }

  .sticker-two {
    left: 6vw;
    bottom: 26vh;
    width: 78px;
  }

  .sticker-three {
    left: 66vw;
    top: 11vh;
    width: 76px;
  }

  .sticker-four {
    left: 31vw;
    top: 5vh;
    width: 74px;
  }
}

@media (min-width: 821px) {
  .sticker-one {
    left: auto;
    right: 7.8vw;
    top: auto;
    bottom: 16.5vh;
    width: 92px;
  }

  .sticker-two {
    left: 8.2vw;
    right: auto;
    top: auto;
    bottom: 28.5vh;
    width: 92px;
  }

  .sticker-three {
    left: 64.4vw;
    right: auto;
    top: 10.8vh;
    bottom: auto;
    width: 90px;
  }

  .sticker-four {
    left: 33.4vw;
    right: auto;
    top: 4.8vh;
    bottom: auto;
    width: 88px;
  }
}


@media (hover: hover) and (pointer: fine) {
  .sticker-one {
    left: auto;
    right: 7.8vw;
    top: auto;
    bottom: 16.5vh;
    width: 92px;
  }

  .sticker-two {
    left: 8.2vw;
    right: auto;
    top: auto;
    bottom: 28.5vh;
    width: 92px;
  }

  .sticker-three {
    left: 64.4vw;
    right: auto;
    top: 10.8vh;
    bottom: auto;
    width: 90px;
  }

  .sticker-four {
    left: 33.4vw;
    right: auto;
    top: 4.8vh;
    bottom: auto;
    width: 88px;
  }
}

.site-sticker {
  right: auto !important;
  bottom: auto !important;
}

body {
  background: var(--viewer-bg, var(--page));
}

.colour-widget {
  position: fixed;
  left: 274px;
  bottom: 18px;
  z-index: 860;
  width: 164px;
  border: 1px solid var(--ink);
  background: var(--page);
  color: var(--ink);
  box-shadow: none;
  font-family: ui-monospace, "Courier New", monospace;
}

.colour-widget-head {
  display: grid;
  grid-template-columns: 1fr auto 24px;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 5px 4px 8px;
  user-select: none;
  touch-action: none;
  cursor: move;
}

.colour-widget-drag {
  color: var(--muted);
  font-size: .55rem;
}

.colour-widget-toggle {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

.colour-widget-panel {
  padding: 9px 9px 10px;
  border-top: 1px dashed var(--line-dark);
}

.colour-widget-panel[hidden] {
  display: none;
}

.colour-picker-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.colour-picker-input {
  display: block;
  width: 58px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

.colour-picker-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.colour-picker-input::-webkit-color-swatch {
  border: 0;
}

.colour-picker-input::-moz-color-swatch {
  border: 0;
}

.colour-picker-value {
  font-size: .65rem;
  text-align: center;
}

.colour-reset {
  width: 100%;
  min-height: 26px;
  padding: 3px 6px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .62rem;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

.colour-reset:hover,
.colour-reset:focus-visible {
  background: var(--soft);
}

@media (max-width: 820px) and (hover: none) and (pointer: coarse) {
  .colour-widget {
    display: none !important;
  }
}


.colour-widget {
  width: 210px;
}

.colour-widget-head {
  grid-template-columns: 1fr auto 24px;
}

.colour-widget-head > span:first-child {
  font-size: .63rem;
  white-space: nowrap;
}

.colour-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 9px;
}

.colour-mode {
  min-height: 26px;
  padding: 3px 5px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .61rem;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

.colour-mode.is-active,
.colour-mode:hover,
.colour-mode:focus-visible {
  background: var(--soft);
}

.colour-gradient-controls[hidden],
.colour-solid-controls[hidden] {
  display: none;
}

.colour-gradient-controls {
  display: grid;
  gap: 8px;
  margin-bottom: 9px;
}

.colour-gradient-colour {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 8px;
  font-size: .61rem;
}

.colour-angle {
  display: grid;
  grid-template-columns: 33px 1fr 34px;
  align-items: center;
  gap: 6px;
  font-size: .59rem;
}

.colour-angle input {
  width: 100%;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
}

.colour-reset {
  margin-top: 2px;
}

.page-panel,
.paper-note,
.note-block,
.progress-post,
.resource-card,
.progress-empty,
.music-player,
.colour-widget {
  background: var(--page) !important;
  color: var(--ink);
}

html[data-background-art="dark"] .title-art,
html[data-background-art="dark"] .nav-art,
html[data-background-art="dark"] .kitties-art {
  filter: invert(1) brightness(1.08) !important;
}

html[data-background-art="light"] .title-art,
html[data-background-art="light"] .nav-art,
html[data-background-art="light"] .kitties-art {
  filter: none !important;
}

html[data-background-art="dark"] .theme-icon {
  filter: invert(1) brightness(1.08) !important;
}

html[data-background-art="light"] .theme-icon {
  filter: none !important;
}


.trash-bin {
  position: fixed;
  right: 260px;
  bottom: 18px;
  z-index: 870;
  width: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: url("assets/cursor-hand.png") 8 4, pointer;
  touch-action: none;
  user-select: none;
  transition: transform 120ms ease;
}

.trash-bin img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
}

html[data-background-art="dark"] .trash-bin img {
  filter: invert(1) brightness(1.08) !important;
  mix-blend-mode: screen;
}

html[data-background-art="light"] .trash-bin img {
  filter: none !important;
  mix-blend-mode: multiply;
}

.trash-bin.is-ready {
  transform: scale(1.12) rotate(3deg);
}

.trashable-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.trash-pop {
  animation: trash-pop 420ms ease;
}

@keyframes trash-pop {
  0% { transform: scale(.72) translateY(18px); }
  55% { transform: scale(1.08) translateY(-5px); }
  100% { transform: scale(1) translateY(0); }
}

@media (max-width: 820px) and (hover: none) and (pointer: coarse) {
  .trash-bin {
    display: none !important;
  }
}

html {
  scrollbar-gutter: stable;
}

.theme-toggle {
  z-index: 950;
  pointer-events: auto !important;
  touch-action: manipulation;
}

@media (max-width: 820px) {
  .theme-toggle {
    display: grid !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

.colour-default-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}

.colour-default-row .colour-reset {
  margin-top: 0;
  min-height: 36px;
  line-height: 1.2;
}

html[data-background-art="dark"] .corner-drawer-toggle::before,
html[data-background-art="dark"] .subpage .tiny-nav a[aria-current="page"]::after {
  filter: invert(1) brightness(1.08) !important;
}

html[data-background-art="light"] .corner-drawer-toggle::before,
html[data-background-art="light"] .subpage .tiny-nav a[aria-current="page"]::after {
  filter: none !important;
}

.site,
.home-shell {
  width: min(900px, calc(100% - 34px));
  margin-left: auto;
  margin-right: auto;
  padding-top: 34px;
}

.site-head,
.home-title {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 6px 0 24px;
}

.home-nav {
  margin: 3px auto 28px;
}

.home-theme-toggle {
  top: 34px;
}

@media (min-width: 821px) {
  .home-shell {
    width: min(900px, calc(100% - 34px));
  }
}

@media (max-width: 680px) {
  .site,
  .home-shell {
    width: min(100% - 24px, 900px);
    padding-top: 22px;
  }

  .site-head,
  .home-title {
    padding: 31px 0 24px;
  }

  .home-theme-toggle {
    top: 22px;
  }

  .home-nav {
    margin: 3px auto 22px;
  }
}

.theme-toggle {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation !important;
  pointer-events: auto !important;
}

.theme-toggle .theme-icon {
  pointer-events: none;
}

@media (max-width: 820px) {
  body {
    background: var(--page) !important;
    background-image: none !important;
    background-attachment: initial !important;
  }

  .page-panel,
  .paper-note,
  .note-block,
  .progress-post,
  .resource-card,
  .progress-empty,
  .music-player,
  .colour-widget {
    background: var(--page) !important;
    color: var(--ink) !important;
  }

  html:not([data-theme="dark"]) .title-art,
  html:not([data-theme="dark"]) .nav-art,
  html:not([data-theme="dark"]) .kitties-art,
  html:not([data-theme="dark"]) .theme-icon {
    filter: none !important;
  }

  html[data-theme="dark"] .title-art,
  html[data-theme="dark"] .nav-art,
  html[data-theme="dark"] .kitties-art,
  html[data-theme="dark"] .theme-icon {
    filter: invert(1) brightness(1.08) !important;
  }

  html:not([data-theme="dark"]) .corner-drawer-toggle::before,
  html:not([data-theme="dark"]) .subpage .tiny-nav a[aria-current="page"]::after {
    filter: none !important;
  }

  html[data-theme="dark"] .corner-drawer-toggle::before,
  html[data-theme="dark"] .subpage .tiny-nav a[aria-current="page"]::after {
    filter: invert(1) brightness(1.08) !important;
  }
}

.corner-drawer {
  width: 262px;
}

.corner-drawer-panel {
  width: 252px;
  min-height: 0;
  max-height: calc(100vh - 70px);
  padding: 6px 0 12px;
  overflow-y: auto;
  pointer-events: auto;
}

.corner-drawer-panel .music-player,
.corner-drawer-panel .colour-widget {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  margin: 0;
}

.corner-drawer-panel .music-player {
  width: 242px;
  margin-bottom: 12px;
}

.corner-drawer-panel .music-player-handle {
  cursor: default;
  touch-action: auto;
}

.corner-drawer-panel .colour-widget {
  width: 242px;
}

.corner-drawer-panel .colour-widget-head {
  grid-template-columns: 1fr 24px;
  cursor: default;
  touch-action: auto;
}

.music-player-drag,
.colour-widget-drag,
.site-stickers,
.site-sticker,
.trash-bin {
  display: none !important;
}

.corner-drawer-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.corner-drawer-panel .colour-widget {
  order: 1;
  margin: 0 0 12px;
}

.corner-drawer-panel .music-player {
  order: 2;
  margin: 0;
}

.corner-drawer-toggle,
.corner-drawer-panel,
.corner-drawer-panel * {
  -webkit-user-select: none;
  user-select: none;
}

.corner-drawer-panel input {
  -webkit-user-select: auto;
  user-select: auto;
}

.notes-resources-stage {
  width: 100%;
}

@media (min-width: 821px) {
  body.notes-resources-split .site {
    width: min(1460px, calc(100% - 34px));
  }

  body.notes-resources-split .site-head,
  body.notes-resources-split .tiny-nav {
    width: min(900px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  body.notes-resources-split .notes-resources-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 53px;
  }

  body.notes-resources-split .notes-resources-stage > .page-panel {
    width: 100%;
    margin: 0;
  }

  body.notes-resources-split .tiny-nav a.is-split-open::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% - 1px);
    width: 28px;
    height: 43px;
    transform: translateX(-50%);
    pointer-events: none;
  }

  body.notes-resources-split .tiny-nav a[href="notes.html"].is-split-open::after {
    background: center / contain no-repeat url("assets/arrow-notes.png");
  }

  body.notes-resources-split .tiny-nav a[href="resources.html"].is-split-open::after {
    background: center / contain no-repeat url("assets/arrow-resources.png");
  }

  html[data-background-art="dark"] body.notes-resources-split .tiny-nav a.is-split-open::after {
    filter: invert(1) brightness(1.08) !important;
  }

  html[data-background-art="light"] body.notes-resources-split .tiny-nav a.is-split-open::after {
    filter: none !important;
  }
}

@media (max-width: 820px) {
  .notes-resources-stage { display: block; }
}

.progress-youtube {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
}

.progress-youtube iframe,
.progress-youtube-poster,
.progress-youtube-intro {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.progress-youtube iframe {
  display: block;
  border: 0;
  pointer-events: none;
}

.progress-youtube.has-started {
  cursor: default;
}

.progress-youtube.has-started iframe {
  pointer-events: auto;
}

.progress-youtube-poster {
  z-index: 1;
  display: block;
  object-fit: cover;
}

.progress-youtube-intro {
  z-index: 2;
  cursor: zoom-in;
}

.progress-youtube.has-started .progress-youtube-poster,
.progress-youtube.has-started .progress-youtube-intro {
  display: none;
}

.progress-youtube-play,
.progress-youtube-mute,
.progress-youtube-link {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, .86);
  background: rgba(20, 20, 20, .72);
  color: #fff;
  font: 700 .65rem/1 ui-monospace, "Courier New", monospace;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
}

.progress-youtube-play {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 11px;
}

.progress-youtube-mute {
  left: 8px;
  bottom: 8px;
  padding: 5px 7px;
}

.progress-youtube-link {
  right: 8px;
  bottom: 8px;
  padding: 6px 7px;
}

body.progress-viewer-open {
  overflow: hidden;
}

.progress-viewer {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  place-items: center;
  padding: 4px;
  background: rgba(8, 10, 14, .9);
}

.progress-viewer.is-open {
  display: grid;
}

.progress-viewer-panel {
  position: relative;
  width: min(1480px, calc(100vw - 8px));
  height: min(96vh, 980px);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(18, 18, 20, .98);
}

.progress-viewer-stage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 2px 6px;
}

.progress-viewer-image,
.progress-viewer-video,
.progress-viewer-youtube {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  object-fit: contain;
  background: #0f1013;
}

.progress-viewer-image[hidden],
.progress-viewer-video[hidden],
.progress-viewer-youtube[hidden] {
  display: none;
}

.progress-viewer-close,
.progress-viewer-arrow {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: ui-monospace, "Courier New", monospace;
  cursor: pointer;
}

.progress-viewer-close:hover,
.progress-viewer-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, .16);
}

.progress-viewer-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: .8rem;
}

.progress-viewer-arrow {
  align-self: center;
  justify-self: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1rem;
}

.progress-viewer-prev {
  grid-column: 1;
  grid-row: 1;
}

.progress-viewer-next {
  grid-column: 3;
  grid-row: 1;
}

.progress-viewer-arrow:disabled {
  opacity: .2;
  cursor: default;
}

.progress-viewer-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
}

.progress-viewer-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-viewer-title {
  font-family: "Bentham", Georgia, serif;
  font-size: 1.25rem;
}

.progress-viewer-date,
.progress-viewer-counter {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .64rem;
  letter-spacing: .06em;
}

.progress-viewer-date {
  opacity: .55;
}

.progress-viewer-description {
  max-width: 780px;
  margin-top: 5px;
  font-size: .78rem;
  line-height: 1.45;
  opacity: .72;
}

.progress-viewer-counter {
  white-space: nowrap;
  opacity: .7;
}

@media (max-width: 820px) {
  .progress-gallery-multi {
    gap: 6px;
    padding: 6px;
  }

  .progress-gallery-multi .progress-media-image-button > img,
  .progress-gallery-multi .progress-local-video > video {
    max-height: 42vh;
  }

  .progress-viewer {
    padding: 4px;
  }

  .progress-viewer-panel {
    width: calc(100vw - 8px);
    height: calc(100dvh - 8px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, .12);
  }

  .progress-viewer-stage {
    grid-column: 1;
    grid-row: 1;
    padding: 54px 10px 10px;
  }

  .progress-viewer-arrow {
    display: none;
  }

  .progress-viewer-close {
    top: 10px;
    right: 10px;
  }

  .progress-viewer-footer {
    grid-column: 1;
    grid-row: 2;
    padding: 11px 12px 14px;
    gap: 10px;
  }

  .progress-viewer-title {
    font-size: 1.05rem;
  }

  .progress-viewer-description {
    font-size: .72rem;
  }
}

.progress-gallery-multi:has(> .progress-media-item:nth-child(odd):last-child)
> .progress-media-item:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .progress-gallery-multi:not(:has(> .progress-media-image-button)) {
    grid-template-columns: 1fr;
  }
}

