:root {
  --paper: #eef2ef;
  --ink: #1a211c;
  --mute: #5c675f;
  --rule: color-mix(in srgb, var(--ink) 18%, transparent);
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, "Courier New",
    monospace;
  --font-body: "Atkinson Hyperlegible", "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.4rem 0.6rem;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 0.75rem;
}

.mast,
main,
footer {
  width: min(44rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

html[lang="en"] .brand {
  gap: 0.65ch;
}

.mark,
.studio {
  margin: 0;
}

.lang {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
}

.lang button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.block {
  margin-top: 2.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: none;
  color: var(--mute);
}

.catalog {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.catalog a.catalog-name {
  color: inherit;
  text-decoration: none;
}

.catalog a.catalog-name:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.catalog-meta,
.empty,
footer {
  color: var(--mute);
}

.empty {
  margin: 0;
}

.note {
  margin: 2.4rem 0 0;
}

footer {
  margin-top: 4.5rem;
  padding-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

.brand a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: baseline;
}

html[lang="en"] .brand a {
  gap: 0.65ch;
}

.crumb {
  margin: 1.7rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mute);
}

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

.crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1 {
  margin: 0.85rem 0 0;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
}

.lede {
  margin: 0.55rem 0 0;
  color: var(--mute);
}

.shot {
  margin: 1.5rem 0 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.facts li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
}

.facts li:last-child {
  border-bottom: 1px solid var(--rule);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin: 1.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.actions a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.spec {
  margin: 0.7rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mute);
}

.prose h2 {
  margin: 1.8rem 0 0.55rem;
}

.prose p {
  margin: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .mast {
    flex-direction: column;
    align-items: flex-start;
  }
}

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