@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --paper: #faf8f1;
  --ink: #272c25;
  --muted: #555a4f;
  --copper: #a94d31;
  --pine: #253d32;
  --rule: #d9d7c9;
  --display: "Instrument Serif", Baskerville, Georgia, serif;
  --serif-cn: "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 5px;
}
::selection { color: #231c16; background: #f2bf91; }
.wrap { width: min(1200px, 87%); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 2;
  inset-inline-start: 1rem;
  padding: .5rem 1rem;
  transform: translateY(-120%);
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--rule); }
.header-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.032em;
}
.section-links, .account-links { display: flex; align-items: center; }
.section-links { gap: clamp(20px, 3vw, 42px); font-size: 14px; }
.section-links a { padding: 10px 0; }
.section-links a:hover, .back-top:hover { color: var(--copper); }
.account-links { justify-self: end; gap: 20px; font-size: 14px; }
.register { border: 0; padding: 9px 0; background: none; color: #78796d; cursor: not-allowed; }
.login {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 9px 19px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
}
.login:hover { background: var(--pine); }
.login span { font-family: system-ui, sans-serif; font-size: 16px; line-height: 1; }

.hero {
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  align-items: center;
  column-gap: 3%;
  padding-block: clamp(48px, 5vw, 76px) clamp(48px, 5.4vw, 80px);
}
.hero-copy { min-width: 0; }
.hero h1, .motto { font-family: var(--display); font-weight: 400; }
.hero h1 {
  font-size: clamp(76px, 9.15vw, 134px);
  line-height: .99;
  letter-spacing: -.048em;
}
.motto {
  margin-top: 4px;
  font-size: clamp(49px, 5.25vw, 78px);
  font-style: italic;
  color: var(--copper);
  line-height: 1.05;
  letter-spacing: -.034em;
}
.philosophy { margin-top: clamp(22px, 2.3vw, 35px); max-width: 34rem; }
.philosophy button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.passages { display: grid; align-items: start; }
.passages > span {
  grid-area: 1 / 1;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .015em;
}
.passages > [lang="en"] { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.6; letter-spacing: 0; }
.passages > [aria-hidden="true"] { visibility: hidden; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-block: 2px;
  font-size: 12px;
  line-height: 1.25;
  color: #6d7066;
}
.language-switch svg { color: #868778; }
.switch-zh, [aria-pressed="true"] .switch-en { color: var(--copper); font-weight: 650; }
[aria-pressed="true"] .switch-zh { color: #6d7066; font-weight: 400; }
.hero-plate {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 500px);
}
.hero-plate::before {
  position: absolute;
  z-index: -1;
  content: "";
  width: 73%;
  aspect-ratio: 1;
  left: 15%;
  top: 3%;
  border-radius: 50%;
  background-color: #f1ebdd;
  background-image: radial-gradient(#b8aa8b45 .65px, transparent .85px);
  background-size: 4px 4px;
}
.hero-art { display: block; width: 100%; height: auto; }

.translation { overflow: hidden; background: var(--pine); color: var(--paper); }
.translation-inner {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  padding-block: clamp(46px, 4.4vw, 66px);
}
.translation-copy h2, .features h2 {
  font-family: var(--serif-cn);
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.05em;
}
.accent-stop { color: #efb080; }
.translation-copy > p { margin-top: 15px; font-size: 15px; line-height: 1.85; color: #e0e4d7; }
.get-started {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  border-radius: 4px;
  padding: 12px 20px;
  color: #262b22;
  background: #efb68e;
  font: 600 15px/1.45 system-ui, sans-serif;
}
.get-started:hover { background: #f7c8a5; }
.get-started:focus-visible { outline-color: var(--paper); }
.arrow { font-size: 20px; line-height: 1; transition: transform .16s ease; }
.get-started:hover .arrow { transform: translateX(3px); }
.translation-sheet {
  position: relative;
  justify-self: center;
  width: min(94%, 435px);
  padding: 23px clamp(22px, 2.5vw, 38px) 28px;
  color: var(--ink);
  background: #f4f0df;
  border-radius: 2px;
  box-shadow: 5px 6px 0 #c9c9b2, 6px 7px 0 #192b2380, 9px 12px 0 #d9d7c1;
  transform: rotate(-2deg);
}
.translation-sheet figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #62664f;
  font-size: 12px;
  letter-spacing: .08em;
}
.sheet-line { width: 23px; height: 1px; background: currentColor; }
.translation-sheet blockquote {
  font-family: var(--display);
  font-size: clamp(33px, 3.2vw, 47px);
  line-height: .99;
  letter-spacing: -.012em;
}
.translation-sheet em { color: var(--copper); }
.translation-sheet p { margin-top: 17px; padding-top: 12px; border-top: 1px solid #d0cdb8; color: #535849; font-size: 14px; }

.features { padding-block: clamp(54px, 6vw, 94px); }
.features-intro { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.features-intro > p { font-size: 13px; color: #65695d; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); margin-top: 32px; }
.preview {
  --mini-accent: #859278;
  --mini-light: #e1e6d7;
  display: grid;
  place-items: center;
  height: clamp(145px, 14vw, 201px);
  background: #e8ecdf;
  overflow: hidden;
  border: 1px solid #2732220d;
  border-radius: 4px;
}
.library-preview { --mini-accent: #bf9279; --mini-light: #efdfd2; background: #f1e3d7; }
.share-preview { --mini-accent: #829793; --mini-light: #dce6e3; background: #e2eae6; }
.mini-window {
  width: 65%;
  padding: 12px;
  background: #fffdf5;
  border: 1px solid var(--mini-accent);
  border-radius: 4px;
  box-shadow: 4px 5px 0 var(--mini-light), 5px 6px 0 var(--mini-accent);
}
.mini-title { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; padding-bottom: 6px; border-bottom: 1px solid var(--mini-light); }
.mini-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--mini-accent); }
.mini-window b, .mini-action { display: block; width: 40%; height: 3px; background: var(--mini-accent); border-radius: 2px; }
.mini-excerpt { display: grid; gap: 4px; padding: 7px; border: 1px solid var(--mini-light); }
.mini-excerpt b { width: 95%; background: var(--mini-light); }
.mini-excerpt b:nth-child(2) { width: 82%; }
.mini-excerpt b:last-child { width: 57%; }
.mini-action { height: 7px; width: 22%; margin-top: 6px; margin-left: auto; }
.mini-list { display: grid; gap: 4px; }
.mini-list span { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.mini-list i { width: 8px; height: 8px; border-radius: 1px; background: var(--mini-light); }
.mini-list b { background: var(--mini-light); width: 74%; }
.mini-list span:nth-child(2) b { width: 53%; }
.mini-list span:last-child b { width: 65%; }
.mini-entries { display: flex; gap: 5px; }
.mini-entries span { height: 21px; flex: 1; border: 1px solid var(--mini-light); border-left: 3px solid var(--mini-accent); }
.mini-link { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--mini-accent); font: 13px/1 system-ui; }
.mini-link b { width: 55%; background: var(--mini-light); }
.feature-grid h3 { font: 600 23px/1.4 var(--serif-cn); margin-top: 20px; }
.feature-grid article > p { margin-top: 7px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-block: 21px 28px;
}
.footer .wordmark { font-size: 24px; }
.back-top { font-size: 13px; color: var(--muted); }
.back-top span { margin-left: 6px; }

@media (max-width: 900px) {
  .wrap { width: 90%; }
  .header-row { min-height: 68px; gap: 18px; }
  .section-links { gap: 20px; }
  .hero { grid-template-columns: 1.2fr 1fr; column-gap: 2%; }
  .hero h1 { font-size: clamp(68px, 10vw, 90px); }
  .passages > span { font-size: 15px; }
  .passages > [lang="en"] { font-size: 16px; }
  .translation-inner { gap: 28px; }
  .wide-break { display: none; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 44px); }
  .header-row { display: flex; justify-content: space-between; min-height: 64px; }
  .section-links { display: none; }
  .wordmark { font-size: 27px; gap: 5px; }
  .wordmark img { width: 32px; height: 32px; }
  .account-links { gap: 14px; }
  .login { padding: 8px 12px; gap: 8px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 39px 27px; }
  .hero h1 { font-size: clamp(65px, 16.8vw, 102px); }
  .motto { font-size: clamp(40px, 10.9vw, 60px); }
  .philosophy { margin-top: 19px; }
  .passages > span { line-height: 1.8; }
  .passages > [lang="en"] { line-height: 1.52; }
  .language-switch { margin-top: 10px; }
  .hero-plate { width: min(71%, 270px); }
  .translation-inner { grid-template-columns: 1fr; gap: 34px; padding-block: 35px 43px; }
  .translation-copy h2, .features h2 { font-size: 31px; }
  .translation-copy > p { margin-top: 11px; }
  .get-started { margin-top: 19px; }
  .translation-sheet { justify-self: center; width: min(94%, 435px); padding: 20px 23px; }
  .translation-sheet blockquote { line-height: 1.08; }
  .example-break { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 23px; }
  .features { padding-block: 42px; }
  .features-intro { display: grid; gap: 8px; }
  .preview { height: 144px; }
  .mini-window { width: min(55%, 195px); }
  .feature-grid h3 { margin-top: 13px; }
  .footer .wordmark { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arrow { transition: none; }
}
