:root {
  color-scheme: light;
  --paper: #f8f8f4;
  --ink: #263640;
  --muted: #54646a;
  --blue: #416687;
  --blue-deep: #24465f;
  --line: #daddd7;
  --white: #fdfdfa;
  --photo: #d6e0e7;
  --night-photo: 1;
  --route-blue: #edf2f5;
  --route-green: #edf1eb;
  --route-purple: #f2eff5;
  --rule: #cdd9e0;
  --sea: #45685f;
  --lilac: #64557b;
  --button: #284b65;
  --button-ink: #fff;
  --shadow: 0 28px 84px #26364024;
  --serif: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

html[data-theme="night"] {
  color-scheme: dark;
  --paper: #18232b;
  --ink: #e5ebec;
  --muted: #b3c0c5;
  --blue: #adc9e3;
  --blue-deep: #c3d8ea;
  --line: #3a4951;
  --white: #212e37;
  --photo: #293b4a;
  --night-photo: .77;
  --route-blue: #233644;
  --route-green: #253733;
  --route-purple: #312e40;
  --rule: #536b7c;
  --sea: #b4d0c3;
  --lilac: #d0bee5;
  --button: #b1cde3;
  --button-ink: #172c3c;
  --shadow: 0 28px 84px #050b1170;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
section[id] { scroll-margin-top: 1.6rem; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.skip-link { position: fixed; left: 1rem; top: 1rem; transform: translateY(-200%); opacity: 0; pointer-events: none; z-index: 10; padding: .55rem 1rem; background: var(--white); }
.skip-link:focus { transform: translateY(0); opacity: 1; pointer-events: auto; }

.site-header { min-height: 88px; display: flex; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 2.05rem/.9 var(--display); letter-spacing: -.055em; padding-block: .25rem .5rem; color: var(--blue-deep); margin-right: auto; }
.brand-dot { color: var(--blue); }
.petal { --petal-size: 20px; display: inline-block; width: var(--petal-size); height: var(--petal-size); flex: 0 0 var(--petal-size); background: currentColor; mask: url("assets/petal.png") center / contain no-repeat; }
.brand .petal { --petal-size: 25px; color: var(--blue); transform: rotate(-13deg); margin-top: .2rem; }
.site-header nav { display: flex; gap: clamp(1.6rem, 3vw, 3.1rem); font-size: .9rem; color: var(--muted); }
.site-header nav a { padding: .45rem 0; white-space: nowrap; }
.site-header nav a:hover, .back-top:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .35em; }
.round { border: 1px solid var(--line); background: transparent; display: grid; place-items: center; border-radius: 50%; width: 42px; height: 42px; color: var(--blue-deep); flex: 0 0 auto; }
.round:hover { background: var(--route-blue); }
.round .icon { width: 19px; height: 19px; }

.hero { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.18fr); align-items: center; gap: clamp(22px, 4.4vw, 72px); padding: clamp(34px, 4.15vw, 67px) 0 0; }
.hero-copy { padding: .7rem 0 .7rem clamp(0px, 2vw, 35px); }
.eyebrow { font-size: .76rem; font-weight: 600; color: var(--blue); letter-spacing: .22em; line-height: 1.5; }
.hero h1 { margin: 1.5rem 0 1.5rem -.075em; font: 600 clamp(3.5rem, 5.7vw, 6.25rem)/1.14 var(--serif); letter-spacing: -.085em; white-space: nowrap; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-description { font-size: clamp(.98rem, 1.22vw, 1.1rem); color: var(--muted); line-height: 1.9; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; border: 1px solid transparent; border-radius: 999px; padding: .68rem 1.2rem; min-height: 44px; background: var(--button); color: var(--button-ink); font-weight: 600; font-size: .91rem; transition: opacity .18s, transform .18s; }
.primary:hover { opacity: .87; transform: translateY(-1px); }
.explore { margin-top: 1.65rem; padding-inline: 1.36rem; }
.explore .petal { --petal-size: 15px; opacity: .85; }
.hero-photo { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1.28; border-radius: 4px 38px 4px 4px; overflow: hidden; background: var(--photo); }
.hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 59% center; filter: brightness(var(--night-photo)); }
.hero-photo::after { position: absolute; inset: 13px; border: 1px solid #f9fcfe82; border-radius: 2px 29px 2px 2px; content: ""; pointer-events: none; }
.hero-photo figcaption { position: absolute; background: #ebf1f1e8; color: #334c60; bottom: 26px; left: 25px; font: .79rem/1.5 var(--display); padding: .36rem .63rem; letter-spacing: .035em; border-radius: 3px; }
.hero-photo figcaption span { margin-inline: .2rem; }
.photo-petal { position: absolute; z-index: 1; right: 24px; bottom: 24px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #f5f9fcad; border-radius: 50%; color: #34546e; background: #eaf0f1d9; transition: transform .22s, background .22s; }
.photo-petal:hover { transform: rotate(18deg); background: #fff; }
.photo-petal .petal { --petal-size: 19px; }

.garden-desk, .directory { margin-top: clamp(3rem, 6.1vw, 5.7rem); }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.09fr); gap: 15px; }
.daily-page, .story-feature { min-width: 0; border-radius: 5px 24px 5px 5px; }
.daily-page { display: flex; align-items: flex-start; flex-direction: column; border: 1px solid var(--rule); background: var(--route-blue); padding: clamp(1.15rem, 3.1vw, 2.4rem); }
.daily-page-meta { display: flex; align-items: center; justify-content: space-between; gap: .65rem; width: 100%; padding-bottom: .65rem; border-bottom: 1px solid var(--rule); color: var(--blue-deep); font-size: .89rem; }
.daily-page-meta time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.daily-page h3, .story-feature h3 { font: 700 clamp(1.65rem, 3.25vw, 2.5rem)/1.18 var(--serif); letter-spacing: -.04em; }
.daily-page h3 { color: var(--blue-deep); margin: 1.1rem 0 .65rem; }
.daily-page > p { color: var(--muted); margin-bottom: .85rem; }
.daily-page-link { display: inline-flex; align-items: center; min-height: 42px; margin-top: auto; color: var(--blue-deep); text-decoration: underline; text-underline-offset: .35em; }
.daily-page-link:hover { color: var(--blue); }
.story-feature { position: relative; isolation: isolate; min-height: 285px; display: flex; align-items: flex-end; overflow: hidden; background: #162633; color: #f4f6f7; }
.story-feature img, .story-feature::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.story-feature img { object-fit: cover; object-position: 64% 54%; transition: transform .35s; }
.story-feature::after { content: ""; background: linear-gradient(90deg, #0a1826e6, #14253294 51%, #0a18261a 95%), linear-gradient(0deg, #101f30b5, transparent 60%); }
.story-feature:hover img { transform: scale(1.035); }
.story-feature-copy { padding: clamp(1.15rem, 3.1vw, 2.4rem); max-width: 25rem; }
.story-feature h3 { margin-block: .5rem .6rem; }
.story-feature-copy p { color: #e0e8ee; }
.story-feature-copy p:first-child { font-size: .88rem; }
.story-feature-action { display: inline-flex; align-items: center; margin-top: .9rem; min-height: 38px; border: 1px solid #e0e8ee7a; padding: .15rem .75rem; border-radius: 999px; font-size: .88rem; }
.story-feature:hover .story-feature-action { background: #e0e8ee20; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.05rem; }
.section-heading h2 { font: 600 clamp(1.7rem, 2.6vw, 2.4rem)/1.3 var(--serif); letter-spacing: -.04em; }
.section-heading > span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.section-heading > span[lang="en"] { font: italic 1.05rem/1.2 var(--display); }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.route { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 153px; gap: 12px; border: 1px solid transparent; padding: 22px clamp(15px, 2.05vw, 30px); border-radius: 5px 21px 5px 5px; transition: border-color .2s, transform .2s; }
.route:hover { border-color: currentColor; transform: translateY(-3px); }
.route-notes { background: var(--route-blue); color: var(--blue-deep); }
.route-tools { background: var(--route-green); color: var(--sea); }
.route-play { background: var(--route-purple); color: var(--lilac); }
.route-label > span { font: italic 1.04rem/1 var(--display); }
.route h3 { margin: .45rem 0 .35rem; font: 700 1.45rem/1.25 var(--serif); color: var(--ink); }
.route p { color: var(--muted); font-size: .875rem; }
.route-icon { display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; width: clamp(51px, 5.4vw, 76px); aspect-ratio: 1; flex: 0 0 auto; opacity: .75; }
.route-icon .icon { width: 58%; height: 58%; }

.collection { margin-top: clamp(3rem, 6.3vw, 6rem); }
.collection .section-heading { padding-bottom: .8rem; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.note-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.18rem .35rem; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; }
.note-row:hover, .mini-card:hover { background: var(--route-blue); }
.note-row strong { display: block; font: 700 1.28rem/1.4 var(--serif); }
.note-row small, .mini-card small { display: block; color: var(--muted); font-size: .9rem; margin-top: .22rem; }
.note-time { color: var(--blue); font-size: .85rem; }
.workbench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 4vw, 4rem); }
.mini-card { border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; padding: 1.05rem .35rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .87rem; align-items: center; text-align: left; }
.mini-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.sea { background: var(--route-green); color: var(--sea); }
.lilac { background: var(--route-purple); color: var(--lilac); }
.mini-icon .petal { --petal-size: 17px; }
.mini-card strong { font-size: 1rem; }
.mini-action { font-size: .84rem; color: var(--blue); white-space: nowrap; }
.mailroom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(3.5rem, 6.8vw, 7rem); padding: clamp(1.2rem, 3.1vw, 2.5rem); background: var(--route-blue); border: 1px solid var(--rule); border-radius: 5px 23px 5px 5px; }
.mailroom-copy { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.5rem); }
.mailroom-mark { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--rule); color: var(--blue); background: var(--white); }
.mailroom-copy h2 { font: 600 clamp(1.45rem, 2.4vw, 2.1rem)/1.3 var(--serif); }
.mailroom-copy p { color: var(--muted); margin-top: .35rem; }
.mailroom-action { flex-shrink: 0; padding-inline: 1.4rem; }
.footer { margin-top: clamp(2.2rem, 4.3vw, 4rem); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .9rem 1rem; padding: 1.7rem 0 2.4rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.footer > div { display: flex; align-items: center; gap: .85rem; }
.footer-brand { font: 600 1.18rem/1 var(--display); color: var(--blue-deep); }
.footer-divider { width: 1px; height: .95rem; background: var(--line); }
.footer-email { color: var(--blue-deep); overflow-wrap: anywhere; }
.footer-email:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-filing { flex: 1 0 100%; text-align: center; }
.footer-filing a:hover { text-decoration: underline; text-underline-offset: .3em; }
.noscript { width: min(90%, 720px); margin: 0 auto 2rem; }

dialog { padding: 0; width: min(540px, calc(100% - 28px)); max-height: calc(100% - 28px); border-radius: 12px 31px 12px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); box-shadow: var(--shadow); overscroll-behavior: contain; }
dialog::backdrop { background: #14232b78; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-card { padding: clamp(1.1rem, 5vw, 2.3rem); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.dialog-header h2 { margin-top: .33rem; font: 700 clamp(1.6rem, 5vw, 2.3rem)/1.3 var(--serif); }
.dialog-header h2:focus { outline: none; }
.dialog-text { color: var(--muted); }
.article > p { margin-top: 1rem; line-height: 1.95; }
.article > .article-lede { color: var(--muted); padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.letter { padding: 1.25rem; background: var(--route-blue); border: 1px solid var(--rule); border-radius: 5px 18px 5px 5px; }
.letter p + p { margin-top: .8rem; }
.letter .petal { --petal-size: 32px; color: var(--blue); margin-bottom: .7rem; }
.letter-form label { display: block; min-width: 0; font-size: .94rem; }
.letter-form label span { margin-inline-start: .28rem; color: var(--muted); font-size: .8rem; }
.letter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 .9rem; }
.letter-fields input { display: block; width: 100%; margin-top: .32rem; min-height: 44px; padding: .45rem .65rem; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.letter-form .text-area { margin: .32rem 0 .75rem; }
.letter-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.letter-count, .letter-feedback { color: var(--muted); font-size: .88rem; }
.letter-feedback:not(:empty) { margin-top: .55rem; }
.letter-form .primary:disabled { opacity: .65; cursor: default; }
.letter-trap { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
.letter-receipt h3 { font: 700 1.25rem/1.4 var(--serif); margin-bottom: .35rem; }
.letter-receipt h3:focus { outline: none; }
.inbox { max-width: 760px; }
.inbox-header { padding: 2.8rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.inbox-header h1 { margin-top: 1rem; font: 700 clamp(1.7rem, 5vw, 2.7rem)/1.35 var(--serif); }
.inbox-header p { margin-top: .45rem; color: var(--muted); }
.inbox-entry { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.inbox-entry h2 { font-size: 1.08rem; }
.inbox-meta { display: flex; flex-wrap: wrap; column-gap: .95rem; align-items: baseline; }
.inbox-meta time, .inbox-empty { color: var(--muted); }
.inbox-entry p { margin-top: .55rem; white-space: pre-wrap; }
.inbox-entry h2, .inbox-entry p { overflow-wrap: anywhere; }
.inbox-link { color: var(--blue); text-decoration: underline; text-underline-offset: .25em; }
.inbox-nav, .inbox-empty { padding-block: 1.5rem; }
.inbox-nav { display: flex; gap: 1.3rem; }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; min-inline-size: 0; }
legend { padding: 0; color: var(--muted); font-size: .88rem; }
.pills, .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.pills { justify-content: flex-start; margin-top: .35rem; }
.secondary { background: var(--white); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .52rem .9rem; min-height: 42px; font-size: .88rem; }
.secondary:hover, .secondary[aria-pressed="true"] { border-color: var(--blue); background: var(--route-blue); }
.secondary:disabled { opacity: .55; cursor: default; }
.timer { text-align: center; font: 400 clamp(3.8rem, 14vw, 6.6rem)/1.3 var(--display); color: var(--blue-deep); letter-spacing: -.06em; font-variant-numeric: tabular-nums lining-nums; margin: .45rem 0 .85rem; }
.tool-status { color: var(--blue); text-align: center; margin-top: .75rem; min-height: 1.6em; }
.text-area { display: block; width: 100%; min-height: 154px; resize: vertical; border-radius: 9px; border: 1px solid var(--rule); padding: .8rem; background: var(--paper); margin: .7rem 0 1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: 0 0 1rem; }
.stats > div { background: var(--route-blue); border-radius: 6px; padding: .55rem .35rem; text-align: center; }
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd { margin: 0; color: var(--blue-deep); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.text-options, .text-actions { display: flex; flex-wrap: wrap; gap: .45rem .7rem; }
.text-options { margin: .5rem 0 .9rem; }
.text-options label { display: inline-flex; align-items: center; gap: .3rem; font-size: .87rem; }
.text-options input { accent-color: var(--blue); }
.text-actions { gap: .42rem; }
.text-feedback { margin-top: .5rem; font-size: .89rem; color: var(--muted); }
.text-feedback:empty { display: none; }
.text-actions .primary:disabled { opacity: .55; cursor: default; transform: none; }
.game-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem auto; max-width: 360px; }
.bloom-board { grid-template-columns: repeat(3, 1fr); max-width: 270px; }
.tile { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 9px 17px 9px 9px; background: var(--route-blue); color: var(--blue); font-size: clamp(1.2rem, 6vw, 2rem); transition: background .2s, transform .2s; }
.tile:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-2px); border-color: var(--blue); }
.tile.is-open { background: var(--route-purple); }
.tile.is-match, .tile[aria-pressed="true"] { background: var(--route-green); color: var(--sea); }
.tile .petal { --petal-size: 19px; }
.tile.is-match { cursor: default; }
.tile.is-match span { opacity: .75; }
.game-foot { justify-content: space-between; align-items: center; }
.flower-mark { line-height: 1; }
.flower-mark.blue { color: var(--blue); }
.flower-mark.green { color: var(--sea); }
.flower-mark.lilac { color: var(--lilac); background: none; }
.status-count { color: var(--muted); font-size: .89rem; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .hero h1 { font-size: clamp(3.4rem, 6.25vw, 5.6rem); }
  .route { padding-inline: 17px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .site-header { min-height: 70px; gap: 22px; }
  .hero { gap: 18px; }
  .hero h1 { font-size: clamp(2.45rem, 6.6vw, 4.1rem); margin-block: 1.05rem; }
  .hero-copy { padding-inline: 0; }
  .desktop-break { display: none; }
  .hero-photo { aspect-ratio: 1.06; }
  .routes { gap: 8px; }
  .route-icon { width: 42px; }
  .route { padding-inline: 12px; min-height: 132px; }
  .route h3 { font-size: 1.23rem; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 65px; gap: 12px; }
  .site-header nav { gap: clamp(.45rem, 2.4vw, 1rem); font-size: .85rem; }
  .brand { font-size: 1.55rem; gap: 5px; }
  .brand .petal { --petal-size: 17px; }
  .round { width: 38px; height: 38px; }
  .hero { grid-template-columns: 1fr; gap: 1.55rem; padding-top: 2.2rem; }
  .hero-copy { padding: .1rem .25rem 0; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.65rem); margin-block: .85rem 1rem; }
  .explore { margin-top: 1.1rem; }
  .hero-photo { aspect-ratio: 1.53; border-top-right-radius: 28px; }
  .hero-photo::after { inset: 9px; border-top-right-radius: 21px; }
  .hero-photo figcaption { bottom: 16px; left: 16px; }
  .photo-petal { bottom: 14px; right: 14px; }
  .routes, .workbench { grid-template-columns: 1fr; }
  .workbench { gap: 0; }
  .route { min-height: 111px; padding: .85rem 1rem; }
  .route-icon { width: 55px; }
  .desk-grid { grid-template-columns: 1fr; gap: .75rem; }
  .story-feature { min-height: 245px; }
  .directory { margin-top: 2.5rem; }
  .mailroom { align-items: start; flex-direction: column; gap: .8rem; }
  .mailroom-mark { width: 44px; height: 44px; }
  .footer-email { margin-right: auto; }
  .footer { padding-bottom: 1.6rem; }
}
@media (max-width: 380px) {
  .letter-fields { grid-template-columns: 1fr; gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
[hidden] { display: none !important; }
