:root {
  color-scheme: light dark;
  --site-scale: 1.25;
  --column-width: 280px;
  --column-gap: 22px;
  --image-credit-multiline-offset: 15px;
  --item-code-width: 44px;
  --item-code-gap: 8px;
  --bg: #000;
  --fg: #f2f2f2;
  --muted: #a8a8a8;
  --rule: #242424;
  --panel: #050505;
  --accent: #f2f2f2;
  --hover: #fff;
  --title: #fff;
  --description: #fff;
  --header-bg: #000;
  --header-fade: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.92) 18%,
    rgba(0, 0, 0, 0.68) 42%,
    rgba(0, 0, 0, 0.32) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  --header-rule: rgba(255, 255, 255, 0.06);
  --link-hover: #fff;
  --tooltip-bg: #000;
  --tooltip-fg: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --fg: #101010;
    --muted: #4a4a4a;
    --rule: #d8d8d8;
    --panel: #fff;
    --accent: #101010;
    --hover: #000;
    --title: #000;
    --description: #000;
    --header-bg: #fff;
    --header-fade: linear-gradient(
      180deg,
      #fff 0%,
      rgba(255, 255, 255, 0.92) 18%,
      rgba(255, 255, 255, 0.68) 42%,
      rgba(255, 255, 255, 0.32) 72%,
      rgba(255, 255, 255, 0) 100%
    );
    --header-rule: rgba(0, 0, 0, 0.1);
    --link-hover: #000;
    --tooltip-bg: #fff;
    --tooltip-fg: #000;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  zoom: var(--site-scale);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 64px;
  background: var(--header-fade);
  pointer-events: none;
}

.active-timer {
  position: relative;
  display: flex;
  align-items: center;
  padding: 9px 10px 8px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1;
  cursor: help;
  outline: none;
}

.timer-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 10px;
  z-index: 80;
  width: 260px;
  padding: 10px 12px;
  background-color: var(--tooltip-bg);
  border: 1px solid var(--rule);
  color: var(--tooltip-fg);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.active-timer:hover .timer-tooltip,
.active-timer:focus-visible .timer-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.nav {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  overflow: visible;
  padding: 9px 10px 8px;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: color 140ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-letter {
  font-family: Arial, Helvetica, sans-serif;
}

.mobile-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  content: none;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  color: var(--hover);
  outline: none;
}

.mobile-category-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 10px;
  z-index: 40;
  display: none;
  min-width: 132px;
  padding: 8px 10px 9px;
  background: var(--bg);
  border: 1px solid var(--rule);
  text-align: right;
}

.nav.is-open .mobile-category-menu {
  display: grid;
  gap: 8px;
}

.mobile-category-menu a {
  font-size: 15px;
}

main {
  padding: 0 18px 48px;
}

.hero {
  position: relative;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(144px, 14vw, 244px);
  margin: -1px 0 10px;
  overflow: visible;
}

.title-lock {
  position: relative;
  display: inline-block;
}

h1 {
  margin: 0;
  color: var(--title);
  font-size: clamp(58px, 9.2vw, 142px);
  line-height: 0.92;
  text-align: center;
  letter-spacing: 0;
  font-kerning: normal;
  transform: scaleX(0.92);
  transform-origin: center top;
}

h1 span {
  display: inline;
}

.hero-asset {
  position: absolute;
  z-index: 1;
  display: block;
  user-select: none;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-arrows {
  top: -18%;
  left: -14%;
  width: 18%;
}

.hero-note {
  top: 9%;
  right: -4.8%;
  width: 7.2%;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--column-width));
  justify-content: center;
  max-width: calc((var(--column-width) * 5) + (var(--column-gap) * 4));
  margin-inline: auto;
  gap: var(--column-gap);
  align-items: start;
}

.tool-grid.is-masonry {
  position: relative;
  display: block;
}

.tool-column {
  position: relative;
  z-index: 1;
  padding: 14px 14px 18px;
  background: transparent;
  overflow: visible;
}

.tool-grid.is-masonry .tool-column {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--column-width);
}

.tool-column:has(li.is-open) {
  z-index: 5;
}

