:root {
  --paper: #fafafa;
  --paper-2: #ececec;
  --ink: #111111;
  --muted: #6b6b6b;
  /* Serif strokes read lighter than sans at the same value, so long-form copy
     sits darker than --muted while staying below heading weight. */
  --read: #414141;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #2f6bff;
  /* The accent as foreground (logo, quote marks) needs more lift against a
     dark ground than it does as a button fill, which keeps white text on it. */
  --accent-fg: #2f6bff;
  --card: #ffffff;
  --max: 74rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Songti SC", "Noto Serif SC", "STSong", "Noto Serif CJK SC", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "Menlo", ui-monospace, monospace;
}

html[lang="en"] {
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", serif;
}

html[lang="zh-Hant"] {
  --display: "Songti TC", "Noto Serif TC", "STSong", "Noto Serif CJK TC", "Iowan Old Style", serif;
  --sans: "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101012;
    --paper-2: #202024;
    --ink: #f1f1f0;
    --muted: #9b9b98;
    --read: #c6c6c3;
    --line: rgba(241, 241, 240, 0.14);
    --accent-fg: #88a6ff;
    --card: #18181b;
  }
  .btn:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
  .langs-menu,
  .header-menu-panel { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Reading copy is set in the serif face; the sans face is reserved for things
   you act on rather than read, plus the chrome around the page. */
.btn,
.brand,
.header-nav,
.langs-menu,
.header-menu-panel,
.site-footer {
  font-family: var(--sans);
}

a { color: inherit; }
img, svg { display: block; }
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: color-mix(in srgb, var(--paper) 68%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand span {
  display: block;
  line-height: 1.05;
}
.brand svg {
  width: 1.93rem;
  height: 1.93rem;
  flex-shrink: 0;
  color: var(--accent-fg);
  fill: var(--accent-fg);
}
.brand svg path { fill: currentColor; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.header-nav {
  display: flex;
  gap: 1.15rem;
  margin-right: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover { color: var(--ink); }
.langs {
  position: relative;
  flex-shrink: 0;
}
.langs summary,
.header-menu summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
}
.langs summary::-webkit-details-marker,
.header-menu summary::-webkit-details-marker { display: none; }
.langs summary:hover,
.langs[open] summary,
.header-menu summary:hover,
.header-menu[open] summary {
  border-color: var(--line);
  background: var(--card);
}
.langs .lang-toggle-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}
.langs-menu,
.header-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 40;
  min-width: 9.5rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(27, 23, 18, 0.1);
}
.langs-menu a,
.header-menu-panel a {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}
.langs-menu a:hover,
.header-menu-panel a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.langs-menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: color-mix(in srgb, var(--paper-2) 85%, transparent);
}
.header-menu {
  position: relative;
  display: none;
  flex-shrink: 0;
}
.header-menu-icon {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 0.1rem;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 -0.32rem 0 currentColor, 0 0.32rem 0 currentColor;
}

.hero { padding: 5.6rem 0 4.8rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3.5rem;
  align-items: end;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
  max-width: 8em;
}
.hero h1 em {
  font-style: italic;
  color: var(--ink);
}
.lede {
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 2rem;
  text-wrap: pretty;
}
/* The two clauses only break apart where the first one still fits a single
   line; otherwise they flow as one paragraph. Latin copy never fits, so it
   stays inline and needs the word space restored. */
