:root {
  color-scheme: light;
  --ink: #193c32;
  --body: #364e45;
  --muted: #52655a;
  --paper: #f6f3e9;
  --line: #c4cabe;
  --rust: #814022;
  --serif: "Baskervville", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-family: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--ink); text-underline-offset: .23em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.wrap { width: min(76rem, 100%); margin-inline: auto; padding-inline: max(clamp(1.15rem, 6vw, 4.8rem), env(safe-area-inset-left)) max(clamp(1.15rem, 6vw, 4.8rem), env(safe-area-inset-right)); }
.skip { position: absolute; z-index: 3; left: 1rem; top: -6rem; background: var(--paper); padding: .9rem; }
.skip:focus { top: 1rem; }
.masthead { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.masthead-inner, .brand, .enter { display: flex; align-items: center; }
.masthead-inner { justify-content: space-between; gap: .6rem; min-height: 4.25rem; }
.brand, .enter { text-decoration: none; min-height: 44px; }
.brand { gap: .55rem; font: 700 1.28rem var(--serif); letter-spacing: .06em; }
.enter { gap: .5rem; font-weight: 650; font-size: .94rem; }
.enter span { color: var(--rust); font-size: 1.25em; }
.enter:hover, .brand:hover { text-decoration: underline; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.9vw, 4.7rem); line-height: 1.14; letter-spacing: -.035em; }
h2 { font-size: clamp(1.63rem, 3.1vw, 2.6rem); line-height: 1.3; }
h3 { font-size: 1.05rem; line-height: 1.55; }
p { line-height: 1.75; color: var(--body); }
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(11rem, .72fr); align-items: center; gap: clamp(1.3rem, 6vw, 5rem); padding-block: clamp(2rem, 4.6vw, 4rem); }
.intro p { max-width: 33em; font-size: clamp(.98rem,1.4vw,1.13rem); margin-top: .88rem; }
.intro .install-app { margin-top: 1rem; }
.icon-example { position: relative; border-radius: .5rem; overflow: hidden; background: #21473b; }
.home-preview { display: grid; place-content: center; justify-items: center; gap: .28rem; min-height: 9.6rem; padding: 1rem 1rem 2.1rem; background: linear-gradient(30deg,#112d28a3,#142f2a18), url('/media/river-cover.webp') 77% center / cover; }
.home-preview img { border-radius: 23%; box-shadow: 0 2px 9px #0d201c70; }
.home-preview span { font-size: .72rem; font-weight: 650; color: white; text-shadow: 0 1px 3px #102b21; }
.icon-example figcaption { position: absolute; left: .72rem; bottom: .48rem; color: white; text-shadow: 0 1px 3px #102b21; font-size: .72rem; }
.devices { background: #e9ecdf; border-block: 1px solid var(--line); }
.devices-inner { display: flex; align-items: center; gap: clamp(.8rem, 3.8vw, 3rem); }
.devices a { display: inline-flex; align-items: center; gap: .4rem; min-height: 3.25rem; font-size: .92rem; text-decoration: none; font-weight: 650; }
.devices a::after { content: "↓"; color: var(--rust); }
.devices a:hover { text-decoration: underline; }
.content section { padding-block: clamp(2rem, 4.6vw, 3.8rem); scroll-margin-top: 1rem; }
.content section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: .45rem 1rem; flex-wrap: wrap; }
.platform { color: var(--rust); font-size: .86rem; font-weight: 650; }
.section-intro { margin-top: .55rem; font-size: .96rem; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem, 2.7vw, 2rem); list-style: none; padding: 0; margin: 1.65rem 0 0; counter-reset: action; }
.steps li { display: grid; grid-template-rows: auto 1fr auto; counter-increment: action; }
.steps h3 { display: flex; align-items: baseline; gap: .5rem; }
.steps h3::before { content: counter(action) "."; color: var(--rust); font-weight: 700; }
.steps p, .other-grid p, .storage p { margin-top: .46rem; font-size: .95rem; }
.diagram { min-height: 6.6rem; margin-top: .85rem; padding: .7rem; display: flex; align-items: center; justify-content: center; border: 1px solid #cdd5c9; border-radius: .38rem; background: #e6ebe2; }
.android-diagram { background: #e9e9dd; }
.mock { width: min(100%, 15.5rem); color: #222c27; background: #fcfcfa; border: 1px solid #c9d0c5; border-radius: .65rem; box-shadow: 0 2px 5px #12261b0d; font-size: .78rem; line-height: 1.25; }
.safari-toolbar, .chrome-bar, .setting, .confirm-head, .sheet-row { display: flex; align-items: center; gap: .5rem; }
.safari-toolbar, .chrome-bar { padding: .38rem .45rem; }
.url { flex: 1; min-width: 0; border-radius: .55rem; padding: .61rem .2rem; text-align: center; background: #ecf0ea; font-size: .78rem; }
.focus { border: 2px solid #8e542b; background: #fff1db; color: #352b21; font-weight: 650; }
.tool { display: grid; place-content: center; flex-shrink: 0; width: 2.35rem; height: 2.15rem; border-radius: .4rem; }
.share-symbol { position: relative; display: block; width: 16px; height: 13px; border: 1.6px solid; border-top: 0; border-radius: 2px; margin-top: 4px; }
.share-symbol::before { position: absolute; content: ""; width: 1.6px; height: 12px; background: currentColor; top: -6px; left: 5.5px; }
.share-symbol::after { position: absolute; content: ""; width: 6px; height: 6px; border-left: 1.6px solid; border-top: 1.6px solid; transform: rotate(45deg); top: -7px; left: 3px; }
.menu-dots { width: 4px; height: 4px; background: currentColor; border-radius: 50%; box-shadow: 0 6px currentColor, 0 -6px currentColor; }
.sheet, .menu, .options, .confirm { padding: .32rem; }
.sheet-row { min-height: 1.85rem; border-radius: .38rem; padding: .22rem .57rem; }
.sheet-row img, .confirm img { border-radius: .32rem; }
.plus-symbol { width: 1.05rem; height: 1.05rem; display: inline-grid; place-content: center; border: 1px solid; font-style: normal; line-height: 1; border-radius: .23rem; }
.muted { color: #5a645d; font-size: .75rem; }
.handle { display: block; height: 3px; width: 1.5rem; border-radius: 2rem; background: #b3bcb3; margin: 0 auto .18rem; }
.confirm-head, .setting { padding: .3rem .35rem; }
.confirm-head { border-bottom: 1px solid #e0e5dc; }
.ios-action { margin-left: auto; color: #124b77; font-weight: 650; }
.setting { justify-content: space-between; font-size: .73rem; }
.switch { display: block; flex-shrink: 0; width: 1.75rem; height: .98rem; padding: 2px; border-radius: 20px; background: #388154; }
.switch::after { content: ""; display: block; width: .73rem; height: .73rem; background: white; border-radius: 50%; margin-left: auto; }
.reference { margin-top: .75rem; font-size: .8rem; }
.reference a { color: var(--muted); }
.shortcut, .copy-box { background: #e9ecdf; border-left: 3px solid #a69162; }
.shortcut { margin-top: 1rem; padding: .8rem 1rem; font-size: .92rem; line-height: 1.7; }
.other-grid { margin-top: 1rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.25rem,5vw,4rem); align-items: start; }
.browser-example { margin-block: .65rem .9rem; }
.browser-example .diagram { margin-top: 0; }
.browser-example figcaption { color: var(--muted); margin-top: .3rem; font-size: .77rem; }
.in-app-menu { padding: .3rem; }
.in-app-bar { display: flex; align-items: center; justify-content: space-between; padding: .13rem .15rem .4rem .5rem; }
.more-horizontal { display: grid; place-content: center; min-width: 2.15rem; height: 1.5rem; border-radius: 2rem; font: 700 1.18rem/1 system-ui, sans-serif; letter-spacing: .04em; }
.open-arrow { display: grid; place-content: center; width: 1.05rem; height: 1.05rem; border: 1px solid; border-radius: .22rem; line-height: 1; }
.copy-box { padding: 1rem 1.15rem; min-width: 0; }
.copy-row { display: flex; gap: .45rem; align-items: stretch; margin-top: .7rem; }
.copy-row input { width: 100%; min-width: 0; border: 1px solid #a9b5a8; border-radius: .2rem; padding: .55rem .45rem; background: var(--paper); color: var(--ink); font: .84rem ui-monospace, monospace; }
.copy-row button { border: 1px solid var(--ink); color: white; background: var(--ink); border-radius: .2rem; padding: .3rem .7rem; font: inherit; font-size: .83rem; white-space: nowrap; cursor: pointer; min-height: 44px; }
.copy-feedback:empty { display: none; }
.copy-feedback { font-size: .84rem; }
.storage p { max-width: 49em; }
footer { background: #e9ecdf; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
footer .brand { font-size: 1.02rem; }
@media (max-width: 680px) {
  .intro { grid-template-columns: minmax(0,1fr) 5.1rem; align-items: start; gap: .78rem; }
  .intro h1 { font-size: clamp(1.8rem, 6.25vw, 2.6rem); }
  .intro p { margin-top: .65rem; font-size: .94rem; }
  .home-preview { min-height: 5.4rem; padding: .45rem .3rem .9rem; }
  .home-preview img { width: 2.65rem; height: 2.65rem; }
  .home-preview span { font-size: .6rem; }
  .icon-example figcaption { position: static; background: #254b3d; padding: .18rem .2rem; text-align: center; text-shadow: none; font-size: .66rem; }
  .devices-inner { justify-content: space-between; gap: .2rem; }
  .devices a { gap: .16rem; font-size: .86rem; }
  .steps, .other-grid { grid-template-columns: 1fr; }
  .steps { gap: 1.35rem; margin-top: 1.25rem; }
  .steps li { max-width: 34rem; }
  .diagram { min-height: 5.6rem; margin-top: .6rem; }
  .mock { width: min(100%, 18rem); }
  .other-grid { gap: 1rem; }
  .copy-row { flex-wrap: wrap; }
  .copy-row input { font-size: 1rem; min-height: 44px; }
  .masthead-inner { min-height: 3.7rem; }
}
@media (min-width: 681px) and (max-width: 850px) {
  .diagram { padding: .38rem; }
  .mock { font-size: .72rem; }
}