.tool-count {
  max-width: calc((var(--column-width) * 5) + (var(--column-gap) * 4));
  margin: 38px auto 0;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.footer-diagram-picture {
  display: block;
}

.footer-diagram {
  display: block;
  width: min(780px, 76vw);
  height: auto;
  margin: 30px auto 16px;
  user-select: none;
}

.site-footer-links {
  display: grid;
  justify-items: center;
  max-width: calc((var(--column-width) * 5) + (var(--column-gap) * 4));
  margin: 18px auto 64px;
}

.amazon-disclosure {
  max-width: 420px;
  margin: -42px auto 28px;
  color: #9a9a9a;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.manifesto-entry {
  margin: 0;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.faq-entry {
  margin-top: 12px;
}

.manifesto-entry a {
  color: inherit;
  text-decoration: none;
}

.manifesto-entry a:hover,
.manifesto-entry a:focus-visible {
  color: var(--hover);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.manifesto-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
  background: var(--bg);
  color: var(--fg);
  padding: clamp(42px, 7vw, 92px) clamp(22px, 8vw, 120px);
}

.manifesto-page:target {
  display: block;
}

.manifesto-close {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.manifesto-close:hover,
.manifesto-close:focus-visible {
  color: var(--hover);
  outline: none;
}

.manifesto-content {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
}

.manifesto-content h2 {
  margin: 0 0 26px;
  color: var(--fg);
  font-size: clamp(36px, 5.1vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.manifesto-content p {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 1.34;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:nth-child(1) { --faq-color: rgb(159, 216, 255); }
.faq-item:nth-child(2) { --faq-color: rgb(150, 214, 240); }
.faq-item:nth-child(3) { --faq-color: rgb(141, 212, 225); }
.faq-item:nth-child(4) { --faq-color: rgb(133, 209, 210); }
.faq-item:nth-child(5) { --faq-color: rgb(124, 207, 195); }
.faq-item:nth-child(6) { --faq-color: rgb(115, 205, 180); }
.faq-item:nth-child(7) { --faq-color: rgb(106, 203, 165); }
.faq-item:nth-child(8) { --faq-color: rgb(98, 201, 150); }
.faq-item:nth-child(9) { --faq-color: rgb(89, 198, 135); }
.faq-item:nth-child(10) { --faq-color: rgb(80, 200, 120); }

.faq-item summary {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  cursor: pointer;
  list-style: none;
  padding: 11px 0;
  color: var(--faq-color);
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 700;
  line-height: 1.2;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "›"; color: currentColor; font-family: Arial, Helvetica, sans-serif; font-size: 17px; font-weight: 700; line-height: 1; transform: rotate(0deg); transition: transform 140ms ease; }
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary:hover,
.faq-item summary:focus-visible { color: var(--hover); outline: none; }
.faq-item p { max-width: 64ch; margin: 0; padding: 0 0 12px 17px; color: var(--fg); font-family: Arial, Helvetica, sans-serif; font-size: clamp(16px, 1.45vw, 22px); }

.tool-column h2 {
  display: grid;
  grid-template-columns: var(--item-code-width) 1fr;
  gap: var(--item-code-gap);
  margin: 0 0 26px;
  padding: 0;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.05;
  text-align: left;
  letter-spacing: 0;
}

.tool-column h2 span {
  text-align: right;
}

.tool-column h2 strong {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  display: grid;
  grid-template-columns: var(--item-code-width) 1fr;
  column-gap: var(--item-code-gap);
  row-gap: 0;
  align-items: baseline;
  min-height: 20px;
  margin: -3px -8px;
  padding: 3px 8px;
  color: var(--item-color, var(--fg));
  font-weight: 700;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
  transition: color 140ms ease;
}

li:focus {
  outline: none;
}

li .item-code {
  color: var(--item-color, var(--fg));
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  transition: color 140ms ease;
}

li .item-text {
  min-width: 0;
  transition: color 140ms ease;
}

li.is-open > .item-text {
  text-decoration-line: underline;
  text-decoration-color: var(--item-color, currentColor);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

li.is-key-selected,
li.is-key-selected span {
  color: var(--hover);
}

body:not(.is-key-navigating) li:hover,
body:not(.is-key-navigating) li:hover span {
  color: var(--hover);
}

li.is-reference-target::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: -4px;
  bottom: 0;
  left: -4px;
  border-left: 2px solid var(--item-color, var(--fg));
  background: color-mix(in srgb, var(--item-color, var(--fg)) 18%, transparent);
  pointer-events: none;
  transform-origin: left center;
  animation: reference-target-highlight 3s ease-out both;
}

li.is-reference-target > .item-code,
li.is-reference-target > .item-text,
li.is-reference-target > .item-drawer {
  position: relative;
  z-index: 1;
}

@keyframes reference-target-highlight {
  0% { opacity: 0; transform: scaleX(.94); }
  12% { opacity: 1; transform: scaleX(1); }
  48% { opacity: .72; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  li.is-reference-target::before {
    opacity: .35;
    animation: none;
  }
}

.item-drawer {
  grid-column: 1 / -1;
  padding-left: 0;
  max-height: 0;
  overflow-y: hidden;
  overflow-x: visible;
  opacity: 0;
  transition: max-height 260ms ease, opacity 180ms ease;
}

li.is-open .item-drawer {
  max-height: 1200px;
  overflow: visible;
  opacity: 1;
}

.item-drawer-inner {
  min-height: 0;
  padding: 7px 0 12px;
}

.image-wrap {
  position: relative;
  margin-bottom: 8px;
}

.item-image-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid currentColor;
  opacity: 0.28;
  background-image: var(--drawer-image);
  background-position: center;
  background-size: cover;
}

li[style*="--drawer-image"] .item-image-slot {
  border: 0;
  opacity: 1;
}

.image-credit {
  position: absolute;
  z-index: 20;
  top: 0;
  left: calc(100% + 10px);
  display: block;
  width: max-content;
  max-width: 190px;
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  opacity: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  transform: rotate(90deg);
  transform-origin: left top;
}

.image-credit.is-multiline {
  left: calc(100% + var(--image-credit-multiline-offset));
}

.image-credit:hover,
.image-credit:focus-visible {
  opacity: 1;
}

.item-description {
  margin: 0;
  color: var(--description);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 1;
}

.tool-reference {
  color: var(--reference-color);
  font: inherit;
  text-decoration: none;
}

.tool-reference:hover,
.tool-reference:focus-visible {
  color: var(--hover);
  outline: none;
}

.item-personal-note {
  margin-top: 12px;
  color: var(--description);
}

.item-personal-note h3 {
  margin: 0 0 5px;
  color: var(--description);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.item-personal-note p {
  margin: 0;
  color: var(--description);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.item-recommendation {
  display: grid;
  justify-items: start;
  gap: 3px;
  margin-top: 12px;
}

.affiliate-recommendations {
  display: grid;
  gap: 8px;
}

.affiliate-recommendation {
  display: block;
}

.item-recommendation h3 {
  margin: 0;
  color: var(--description);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.22;
}

.item-link {
  display: inline-block;
  color: #ffd814;
  font-size: 14px;
  line-height: 1.22;
  text-decoration: none;
}

.item-link:hover,
.item-link:focus-visible {
  color: #ffd814;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.affiliate-label {
  color: #ffd814;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

li.is-key-selected .affiliate-label,
body:not(.is-key-navigating) li:hover .affiliate-label,
.affiliate-label:hover {
  color: #ffd814;
}

.affiliate-disclosure {
  max-width: 420px;
  margin: -42px auto 58px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 900px) {
  main {
    padding-inline: 10px;
  }

  .hero {
    min-height: 124px;
  }

  h1 {
    font-size: clamp(48px, 11.5vw, 72px);
  }
}

@media (max-width: 700px) {
  :root {
    --site-scale: 1;
    --item-code-width: 50px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body,
  main,
  .site-header {
    max-width: 100vw;
    overflow-x: clip;
  }

  main {
    padding-inline: 4px;
  }

  .tool-column {
    padding-inline: 10px;
  }

  .tool-column h2 {
    font-size: 24px;
  }

  li,
  li .item-code {
    font-size: 17px;
  }

  .item-description,
  .item-personal-note p,
  .item-recommendation h3,
  .item-link,
  .affiliate-label {
    font-size: 17px;
  }

  .item-personal-note h3 {
    font-size: 12px;
  }

  html.is-mobile-menu-open,
  body.is-mobile-menu-open {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.is-mobile-menu-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 120;
  }

  .hero {
    min-height: 186px;
  }

  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 101;
    width: 38px;
    height: 38px;
    font-size: 36px;
    color: var(--accent);
  }

  .nav.is-open .mobile-menu-toggle {
    color: transparent;
  }

  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 3px;
    background-color: var(--accent);
    display: none;
    transform-origin: 50% 50%;
    transition: background-color 140ms ease;
  }

  .nav.is-open .mobile-menu-toggle::before {
    display: block;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav.is-open .mobile-menu-toggle::after {
    display: block;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-menu-toggle:hover::before,
  .mobile-menu-toggle:hover::after,
  .mobile-menu-toggle:focus-visible::before,
  .mobile-menu-toggle:focus-visible::after {
    background-color: var(--hover);
  }

  .mobile-category-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100%;
    height: 100dvh;
    min-width: 0;
    padding: 84px 26px 28px;
    background-color: var(--bg);
    border: 0;
    text-align: left;
    opacity: 1;
    overscroll-behavior: contain;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav.is-open .mobile-category-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .mobile-category-menu a {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: baseline;
    color: var(--fg);
    font-size: clamp(31px, 9vw, 46px);
    line-height: 0.98;
    text-align: left;
    text-decoration: none;
  }

  .mobile-category-menu .menu-letter {
    font-size: 0.7em;
  }

  .footer-diagram {
    width: min(82vw, 580px);
    margin-top: 26px;
  }

  .hero-asset {
    display: none;
  }

  h1 {
    font-size: clamp(78px, 24vw, 110px);
    line-height: 0.86;
  }

  h1 span {
    display: block;
  }
}

@media (prefers-color-scheme: dark) {
  .hero-asset {
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.9;
  }
}
