:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #686868;
  --line: #cecece;
  --highlight: #ffe79a;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
mark {
  color: inherit;
  background: var(--highlight);
  padding: 0.02em 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.wrap {
  max-width: 1320px;
  width: calc(100% - 96px);
  margin-inline: auto;
}
.header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1.1px;
}
.header nav {
  display: flex;
  gap: 40px;
  font-size: 15px;
  font-weight: 600;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: #fff;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 60px;
  padding-block: 65px 50px;
  align-items: center;
}
h1 {
  font-size: clamp(60px, 6.3vw, 88px);
  letter-spacing: -4px;
  line-height: 1.38;
  margin: 0 0 24px;
  font-weight: 800;
}
h1 mark {
  padding: 0 0.015em;
}
.lead {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 14px;
}
.intro {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 26px;
}
.mobile-break {
  display: none;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 15px 23px;
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}
.primary:hover {
  background: #333;
  text-decoration: none;
}
.text-link {
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
}
.hero-command {
  display: block;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  padding-block: 18px 12px;
  overflow-wrap: anywhere;
  max-width: 490px;
}
.specimen {
  margin: 0;
  min-width: 0;
  padding-top: 30px;
}
.annotation {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.original .annotation {
  display: block;
  margin-bottom: 16px;
}
.original p {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.5;
}
.underlined {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.translation {
  font-size: clamp(28px, 3vw, 43px);
  letter-spacing: -1.5px;
  line-height: 1.5;
  margin: 48px 0 0;
  white-space: nowrap;
}
.term-note {
  text-align: center;
  margin-left: 0;
  width: 80%;
  margin-top: 24px;
}
.term-note p {
  font-size: 21px;
  margin: 0 0 8px;
  font-weight: 500;
}
.term-note [lang="en"] {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 26px;
  font-weight: 400;
}
.term-note p > span + span {
  margin-inline: 10px;
}
.specimen figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: 42px;
  font-size: 12px;
}
.specimen figcaption small {
  font-size: 10px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
h2 {
  font-size: 40px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -1.3px;
  margin: 0;
}
.section-intro {
  font-size: 16px;
  line-height: 1.95;
  margin: 23px 0 0;
}
.glossary {
  padding-block: 64px;
}
.glossary-example {
  min-width: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
}
th {
  font-size: 14px;
  font-weight: 650;
  padding: 0 12px 17px;
}
td {
  padding: 17px 12px;
}
thead {
  border-bottom: 1px solid var(--line);
}
td:last-child,
th:last-child {
  white-space: nowrap;
}
.caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 12px 8px;
}
.small-link {
  font-size: 12px;
  margin-left: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.review {
  padding-block: 94px;
}
.review-note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 390px;
}
.proof {
  margin: 0;
  min-width: 0;
}
.proof-source {
  font-size: 26px;
  line-height: 1.5;
  margin: 28px 0 34px;
  letter-spacing: -0.5px;
}
.proof-translation {
  font-size: 29px;
  line-height: 1.6;
  margin: 0;
  white-space: nowrap;
}
.proof-translation del {
  color: #aaa;
}
.proof-translation ins {
  text-decoration: none;
}
.proof-note {
  font-family: "Kaiti SC", STKaiti, KaiTi, serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-align: right;
  margin: 24px 0 32px;
}
.review-rule {
  padding-top: 22px;
}
.review-rule strong {
  font-size: 19px;
  font-weight: 600;
}
.review-rule p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 13px 0 0;
}
.install {
  padding-block: 64px 55px;
}
.story {
  padding-block: 64px 80px;
}
.story-author {
  color: var(--muted);
  font-size: 14px;
  margin: 24px 0 0;
}
.story-copy {
  max-width: 650px;
  font-size: 16px;
  line-height: 2;
}
.story-copy p {
  margin: 0 0 22px;
}
.story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  margin-top: 30px;
}
.story-links a {
  text-decoration: underline;
  text-underline-offset: 5px;
}
::selection {
  background: var(--highlight);
  color: var(--ink);
}
.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}
.command-row code {
  font:
    15px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  width: 100%;
  overflow-wrap: anywhere;
}
.command-row button {
  padding: 10px 20px;
  font-size: 13px;
}
.copy-status {
  font-size: 12px;
  line-height: 1.7;
  min-height: 21px;
  margin: 8px 0;
  color: var(--muted);
}
.install-help {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 24px;
}
.prompt-label {
  font-size: 13px;
  margin: 0 0 8px;
}
blockquote {
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}
.install-links {
  display: flex;
  gap: 35px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 28px;
}
.install-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.details {
  padding-block: 34px;
}
.outputs {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.8fr;
  text-align: center;
  margin: 0 0 35px;
}
.outputs > div {
  padding: 0 22px;
}
dt {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 13px;
}
dd {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.footnotes {
  max-width: 890px;
  margin: auto;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
}
.footnotes p {
  margin: 8px 0;
}
.footer {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 25px;
  font-size: 12px;
}
.footer .brand {
  font-size: 25px;
}
.footer > span {
  color: var(--muted);
}
.footer > a:last-child {
  margin-left: auto;
}
@media (min-width: 1600px) {
  .hero {
    padding-block: 80px 64px;
  }
}
@media (max-width: 1100px) {
  .hero {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  h1 {
    font-size: 65px;
    letter-spacing: -3px;
  }
  .lead {
    font-size: 18px;
  }
  .intro {
    font-size: 14px;
  }
  .original p {
    font-size: 27px;
  }
  .translation {
    font-size: 31px;
  }
  .term-note p {
    font-size: 18px;
  }
  .split {
    gap: 40px;
    grid-template-columns: 1fr 1.25fr;
  }
  h2 {
    font-size: 33px;
  }
  .proof-translation {
    font-size: 24px;
  }
  .proof-source {
    font-size: 23px;
  }
  .specimen figcaption {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .specimen figcaption small {
    margin-left: auto;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header {
    height: 76px;
  }
  .brand {
    font-size: 28px;
  }
  .header nav {
    gap: 22px;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 42px;
  }
  .hero-copy {
    max-width: 600px;
  }
  h1 {
    font-size: 72px;
  }
  .lead {
    font-size: 21px;
  }
  .intro {
    font-size: 16px;
  }
  .hero-command {
    max-width: 490px;
  }
  .specimen {
    padding: 22px 0 0;
    max-width: 600px;
    width: 100%;
  }
  .original p {
    font-size: 34px;
  }
  .translation {
    font-size: 40px;
    margin-top: 26px;
  }
  .term-note {
    margin-left: 25%;
    width: 65%;
  }
  .specimen figcaption {
    margin-top: 25px;
    justify-content: space-between;
  }
  .specimen figcaption small {
    margin: 0;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .glossary {
    padding-block: 35px;
  }
  .glossary-example {
    border: 0;
    padding-left: 0;
  }
  h2 {
    font-size: 32px;
  }
  .section-intro {
    margin-top: 15px;
  }
  .review {
    padding-block: 56px;
  }
  .story {
    padding-block: 40px 56px;
  }
  .story-copy {
    font-size: 15px;
  }
  .review-note {
    max-width: 560px;
  }
  .proof-source {
    margin-block: 20px 24px;
    font-size: 28px;
  }
  .proof-translation {
    font-size: 31px;
  }
  .proof-note {
    font-size: 21px;
  }
  .install {
    padding-block: 36px;
  }
  .command-row {
    justify-content: flex-start;
  }
  .command-row code {
    font-size: 14px;
  }
  .outputs {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 20px;
    margin-bottom: 28px;
  }
  .outputs > div {
    padding: 0;
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: baseline;
  }
  .outputs > div + div {
    border: 0;
  }
  dt {
    font-size: 15px;
    margin: 0;
  }
  dd {
    font-size: 12px;
  }
  .footnotes {
    text-align: left;
  }
  .details {
    padding-block: 28px;
  }
}
@media (max-width: 450px) {
  .header nav {
    gap: 18px;
  }
  .header nav a[href="#glossary"],
  .header nav a[href="#review"] {
    display: none;
  }
  .header nav {
    gap: 14px;
  }
  .header nav a[href="https://github.com/blainehuang1028/subtitle-me"] {
    display: none;
  }
  h1 {
    font-size: clamp(46px, 15.4vw, 60px);
    letter-spacing: -2.7px;
  }
  .lead {
    font-size: 17px;
  }
  .intro {
    font-size: 14px;
  }
  .mobile-break {
    display: block;
  }
  .primary {
    font-size: 14px;
    padding: 13px 17px;
    gap: 18px;
  }
  .actions {
    gap: 26px;
  }
  .text-link {
    font-size: 13px;
  }
  .hero-command {
    font-size: 11px;
  }
  .original p {
    font-size: 27px;
  }
  .translation {
    font-size: clamp(25px, 7.7vw, 30px);
    letter-spacing: -1px;
  }
  .term-note p {
    font-size: 17px;
  }
  .term-note [lang="en"] {
    font-size: 23px;
  }
  .specimen figcaption {
    font-size: 10px;
    gap: 10px;
  }
  .specimen figcaption small {
    font-size: 9px;
  }
  h2 {
    font-size: 29px;
  }
  .section-intro {
    font-size: 14px;
  }
  table {
    font-size: 12px;
  }
  th {
    font-size: 12px;
    padding-inline: 5px;
  }
  td {
    padding: 14px 5px;
  }
  .caption {
    margin-left: 5px;
    font-size: 11px;
  }
  .small-link {
    margin-left: 5px;
  }
  .proof-source {
    font-size: 22px;
  }
  .proof-translation {
    font-size: clamp(18px, 5.6vw, 22px);
  }
  .proof-note {
    font-size: 18px;
  }
  .review-rule strong {
    font-size: 17px;
  }
  .install-links {
    font-size: 13px;
    gap: 26px;
  }
  .command-row code {
    font-size: 13px;
  }
  blockquote {
    font-size: 14px;
  }
  .footer {
    gap: 18px;
    font-size: 11px;
  }
  .footer .brand {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.original .underlined {
  white-space: nowrap;
}
