/* A work-first index. Product artwork carries color; the site stays neutral.
   Design variance 6 / motion intensity 2 / visual density 5.
   Radius: 6px for media and inputs, 0 for text links and sections. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #242424;
  --muted: #626262;
  --line: #dedede;
  --accent: #313131;
  --tint: #efefef;
  font-family: 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
input {
  color: var(--ink);
}
button:disabled {
  cursor: default;
}
img {
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.shell {
  width: min(1100px, calc(100% - 80px));
  margin-inline: auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px 20px;
  background: var(--panel);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.hub-nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1.1px;
  white-space: nowrap;
  text-decoration: none;
}
.brand b {
  display: none;
}
.nav-links {
  display: flex;
  margin-left: auto;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-links a:hover,
.nav-links a[aria-current] {
  text-decoration: underline;
}
.nav-utilities {
  display: flex;
  align-items: center;
  gap: 15px;
}
.language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.language-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.language[aria-current] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.theme {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  font-size: 21px;
}
.shelf-intro {
  padding-block: 32px 26px;
}
.shelf-intro h1 {
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.4;
  margin: 0 0 12px;
}
.shelf-intro p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}
.shelf-intro p br {
  display: none;
}
.keep {
  display: inline-block;
}
.catalog {
  padding-bottom: 48px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 22px;
}
.section-top h2 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-top p {
  font-size: 14px;
  color: var(--muted);
  margin: 9px 0 0;
}
.section-top > a {
  font-size: 13px;
  flex-shrink: 0;
}
.section-top.compact {
  margin-bottom: 16px;
}
.section-top.compact h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 34px;
}
.project {
  min-width: 0;
}
.project-art {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 210px;
  border-radius: 6px;
  background: #e7ebee;
}
.project-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-art.playlist-toolkit {
  background: #173d31;
}
.project-art.slarog {
  gap: 26px;
  padding: 10px 20px;
  align-items: center;
  background: #e9eef5;
}
.project-art.slarog img {
  width: 245px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 6px;
}
.project-art.slarog img:last-child {
  margin-top: 0;
}
.project-media {
  margin: 0;
}
.project-media figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.project-body {
  padding-top: 16px;
}
.project-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 9px;
}
.project h3 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.4;
  margin: 0;
}
.project h3 a {
  text-decoration: none;
}
.project h3 a:hover {
  text-decoration: underline;
}
.project-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.95;
  margin: 13px 0 11px;
  max-width: 40em;
}
.project-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.project-bottom > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.project-bottom > a span {
  font-size: 17px;
}
.save {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 4px;
  min-height: 44px;
}
.save[aria-pressed='true'] {
  color: var(--ink);
  text-decoration: underline;
}
.project[data-kind='tool'] {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.project[data-kind='tool'] .project-body {
  padding: 0 170px 0 0;
  position: relative;
}
.project[data-kind='tool'] h3 {
  font-size: 22px;
}
.project[data-kind='tool'] .project-bottom {
  position: absolute;
  top: 20px;
  right: 0;
  flex-direction: column;
  gap: 0;
}
.project-grid.en {
  grid-template-columns: minmax(0, 1fr);
}
.en .project {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.en .project-body {
  padding: 0;
}
.filterbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}
.catalog-options {
  margin-bottom: 26px;
}
.catalog-options summary {
  min-height: 44px;
  padding-block: 8px;
  cursor: pointer;
  font-size: 14px;
}
.catalog-options[open] .filterbox {
  margin-top: 16px;
}
.catalog-options:not([open]) ~ .project-grid [data-save],
.catalog-options:not([open]) ~ .catalog-foot {
  display: none;
}
.recent-guide {
  border-top: 1px solid var(--line);
  padding-block: 20px 28px;
}
.recent-guide > div {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.recent-guide > a {
  display: inline-block;
  font-size: 16px;
  margin-top: 8px;
  padding-block: 4px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.filter {
  min-height: 44px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
}
.filter[aria-pressed='true'] {
  color: var(--ink);
  border-bottom-color: currentColor;
}
.search {
  min-height: 44px;
  width: 245px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  font-size: 13px;
}
.search::placeholder {
  color: var(--muted);
}
.catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 25px;
}
.clear {
  border: 0;
  padding: 4px 0;
  min-height: 44px;
  color: var(--muted);
  background: none;
  font-size: 12px;
  text-decoration: underline;
}
.empty {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 15px;
}
.error,
.noscript {
  border-left: 2px solid var(--ink);
  padding: 15px;
  background: var(--tint);
  font-size: 13px;
}
.notes {
  padding-bottom: 48px;
}
.notes > .shell {
  border-top: 1px solid var(--line);
  padding-top: 35px;
}
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 55px;
}
.note {
  padding: 22px 0;
}
.note-kind {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 8px;
}
.note h3 {
  font-size: 18px;
  font-weight: 550;
  line-height: 1.8;
  margin: 0;
}
.note h3 a {
  text-decoration: none;
}
.note h3 a:hover {
  text-decoration: underline;
}
.note h3 span {
  font-size: 15px;
}
.note p:last-child {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 10px 0 0;
}
.shelf-bottom {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 34px;
  border-top: 1px solid var(--line);
  padding-block: 35px 50px;
}
.shelf-bottom h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
.shelf-bottom p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  margin: 14px 0;
}
.shelf-bottom a {
  font-size: 13px;
}
.hub-footer {
  padding-bottom: 24px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer-main .brand {
  font-size: 17px;
  letter-spacing: -0.6px;
}
.footer-main p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.footer-links {
  display: flex;
  align-content: start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 560px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 12px;
}
.page-intro {
  padding-block: 44px 30px;
  max-width: 760px;
}
.page-intro h1,
.article h1 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.55;
  margin: 16px 0;
}
.page-intro p,
.article .intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.95;
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}
.article {
  max-width: 740px;
  margin-inline: auto;
  padding-block: 44px 64px;
  overflow-wrap: anywhere;
}
.article h2 {
  font-size: 22px;
  font-weight: 550;
  line-height: 1.65;
  margin: 38px 0 14px;
}
.article p,
.article li {
  font-size: 16px;
  line-height: 2;
}
.article .byline {
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.contents {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  margin-block: 25px;
}
.contents ol {
  margin-bottom: 0;
  padding-left: 22px;
}
.contents a {
  font-size: 14px;
}
.aside {
  border-left: 2px solid var(--ink);
  padding: 15px 20px;
  background: var(--tint);
  margin-top: 32px;
}
.aside p {
  margin: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  font-size: 14px;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #171717;
  --panel: #202020;
  --ink: #ededed;
  --muted: #b4b4b4;
  --line: #3b3b3b;
  --accent: #ededed;
  --tint: #282828;
}
/* White is the default even when the OS uses dark mode. Dark remains opt-in. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-art img {
    transition: transform 180ms ease;
  }
  .project-art:hover img {
    transform: scale(1.015);
  }
}
@media (max-width: 900px) {
  .shell {
    width: calc(100% - 48px);
  }
  .hub-nav {
    gap: 18px;
  }
  .nav-links {
    gap: 18px;
  }
  .project-art {
    height: 210px;
  }
  .project-art.slarog {
    padding: 10px 18px;
    gap: 14px;
  }
  .project-art.slarog img {
    width: 245px;
    height: 100%;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }
  .hub-nav {
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-block: 12px 6px;
  }
  .brand {
    font-size: 22px;
  }
  .nav-utilities {
    margin-left: auto;
    gap: 4px;
  }
  .language-choice {
    gap: 7px;
  }
  .language {
    font-size: 12px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 23px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .shelf-intro {
    padding-block: 30px 28px;
  }
  .shelf-intro h1 {
    font-size: 30px;
    margin-bottom: 13px;
  }
  .shelf-intro p {
    font-size: 14px;
  }
  .shelf-intro p br {
    display: block;
  }
  .section-top {
    display: block;
    margin-bottom: 12px;
  }
  .section-top > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .section-top.compact {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }
  .section-top.compact h2,
  .section-top.compact > a {
    font-size: 11px;
  }
  .section-top h2 {
    font-size: 23px;
  }
  .section-top p {
    font-size: 14px;
  }
  .project-grid,
  .project-grid.en {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .en .project {
    display: block;
  }
  .project-art {
    height: auto;
    aspect-ratio: 1052/592;
  }
  .project-art.slarog {
    height: 240px;
    aspect-ratio: auto;
    padding: 10px 20px;
    gap: 18px;
  }
  .project-art.slarog img {
    width: 245px;
    height: 100%;
  }
  .project-body,
  .en .project-body {
    padding-top: 18px;
  }
  .project h3 {
    font-size: 23px;
  }
  .project-summary {
    font-size: 14px;
    margin-block: 10px 8px;
  }
  .project-meta {
    font-size: 12px;
  }
  .project[data-kind='tool'] {
    padding-top: 24px;
  }
  .project[data-kind='tool'] .project-body {
    padding: 0;
  }
  .project[data-kind='tool'] .project-bottom {
    position: static;
    flex-direction: row;
    gap: 25px;
  }
  .catalog {
    padding-bottom: 32px;
  }
  .filterbox {
    display: block;
    margin-bottom: 24px;
  }
  .filters {
    gap: 20px;
  }
  .search {
    width: 100%;
    margin-top: 14px;
  }
  .catalog-foot {
    display: block;
    font-size: 12px;
  }
  .catalog-foot > * {
    margin-right: 14px;
  }
  .notes {
    padding-bottom: 28px;
  }
  .notes > .shell {
    padding-top: 27px;
  }
  .note-grid {
    grid-template-columns: 1fr;
  }
  .note {
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
  }
  .note:last-child {
    border: 0;
  }
  .note h3 {
    font-size: 17px;
  }
  .note p:last-child {
    font-size: 14px;
  }
  .shelf-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 30px 35px;
  }
  .footer-main {
    display: block;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 4px 18px;
    margin-top: 16px;
  }
  .page-intro {
    padding-block: 30px 22px;
  }
  .article {
    padding-block: 30px 45px;
  }
  .article p,
  .article li {
    font-size: 15px;
  }
  .article h2 {
    font-size: 21px;
  }
  .contents {
    padding: 18px;
  }
}
@media (max-width: 359px) {
  .shell {
    width: calc(100% - 32px);
  }
  .nav-links {
    gap: 15px;
  }
  .nav-links a {
    font-size: 11px;
  }
  .shelf-intro h1 {
    font-size: 27px;
  }
  .shelf-intro p {
    font-size: 13px;
  }
  .section-top.compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .section-top.compact > a {
    min-height: 34px;
  }
  .project-art.slarog {
    padding-inline: 20px;
  }
  .filters {
    gap: 17px;
  }
  .filter {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
