:root {
  color-scheme: light;
  --ink: #201b16;
  --muted: #6d5c4b;
  --paper: #f4e6c9;
  --paper-hot: #fff5dd;
  --paper-cool: #d8ece5;
  --paper-red: #f1c9ba;
  --line: rgba(32, 27, 22, 0.34);
  --red: #a83225;
  --teal: #176f72;
  --teal-soft: #9ecfca;
  --blue: #223b72;
  --fox-fire: #e8793a;
  --fox-fire-soft: #f4a35e;
  --fox-ember: #ffcaa0;
  --fox-ice: #5aa9e6;
  --fox-night: #08090c;
  --shadow: rgba(32, 27, 22, 0.24);
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #efe1c4;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 9% 12%, rgba(232, 121, 58, 0.12), transparent 24%),
    radial-gradient(circle at 85% 38%, rgba(90, 169, 230, 0.13), transparent 30%),
    linear-gradient(90deg, rgba(32, 27, 22, 0.045) 0 1px, transparent 1px 24px),
    linear-gradient(0deg, rgba(32, 27, 22, 0.035) 0 1px, transparent 1px 24px),
    #f3e4c6;
}

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-radial-gradient(circle at 18% 12%, rgba(32, 27, 22, 0.2) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(102deg, rgba(32, 27, 22, 0.06) 0 1px, transparent 1px 8px);
  mix-blend-mode: multiply;
}

.page-board {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 24px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.title-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 22px;
  align-items: start;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(76px, 9.8vw, 142px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    3px 0 0 rgba(255, 245, 221, 0.75),
    6px 6px 0 rgba(168, 50, 37, 0.28);
}

.archive-line {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--red);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.25;
}

.coding-fox {
  position: relative;
  display: grid;
  width: 164px;
  min-width: 0;
  justify-items: center;
  gap: 7px;
  justify-self: end;
  padding: 12px 14px 11px;
  background:
    linear-gradient(0deg, rgba(255, 245, 221, 0.58), rgba(255, 245, 221, 0.58)),
    repeating-linear-gradient(90deg, rgba(32, 27, 22, 0.08) 0 1px, transparent 1px 7px);
  border: 2px solid rgba(32, 27, 22, 0.48);
  color: var(--ink);
  box-shadow: 4px 5px 0 rgba(32, 27, 22, 0.16);
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(0.4deg);
}

