:root {
  --ink: #10272f;
  --muted: #687b78;
  --paper: #f7f8f2;
  --green: #426f64;
  --yellow: #f3c96b;
  --line: rgba(16, 39, 47, .13);
  --sans: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --serif: 'Songti SC', 'STSong', 'SimSun', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
header, .hero { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
header { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.brand img { display: block; width: 32px; height: 32px; border-radius: 8px; }

.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1fr 430px; align-items: center; gap: 90px; padding: 45px 0 85px; }
.hero-copy { max-width: 590px; }
.kicker { margin: 0 0 24px; color: var(--green); font-size: 12px; font-weight: 500; letter-spacing: .2em; }
h1 { margin: 0; font: 600 clamp(46px, 5vw, 64px)/1.14 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.lead { max-width: 465px; margin: 30px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; text-wrap: pretty; }
.actions { margin-top: 34px; display: flex; align-items: center; gap: 20px; }
.button { min-height: 50px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--ink); border-radius: 99px; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--green); }
.open-app { color: var(--muted); font-size: 12px; text-underline-offset: 3px; }
.meta { margin: 17px 0 0; color: #8a9996; font-size: 9px; line-height: 1.7; letter-spacing: .035em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.invite { width: min(390px, 100%); margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.5); }
.invite p { display: inline; margin: 0 12px 0 0; color: var(--muted); font-size: 11px; }
.invite strong { margin-right: 12px; color: var(--green); font: 600 16px ui-monospace, monospace; letter-spacing: .12em; }
.invite button { padding: 2px 0; border: 0; border-bottom: 1px solid currentColor; color: var(--green); background: none; cursor: pointer; font-size: 10px; }

.reader-preview { width: 390px; height: 525px; padding: 25px 30px; border: 1px solid #ddd8ca; border-radius: 24px; background: #f1ede2; box-shadow: 0 24px 55px rgba(16,39,47,.12); transform: rotate(2deg); }
.reader-bar { height: 55px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(16,39,47,.09); color: #4d504a; font-size: 14px; }
.reader-bar strong { font: 500 12px var(--serif); }
.reader-preview article { padding: 46px 18px; font-family: var(--serif); }
.reader-preview small { color: #938a79; letter-spacing: .16em; }
.reader-preview h2 { margin: 17px 0 30px; font-size: 22px; line-height: 1.6; }
.reader-preview p, .reader-preview mark { color: #5d594f; font-size: 13px; line-height: 2.2; }
.reader-preview mark { display: block; margin-top: 26px; background: linear-gradient(transparent 10%, rgba(243,201,107,.45) 10%, rgba(243,201,107,.45) 90%, transparent 90%); }
.progress { margin: 4px 18px 0; display: flex; align-items: center; gap: 10px; color: #978f80; font-size: 9px; }
.progress::before { content: ''; height: 2px; flex: 1; background: #d2cbbc; }
.progress i { position: absolute; width: 115px; height: 2px; background: var(--green); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 70px; text-align: center; }
  .hero-copy, .reader-preview, .invite { margin-inline: auto; }
  .actions { justify-content: center; }
}

@media (max-width: 520px) {
  header, .hero { width: calc(100% - 36px); }
  header { height: 70px; }
  .hero { min-height: calc(100vh - 70px); padding: 70px 0 80px; }
  .kicker { margin-bottom: 20px; }
  h1 { font-size: 40px; line-height: 1.16; letter-spacing: -.02em; }
  .lead { max-width: 340px; margin-top: 24px; font-size: 14px; line-height: 1.8; }
  .actions { flex-direction: column; gap: 16px; }
  .meta { line-height: 1.7; }
  .invite p { display: block; margin: 0 0 7px; }
  .reader-preview { width: 310px; height: 430px; padding: 18px 22px; }
  .reader-preview article { padding: 28px 13px; }
  .reader-preview h2 { margin: 12px 0 20px; font-size: 18px; }
  .reader-preview p, .reader-preview mark { font-size: 11px; }
}
