@font-face {
  font-family: Asta;
  src: url("/fonts/asta.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #fffdf4;
  --ink: #171b24;
  --blue: #234ae8;
  --muted: #62646c;
  --line: #deded7;
  --soft: #f1f0e8;
  --focus: #234ae8;
  color: var(--ink);
  background: var(--paper);
  font-family: Asta, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  color: inherit;
}
svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
button,
input,
select {
  border-radius: 0;
}
button {
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
::selection {
  color: var(--paper);
  background: var(--blue);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: var(--blue);
  color: white;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.masthead {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand > span {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 13px;
}
.brand-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.brand img {
  border-radius: 10px;
}
.service-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.service-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}
.service-nav a:hover {
  color: var(--blue);
}
.service-nav a[aria-current="page"] {
  color: var(--blue);
  background: #e9edff;
  font-weight: 700;
}
.page {
  max-width: 1120px;
  padding: 0 32px;
  margin: auto;
}
.intro {
  padding: 44px 0 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
}
h1 {
  font-size: 32px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  min-height: 58px;
  padding: 0 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 3px 12px #234ae814;
}
.search-box > svg {
  color: var(--blue);
  width: 22px;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 17px 0;
  outline: none;
  caret-color: var(--blue);
  font-size: 16px;
}
.search-box input:focus-visible {
  outline: none;
}
.search-box input::placeholder {
  color: var(--muted);
}
input::-webkit-search-cancel-button {
  display: none;
}
#clear-search {
  min-width: 36px;
  height: 40px;
  font-size: 26px;
  color: var(--muted);
}
.section-heading,
.directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-heading {
  margin-bottom: 18px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}
.text-button {
  font-size: 13px;
  min-height: 44px;
  color: var(--muted);
}
.featured {
  border-top: 1px solid var(--line);
  padding: 25px 0 36px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.video-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 17px;
  align-items: start;
}
.cover-frame {
  grid-row: 1/3;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--soft);
  aspect-ratio: 9/16;
}
.cover-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cover-action {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 7px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s;
}
.cover-action svg {
  width: 14px;
  height: 14px;
}
.video-card:hover .cover-action,
.video-card:focus-visible .cover-action {
  opacity: 1;
}
.video-name {
  font-size: 17px;
  letter-spacing: -0.025em;
  font-weight: 750;
  margin: 12px 0 7px;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.video-caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.video-card:hover .video-name {
  color: var(--blue);
}
.directory-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  padding-bottom: 60px;
}
.category-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  position: sticky;
  top: 24px;
}
.category-button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px 13px;
  border-radius: 8px;
  min-height: 46px;
  font-size: 14px;
  white-space: nowrap;
}
.category-button svg {
  width: 19px;
  height: 19px;
}
.category-button:hover {
  background: var(--soft);
}
.category-button[aria-pressed="true"] {
  background: #e9edff;
  color: #1f40c7;
  font-weight: 750;
}
.directory-heading {
  min-height: 42px;
  margin-bottom: 18px;
}
.directory-heading h2 {
  font-size: 20px;
}
#count {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 7px;
  font-variant-numeric: tabular-nums;
}
.sort-label {
  font-size: 0;
}
.sort-label select {
  font-size: 13px;
  min-height: 42px;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0 22px 0 10px;
}
.category-group {
  margin: 0 0 30px;
}
.category-group h3 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--muted);
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.category-group h3 span {
  font-weight: 400;
}
.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.site-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  min-height: 99px;
  transition: background 0.15s;
}
.site-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--soft);
  border-radius: 10px;
  color: var(--blue);
}
.site-icon svg {
  width: 20px;
  height: 20px;
}
.site-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.site-name {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
}
.site-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.row-arrow {
  margin-left: auto;
  color: #83867f;
  flex-shrink: 0;
  display: flex;
}
.row-arrow svg {
  width: 17px;
  height: 17px;
}
.site-row:hover {
  background: #f3f4e9;
}
.site-row:hover .site-name,
.site-row:hover .row-arrow {
  color: var(--blue);
}
.site-row:active {
  background: #e9edff;
}
.empty {
  padding: 60px 16px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.empty p {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 10px;
}
.empty span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.empty button {
  display: block;
  margin: 20px auto 0;
  min-height: 44px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer {
  max-width: 1056px;
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.footer nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.footer a {
  padding: 12px 0;
}
.footer a:hover {
  color: var(--blue);
}

.shortcut-more {
  display: block;
  margin: 0 0 12px auto;
}
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  margin-top: 22px;
}
.load-more span {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.load-more:hover {
  background: var(--soft);
}