.coding-fox::after {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  padding: 1px 4px;
  content: "Official";
  color: var(--fox-fire);
  background: rgba(255, 245, 221, 0.72);
  border: 1px solid rgba(232, 121, 58, 0.68);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.fox-head {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 2px solid var(--ink);
  outline: 1px dashed rgba(255, 245, 221, 0.7);
  outline-offset: -6px;
  box-shadow: 3px 3px 0 rgba(32, 27, 22, 0.24);
  filter: sepia(0.18) saturate(1.14) contrast(1.04);
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.coding-fox strong {
  font-family: "Courier New", Courier, monospace;
  max-width: 100%;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.coding-fox span {
  color: var(--fox-fire);
}

.coding-fox:hover,
.coding-fox:focus-visible {
  color: var(--fox-night);
  outline: 2px solid var(--fox-fire);
  outline-offset: 6px;
}

.control-panel {
  min-height: 176px;
  padding: 8px 0 0 26px;
  border-left: 1px solid rgba(32, 27, 22, 0.3);
}

.sort-line,
.control-label {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.dash-rule {
  width: 100%;
  height: 12px;
  margin: 8px 0 12px;
  border-top: 2px dashed rgba(32, 27, 22, 0.7);
}

.filters,
.mode-switch,
.sort-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.mode-label {
  margin-top: 18px;
}

.filter-button {
  position: relative;
  min-height: 48px;
  min-width: 116px;
  padding: 0 44px 0 24px;
  color: var(--ink);
  background: rgba(255, 245, 221, 0.76);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(32, 27, 22, 0.22), 3px 4px 0 var(--shadow);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.filter-button span {
  display: none;
}

.filter-button::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  content: "";
  background: #efe5d0;
  border-radius: 50%;
  box-shadow: inset 2px 2px 4px rgba(32, 27, 22, 0.28), 0 0 0 1px rgba(32, 27, 22, 0.18);
}

.filter-button.legendary {
  background: var(--teal-soft);
}

.filter-button.bad {
  background: color-mix(in srgb, var(--fox-fire-soft) 58%, #c96552);
}

.filter-button.all {
  min-width: 74px;
  padding-right: 22px;
  background: var(--red);
  color: var(--paper-hot);
}

.filter-button.all::after {
  display: none;
}

.filter-button.is-active::after {
  background: var(--ink);
}

.filter-button:hover,
.filter-button:focus-visible,
.mode-button:hover,
.mode-button:focus-visible,
.read-button:hover,
.read-button:focus-visible,
.lesson-button:hover,
.lesson-button:focus-visible,
.dialog-close:hover,
.dialog-close:focus-visible {
  transform: translate(-1px, -1px);
  outline: none;
}

.mode-button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 245, 221, 0.62);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--shadow);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.mode-button.is-active {
  color: var(--paper-hot);
  background: var(--fox-night);
  border-color: var(--fox-night);
}

.punch-clock {
  display: grid;
  grid-template-columns: 170px 58px 112px repeat(13, minmax(44px, 1fr)) 162px;
  align-items: stretch;
  margin: 26px 0 22px;
  min-height: 96px;
  color: var(--ink);
  background: rgba(255, 245, 221, 0.6);
  border: 2px solid rgba(32, 27, 22, 0.54);
  box-shadow: 4px 5px 0 rgba(32, 27, 22, 0.16);
}

.punch-label,
.today-cell,
.next-punch,
.time-slots li {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-right: 1px solid rgba(32, 27, 22, 0.4);
  text-align: center;
}

.punch-label {
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.punch-arrow {
  position: relative;
  border-right: 1px solid rgba(32, 27, 22, 0.4);
}

.punch-arrow::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 30px;
  height: 4px;
  content: "";
  background: var(--ink);
  transform: translateY(-50%);
}

.punch-arrow::after {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 0;
  height: 0;
  content: "";
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid var(--ink);
  transform: translateY(-50%);
}

.today-cell {
  background: var(--teal-soft);
  text-transform: uppercase;
}

.today-cell span,
.next-punch span {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.today-cell strong {
  display: block;
  max-width: 92px;
  font-size: 18px;
  line-height: 1.15;
}

.time-slots {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.time-slots li {
  position: relative;
  gap: 2px;
  min-width: 44px;
  padding: 8px 0;
  font-weight: 700;
}

.time-slots strong {
  font-size: 19px;
}

.time-slots span {
  font-size: 12px;
}

.time-slots i {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background: var(--ink);
  border-radius: 50%;
}

.time-slots li.is-punched i {
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(32, 27, 22, 0.2);
}

.next-punch {
  padding: 0 14px;
  background: rgba(255, 245, 221, 0.72);
  border-right: 0;
  text-transform: uppercase;
}

.next-punch strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 23px;
  line-height: 1;
}

.wall-shell {
  margin-top: 0;
}

.entry-wall.mode-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.tome-card {
  --accent: var(--teal);
  position: relative;
  min-height: 320px;
  padding: 22px 20px 124px 34px;
  color: var(--ink);
  overflow: hidden;
  background:
    linear-gradient(0deg, transparent 0 33px, rgba(23, 111, 114, 0.16) 34px 35px, transparent 36px),
    linear-gradient(90deg, transparent 0 30px, rgba(168, 50, 37, 0.16) 31px 32px, transparent 33px),
    var(--paper-hot);
  border: 1px solid rgba(32, 27, 22, 0.5);
  border-radius: var(--radius);
  box-shadow: 5px 7px 0 var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transform: rotate(var(--tilt, 0deg)) translateY(10px);
  opacity: 0;
  animation: card-in 320ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

.tome-card.legendary {
  --accent: var(--teal);
}

.tome-card.bad {
  --accent: var(--red);
  background:
    linear-gradient(0deg, transparent 0 33px, rgba(168, 50, 37, 0.13) 34px 35px, transparent 36px),
    linear-gradient(90deg, transparent 0 30px, rgba(168, 50, 37, 0.14) 31px 32px, transparent 33px),
    #f4d3c4;
}

.tome-card:nth-child(4n + 2),
.tome-card:nth-child(4n + 7) {
  background-color: #efe8d0;
}

.tome-card:nth-child(4n + 3),
.tome-card:nth-child(4n + 9) {
  background-color: #efd1c1;
}

.tome-card.legendary:nth-child(5n + 1) {
  background-color: #cfe7df;
}

.tome-card:hover {
  box-shadow: 8px 10px 0 var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transform: rotate(0deg) translate(-2px, -3px);
}

.card-holes {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 8px;
  width: 13px;
  background:
    radial-gradient(circle, rgba(32, 27, 22, 0.26) 0 5px, transparent 5.8px) 0 0 / 13px 40px repeat-y;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(32, 27, 22, 0.54);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-code {
  color: var(--ink);
}

.card-title {
  margin: 22px 0 14px;
  font-size: 27px;
  line-height: 0.96;
}

.font-0 .card-title {
  font-family: Georgia, "Times New Roman", serif;
}

.font-1 .card-title {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.font-2 .card-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 25px;
}

.lesson {
  margin: 0 0 22px;
  overflow: hidden;
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.47;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.stamp {
  position: absolute;
  right: 52px;
  bottom: 88px;
  display: inline-grid;
  place-items: center;
  max-width: 160px;
  min-width: 92px;
  min-height: 42px;
  margin: 0;
  padding: 6px 10px;
  color: var(--accent);
  background: rgba(255, 245, 221, 0.38);
  border: 2px solid currentColor;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.tome-card.bad .stamp {
  color: var(--red);
}

.stamp-v0 {
  border-style: solid;
  box-shadow: 2px 2px 0 rgba(32, 27, 22, 0.18);
  transform: rotate(-7deg);
}

.stamp-v1 {
  width: 100px;
  min-height: 64px;
  padding: 8px;
  border-style: dashed;
  border-radius: 50%;
  font-size: 13px;
  transform: rotate(6deg);
}

.stamp-v2 {
  border: 4px double currentColor;
  background: rgba(216, 236, 229, 0.36);
  font-size: 13px;
  transform: rotate(-2deg);
}

.stamp-v3 {
  border-width: 1px 5px;
  background:
    repeating-linear-gradient(-45deg, rgba(32, 27, 22, 0.06) 0 4px, transparent 4px 8px),
    rgba(255, 245, 221, 0.44);
  transform: rotate(4deg) skew(-4deg);
}

.stamp-v4 {
  min-width: 118px;
  min-height: 38px;
  border-radius: 999px;
  background: rgba(255, 202, 160, 0.28);
  box-shadow: inset 0 0 0 1px currentColor;
  transform: rotate(-10deg);
}

.stamp-v5 {
  padding: 7px 12px;
  border-style: dotted;
  outline: 2px solid currentColor;
  outline-offset: 3px;
  background: transparent;
  transform: rotate(1deg);
}

.card-footer {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(32, 27, 22, 0.5);
}

.book-label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.read-button,
.lesson-button,
.dialog-close {
  min-width: 52px;
  min-height: 38px;
  color: var(--ink);
  background: rgba(255, 245, 221, 0.42);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(32, 27, 22, 0.38);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.read-button:hover,
.read-button:focus-visible,
.lesson-button:hover,
.lesson-button:focus-visible,
.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--paper-hot);
  background: var(--ink);
}

.entry-wall.mode-punch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.punch-note {
  display: grid;
  align-content: center;
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 245, 221, 0.68);
  border: 2px dashed rgba(32, 27, 22, 0.72);
  box-shadow: 4px 5px 0 var(--shadow);
  text-transform: uppercase;
}

.punch-note strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 0.95;
}

.punch-note span {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.35;
}

.mode-punch .tome-card {
  min-height: 270px;
  padding-bottom: 118px;
}

.mode-punch .card-title {
  margin-top: 16px;
  font-size: 23px;
}

.mode-punch .lesson {
  font-size: 14px;
  -webkit-line-clamp: 4;
}

.mode-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.spotlight-card {
  min-height: 460px;
  padding: 32px;
  background:
    linear-gradient(0deg, transparent 0 33px, rgba(23, 111, 114, 0.14) 34px 35px, transparent 36px),
    var(--paper-hot);
  border: 2px solid var(--ink);
  box-shadow: 8px 9px 0 var(--shadow);
}

.spotlight-card.bad {
  background:
    linear-gradient(0deg, transparent 0 33px, rgba(168, 50, 37, 0.14) 34px 35px, transparent 36px),
    #f1c9ba;
}

.spotlight-tag {
  display: inline-block;
  padding: 5px 9px;
  color: var(--red);
  border: 2px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.spotlight-card h2 {
  margin: 24px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.9;
}

.spotlight-card p {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.52;
}

.ledger-list {
  display: grid;
  gap: 10px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 245, 221, 0.66);
  border: 1px solid rgba(32, 27, 22, 0.48);
  box-shadow: 3px 4px 0 rgba(32, 27, 22, 0.14);
  cursor: pointer;
  text-align: left;
}

.ledger-row.bad {
  background: rgba(241, 201, 186, 0.76);
}

.ledger-row.legendary {
  background: rgba(216, 236, 229, 0.76);
}

.ledger-row span,
.ledger-row em {
  color: var(--red);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.ledger-row strong {
  font-size: 17px;
  line-height: 1.1;
}

.ledger-row em {
  grid-column: 2;
  color: var(--teal);
}

.mode-shelves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shelf-panel {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 210px;
  background: rgba(255, 245, 221, 0.66);
  border: 2px solid rgba(32, 27, 22, 0.52);
  box-shadow: 5px 6px 0 var(--shadow);
}

.shelf-label {
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: rgba(158, 207, 202, 0.55);
  border-right: 1px solid rgba(32, 27, 22, 0.42);
  text-transform: uppercase;
}

.shelf-label span {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.shelf-label h2 {
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 0.95;
}

.shelf-books {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
}

.shelf-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  color: var(--ink);
  background: #efe8d0;
  border: 1px solid rgba(32, 27, 22, 0.42);
  box-shadow: 2px 3px 0 rgba(32, 27, 22, 0.12);
  cursor: pointer;
  text-align: left;
}

.shelf-book.bad {
  background: rgba(241, 201, 186, 0.72);
}

.shelf-book.legendary {
  background: rgba(216, 236, 229, 0.72);
}

.shelf-book strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-book span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.empty-state {
  padding: 24px;
  background: var(--paper-hot);
  border: 2px dashed var(--ink);
}

.tome-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px minmax(220px, 1fr) minmax(150px, 0.7fr) minmax(210px, 0.8fr);
  gap: 0;
  margin-top: 26px;
  color: var(--ink);
  background: rgba(255, 245, 221, 0.62);
  border: 2px solid rgba(32, 27, 22, 0.44);
  box-shadow: 4px 5px 0 rgba(32, 27, 22, 0.14);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.tome-footer > * {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 12px;
  border-right: 1px solid rgba(32, 27, 22, 0.36);
  text-align: center;
}

.tome-footer > *:last-child {
  border-right: 0;
}

.pointer,
.more-tomes {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
}

.pointer {
  font-size: 42px;
}

.lesson-button {
  width: calc(100% - 18px);
  min-height: 52px;
  display: grid;
  place-items: center;
  color: var(--fox-night);
  background: linear-gradient(135deg, var(--fox-ember), var(--fox-fire));
  border-style: dashed;
  font-size: 12px;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.lesson-button:hover,
.lesson-button:focus-visible {
  color: var(--paper-hot);
  background: var(--fox-night);
}

.updated-note {
  justify-self: stretch;
  margin: 8px;
  min-height: 62px;
  background: rgba(238, 211, 162, 0.7);
  transform: rotate(-2deg);
}

.down-cue {
  display: block;
  margin-top: 4px;
  color: var(--fox-fire);
  font-size: 30px;
  line-height: 0.8;
}

.agent-entrance {
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 245, 221, 0.58);
  border: 2px dashed rgba(32, 27, 22, 0.42);
  font-size: 14px;
}

.agent-entrance h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  text-transform: uppercase;
}

.agent-entrance p {
  margin: 0;
  line-height: 1.45;
}

.agent-entrance a {
  color: var(--red);
  font-weight: 700;
}

.site-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 2px 0;
  border-top: 1px dashed rgba(32, 27, 22, 0.4);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-credit a {
  color: var(--fox-night);
  text-decoration: none;
}

.site-credit .credit-brand {
  color: var(--fox-fire);
}

.site-credit nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-credit nav a {
  padding: 3px 8px;
  background: rgba(255, 245, 221, 0.42);
  border: 1px solid rgba(32, 27, 22, 0.25);
}

.submit-page .page-board {
  width: min(1100px, calc(100% - 28px));
}

.submit-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.back-link {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 14px;
  color: var(--fox-night);
  background: rgba(255, 245, 221, 0.56);
  border: 2px solid rgba(32, 27, 22, 0.58);
  box-shadow: 3px 3px 0 rgba(32, 27, 22, 0.18);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.submit-hero {
  max-width: 850px;
}

.submit-hero h1 {
  font-size: clamp(68px, 10vw, 136px);
}

.submit-page .archive-line {
  max-width: 760px;
}

.submit-page .coding-fox {
  flex: 0 0 auto;
}

.submit-card {
  margin-top: 24px;
  padding: 26px;
  background: var(--paper-hot);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(32, 27, 22, 0.2);
}

.submit-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  overflow: hidden;
}

.submit-paths article {
  min-height: 168px;
  padding: 22px;
  background:
    linear-gradient(0deg, transparent 0 31px, rgba(23, 111, 114, 0.12) 32px 33px, transparent 34px),
    rgba(255, 245, 221, 0.7);
}

.submit-paths article + article {
  border-left: 1px solid rgba(32, 27, 22, 0.34);
}

.path-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--fox-fire);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.submit-card h2,
.submit-card h3,
.copy-panel h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.submit-card p,
.submit-card li,
.copy-panel p {
  font-size: 15px;
  line-height: 1.5;
}

.copy-panel {
  margin-top: 22px;
  padding: 20px;
  background: rgba(255, 245, 221, 0.72);
  border: 2px solid rgba(32, 27, 22, 0.52);
  box-shadow: 6px 7px 0 rgba(32, 27, 22, 0.16);
}

.copy-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.copy-button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--paper-hot);
  background: var(--fox-night);
  border: 2px solid var(--fox-night);
  box-shadow: 3px 3px 0 rgba(32, 27, 22, 0.24);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: var(--fox-night);
  background: var(--fox-ember);
  outline: none;
}

.format-block {
  margin: 14px 0 0;
  padding: 16px;
  overflow-x: auto;
  color: #e7e9ee;
  background: var(--fox-night);
  border: 2px solid rgba(232, 121, 58, 0.72);
  box-shadow: 4px 4px 0 rgba(32, 27, 22, 0.24);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.submit-notes {
  margin-top: 22px;
}

.entry-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 26px;
  color: var(--ink);
  background:
    linear-gradient(0deg, transparent 0 33px, rgba(23, 111, 114, 0.12) 34px 35px, transparent 36px),
    var(--paper-hot);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 rgba(32, 27, 22, 0.28);
}

.entry-dialog::backdrop {
  background: rgba(32, 27, 22, 0.58);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 68px;
}

.dialog-kind {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 8px;
  color: var(--teal);
  border: 2px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-kind.bad {
  color: var(--red);
}

.entry-dialog h2 {
  margin: 0 80px 14px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.9;
}

.dialog-date {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-tags {
  margin: 10px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 27, 22, 0.5);
  font-size: 16px;
  line-height: 1.55;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg)) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1080px) {
  .masthead {
    grid-template-columns: 1fr;
  }

  .control-panel {
    padding: 18px 0 0;
    border-top: 1px solid rgba(32, 27, 22, 0.32);
    border-left: 0;
  }

  .punch-clock {
    overflow-x: auto;
    grid-template-columns: 150px 52px 108px repeat(13, 54px) 150px;
  }

  .entry-wall.mode-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .page-board {
    width: min(100% - 20px, 560px);
    padding-top: 18px;
  }

  .title-lockup {
    grid-template-columns: 1fr;
  }

  .coding-fox {
    width: max-content;
    grid-template-columns: 58px auto;
    justify-items: start;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid rgba(32, 27, 22, 0.48);
  }

  .fox-head {
    width: 58px;
    height: 58px;
  }

  .coding-fox strong {
    font-size: 16px;
    text-align: left;
  }

  h1 {
    font-size: clamp(58px, 22vw, 96px);
  }

  .archive-line {
    margin-top: 14px;
    font-size: 17px;
  }

  .filters,
  .mode-switch,
  .sort-switch {
    gap: 8px;
  }

  .filter-button {
    min-width: 96px;
    min-height: 42px;
    padding-left: 16px;
    font-size: 14px;
  }

  .filter-button.all {
    min-width: 62px;
  }

  .punch-clock {
    margin-top: 18px;
    grid-template-columns: 132px 44px 100px repeat(13, 50px) 140px;
  }

  .entry-wall.mode-wall,
  .entry-wall.mode-punch,
  .mode-shelves,
  .mode-spotlight {
    grid-template-columns: 1fr;
  }

  .shelf-panel {
    grid-template-columns: 1fr;
  }

  .shelf-label {
    border-right: 0;
    border-bottom: 1px solid rgba(32, 27, 22, 0.42);
  }

  .tome-card {
    min-height: 310px;
  }

  .tome-footer {
    grid-template-columns: 1fr;
  }

  .submit-topbar {
    align-items: start;
  }

  .submit-page .coding-fox {
    width: 150px;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 9px;
  }

  .submit-page .fox-head {
    width: 64px;
    height: 64px;
  }

  .submit-page .coding-fox strong {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
  }

  .submit-paths {
    grid-template-columns: 1fr;
  }

  .submit-paths article + article {
    border-top: 1px solid rgba(32, 27, 22, 0.34);
    border-left: 0;
  }

  .copy-head {
    display: grid;
  }

  .tome-footer > * {
    border-right: 0;
    border-bottom: 1px solid rgba(32, 27, 22, 0.36);
  }

  .tome-footer > *:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 460px) {
  .submit-topbar {
    gap: 10px;
  }

  .submit-page .coding-fox {
    width: min(150px, 42vw);
    padding-right: 8px;
    padding-left: 8px;
  }

  .submit-page .fox-head {
    width: min(64px, 18vw);
    height: min(64px, 18vw);
  }

  .submit-page .coding-fox strong {
    font-size: clamp(10px, 3vw, 12px);
  }

  .control-panel {
    padding-top: 14px;
  }

  .card-title {
    font-size: 25px;
  }

  .spotlight-card {
    min-height: 0;
    padding: 24px;
  }

  .spotlight-card p {
    font-size: 16px;
  }
}