.lede span { display: inline; }
@media (min-width: 760px) {
  html:not([lang="en"]) .lede span { display: block; }
}
html[lang="en"] .lede span + span::before { content: " "; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.45rem 0.45rem 0.45rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.btn i {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--paper);
  position: relative;
}
.btn i::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid var(--ink);
  border-top: 1.5px solid var(--ink);
  transform: rotate(45deg) translate(-1px, 1px);
}
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, black); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  padding-inline: 1.05rem;
}
.btn.ghost:hover { background: var(--paper-2); }
.meta-row {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.meta-row strong { display: block; color: var(--ink); font-weight: 600; }

.continuity {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  padding: 1.7rem 1.6rem;
  transform: rotate(1deg);
}
.continuity-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.continuity-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.continuity-rail::before {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.55rem;
  bottom: 1rem;
  width: 1px;
  background: var(--line);
}
.continuity-rail li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.65rem 0 0.65rem 1.7rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.continuity-rail .dot {
  position: absolute;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.continuity-rail li.active {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--display);
  font-size: 1.1rem;
  padding-top: 0.9rem;
}
.continuity-rail .dot.rec {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 14%, transparent);
  animation: umate-pulse 2.2s ease-in-out infinite;
}
@keyframes umate-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 14%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ink) 6%, transparent); }
}

.section { padding: 5.6rem 0; }
#why { padding-top: 2.8rem; }
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  max-width: 16ch;
}
#why h2 {
  max-width: none;
  width: 100%;
}
.prose { max-width: 42rem; color: var(--ink); }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.manifesto-list {
  list-style: none;
  margin: 2.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 3.2rem;
}
.manifesto-list li {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 1.8rem;
  padding: 0;
}
.manifesto-num {
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 0.9;
  color: color-mix(in srgb, var(--ink) 22%, transparent);
  font-weight: 600;
  letter-spacing: 0;
}
.manifesto-list h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.8rem;
}
.manifesto-list p {
  margin: 0;
  max-width: 42rem;
  color: var(--read);
  font-size: 1.02rem;
  line-height: 1.95;
}

.voices { padding-bottom: 3.4rem; }
.voices h2 { margin-bottom: 0.6rem; }
.voices-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.voices-list li {
  margin: 0;
  min-width: 0;
  padding: 0 1.5rem;
  border-left: 1px solid var(--line);
}
.voices-list li:first-child { padding-left: 0; border-left: 0; }
.voices-list li:last-child { padding-right: 0; }
.voices-list blockquote { margin: 0; }
.voices-list p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
}
.voices-list p::before,
.voices-list p::after {
  color: var(--accent-fg);
  font-weight: 600;
}
.voices-list p::before { content: "「"; }
.voices-list p::after { content: "」"; }
html[lang="en"] .voices-list p::before { content: "“"; }
html[lang="en"] .voices-list p::after { content: "”"; }

.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.shot { margin: 0; }
.shot-frame {
  aspect-ratio: 9 / 18.5;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--paper-2) 60%, transparent), transparent 60%),
    var(--card);
  position: relative;
  overflow: hidden;
}
.shot-frame::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 2.6rem;
  height: 0.32rem;
  border-radius: 999px;
  background: var(--paper-2);
  transform: translateX(-50%);
}
.shot-frame:has(img)::before { display: none; }
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot figcaption {
  margin-top: 0.9rem;
  display: block;
}
.shot figcaption strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.shot figcaption span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.legal { padding: 4.4rem 0 6rem; }
.legal h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.4rem;
}
.updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.2rem 0 0.6rem;
}
.legal p, .legal li { color: var(--ink); max-width: 46rem; }
.legal a { color: var(--ink); text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--paper);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-left: auto;
}
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

@media (max-width: 880px) {
  .header-nav { display: none; }
  .header-menu { display: block; }
  .hero-grid, .shots-grid { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.6rem; }
  .voices-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.1rem; }
  .voices-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .voices-list li:nth-child(even) { padding-right: 0; }
  .hero { padding-top: 3.4rem; }
  #why { padding-top: 0; }
  .continuity { display: none; }
  .manifesto-list li { grid-template-columns: 1fr; gap: 0.7rem; }
  .manifesto-num { font-size: 1.7rem; }
}

@media (max-width: 560px) {
  .voices-list {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .voices-list li {
    padding: 0.85rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .voices-list li:first-child { padding-top: 0; border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
