:root {
  font-family: "Work Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 100%;
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body {
  margin: 0;
  --paper: #f7efdf;
  --ink: #392f29;
  --accent: #943c2e;
  --wash: #ebddc7;
  --rule: #a59a87;
  --on-accent: #fff6e6;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.theme-moon, .theme-sea-snow, .theme-fest-equinox { --paper: #142e3d; --ink: #f4e8cb; --accent: #ead096; --on-accent: #173242; --wash: #203e4b; --rule: #708585; }
.theme-leaf, .theme-sea-tea, .theme-fest-qingtuan { --paper: #f3f1dd; --ink: #253f33; --accent: #365d45; --wash: #e2e4ca; --rule: #85917a; }
.theme-stars, .theme-sea-thunder { --paper: #2b293b; --ink: #f0e6dc; --accent: #f1cba2; --on-accent: #362d3b; --wash: #393447; --rule: #867b86; }
.theme-ridge, .theme-sea-wheat, .theme-fest-wutong { --paper: #e9dfbd; --ink: #2b4037; --accent: #714832; --wash: #dfcfa8; --rule: #9a9276; }
.theme-plum, .theme-sea-rain, .theme-fest-persimmon { --paper: #e9ede6; --ink: #333e39; --accent: #943f41; --wash: #dbdfd5; --rule: #8a9286; }
.theme-bowl, .theme-sea-persimmon { --paper: #f9e9d6; --ink: #352e2a; --accent: #28545a; --wash: #efcfb3; --rule: #ab8a74; }
.theme-kite, .theme-sea-equinox, .theme-fest-egret { --paper: #e2ece3; --ink: #29443e; --accent: #7d493a; --wash: #cedcd0; --rule: #85978a; }
.theme-peony, .theme-fest-carnation { --paper: #f6e7e1; --ink: #452e35; --accent: #873f56; --wash: #e9d4cd; --rule: #a78a8b; }
.theme-lotus, .theme-fest-chrysanthemum { --paper: #193943; --ink: #f7e7d3; --accent: #e8bb98; --on-accent: #213e44; --wash: #244853; --rule: #738b8a; }
.theme-candy { --paper: #f1dfc7; --ink: #462e25; --accent: #864534; --wash: #e7c9a9; --rule: #ac8c75; }
.theme-grains, .theme-fest-chestnut { --paper: #634231; --ink: #fff3db; --accent: #f9d598; --on-accent: #503426; --wash: #76513e; --rule: #b59474; }
.theme-egg, .theme-sea-paddy, .theme-sea-radish { --paper: #ebeddb; --ink: #3b4435; --accent: #7e4837; --wash: #dce1c6; --rule: #929b80; }
.theme-fan, .theme-sea-egret, .theme-fest-narcissus { --paper: #dce9e1; --ink: #2b4540; --accent: #386151; --wash: #cbded0; --rule: #809b8c; }
.theme-dawn { --paper: #f5e7d7; --ink: #2c4141; --accent: #875040; --wash: #e6d5c2; --rule: #9c9282; }
.theme-paper, .theme-fest-classroom { --paper: #682d2d; --ink: #fbe9c9; --accent: #f4c584; --on-accent: #662e2b; --wash: #783835; --rule: #bd8e79; }
.paper-1 { background: var(--wash); }
.paper-2 { background-image: repeating-linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--ink) 4%, transparent) 40px, transparent 41px); }
.wrap { width: min(92%, 76rem); margin-inline: auto; }
a { color: inherit; }
button, summary, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; inset: .5rem auto auto .5rem; z-index: 3; transform: translateY(-160%); padding: .65rem; background: var(--ink); color: var(--paper); }
.skip:focus { transform: translateY(0); }
.mast { display: flex; min-height: 5rem; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--rule); padding-block: max(.6rem, env(safe-area-inset-top)) .6rem; }
.mast-name { display: flex; align-items: center; gap: .68rem; font: 600 1.36rem/1.3 var(--serif); letter-spacing: .09em; }
.mark { display: grid; place-content: center; background: var(--accent); color: var(--on-accent); width: 2.08rem; height: 2.08rem; border-radius: 2px 4px 2px 3px; transform: rotate(-3deg); }
.weave { display: grid; grid-template-columns: repeat(7,1fr); grid-template-rows: repeat(7,1fr); width: 1.32rem; height: 1.32rem; border: 1px solid currentColor; padding: .11rem; }
.weave i { background: currentColor; }
.mast nav { display: flex; gap: clamp(.5rem,2.1vw,1.7rem); }
.mast nav a, .footer .icp { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .35em; }
.mast nav a { text-decoration: none; font-size: .94rem; }
.mast nav a:hover, .mast nav a:focus { text-decoration: underline; }
.cover { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(2rem,5vw,5rem); padding: clamp(2rem,5vw,4.6rem) 0; }
.copy { min-width: 0; }
.season, .kicker { font-size: .94rem; margin: 0 0 1.2rem; }
.season { display: flex; align-items: center; gap: .85rem; }
.season span { font-weight: 650; color: var(--accent); padding-right: .85rem; border-right: 1px solid var(--rule); }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { margin: 0 0 1.4rem; font-size: clamp(3rem,5.5vw,5.8rem); line-height: 1.16; letter-spacing: .035em; }
h1 span { display: block; }
h1 span + span { color: var(--accent); }
.lede { margin: 0; max-width: 26rem; font-size: clamp(1rem,1.5vw,1.13rem); line-height: 1.95; }
.open-letter, .copy-wish { display: inline-flex; align-items: center; justify-content: center; gap: .62rem; min-height: 46px; cursor: pointer; padding: .66rem 1.12rem; border: 1px solid var(--accent); font-family: inherit; font-weight: 500; font-size: 1rem; line-height: 1.5; text-decoration: none; }
.open-letter { margin-top: 1.6rem; color: var(--on-accent); background: var(--accent); }
.open-letter:hover, .copy-wish:hover { box-shadow: 3px 3px 0 var(--rule); }
.open-letter:active, .copy-wish:active { transform: translateY(1px); }
.envelope { position: relative; display: inline-block; height: .76rem; width: 1.04rem; border: 1.5px solid currentColor; border-radius: 1px; overflow: hidden; }
.envelope::before { content: ""; position: absolute; width: .61rem; height: .61rem; left: calc(50% - .31rem); top: -.35rem; transform: rotate(45deg); border-bottom: 1.4px solid currentColor; border-right: 1.4px solid currentColor; }
.print-art { position: relative; min-width: 0; margin: 0; }
.print-art img { display: block; width: 100%; height: auto; aspect-ratio: 9/8; object-fit: cover; }
.print-art figcaption { margin: .65rem 0 0; font: 500 .9rem/1.6 var(--serif); letter-spacing: .2em; text-align: right; }
.print-art .cut-flower { position: absolute; width: clamp(3.9rem,26%,10rem); height: auto; right: 5%; bottom: 12%; filter: drop-shadow(0 2px 3px #2420184d); pointer-events: none; }
.layout-print .print-art { padding: .6rem; border: 1px solid var(--rule); box-shadow: .45rem .45rem 0 var(--wash); }
.layout-print .print-art img { max-height: 31rem; }
.layout-print .print-art figcaption { margin-right: .18rem; }
.layout-arch .cover, .layout-folio .cover, .layout-poem .cover, .layout-journal .cover { grid-template-columns: 1.08fr .92fr; }
.layout-arch .print-art, .layout-folio .print-art, .layout-poem .print-art, .layout-journal .print-art { grid-column: 1; grid-row: 1; }
.layout-arch .copy, .layout-folio .copy, .layout-poem .copy, .layout-journal .copy { grid-column: 2; grid-row: 1; }
.layout-arch .print-art { padding: .48rem; border: 1px solid var(--rule); border-radius: 53% 53% 0 0; }
.layout-arch .print-art img { border-radius: 52% 52% 0 0; }
.layout-arch .print-art figcaption { text-align: center; }
.layout-arch h1 { letter-spacing: .12em; }
.layout-folio .cover { border-bottom: 5px double var(--rule); margin-bottom: 1em; padding-inline: 2.8%; }
.layout-folio .print-art { padding: .75rem .75rem 1.4rem; background: var(--paper); border: 1px solid var(--rule); transform: rotate(-2deg); box-shadow: .42rem .42rem 0 var(--wash), .48rem .48rem 0 var(--rule); }
.layout-folio .print-art::before, .layout-folio .print-art::after { content: ""; position: absolute; width: 3.5rem; height: .85rem; background: var(--accent); opacity: .68; top: .55rem; left: -.65rem; transform: rotate(-41deg); }
.layout-folio .print-art::after { left: auto; top: auto; bottom: 1rem; right: -.6rem; transform: rotate(-43deg); }
.layout-folio .print-art figcaption { text-align: center; }
.layout-night .cover { gap: 0; grid-template-columns: 1fr 1.28fr; }
.layout-night .copy { background: var(--wash); padding: clamp(1.7rem,3.6vw,3.6rem); margin-right: -2.8rem; z-index: 1; border: 1px solid var(--rule); }
.layout-night .print-art img { aspect-ratio: 1.14; }
.layout-night .season { font-family: var(--serif); }
.layout-scroll .cover { display: flex; gap: clamp(2rem,4vw,4rem); }
.layout-scroll .copy { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; align-items: start; gap: .4rem 1.4rem; flex: .9; }
.layout-scroll h1 { align-self: stretch; grid-column: 1; grid-row: 1 / 4; margin: 0; writing-mode: vertical-rl; font-size: clamp(2.65rem,4.4vw,4.8rem); letter-spacing: .08em; }
.layout-scroll .season { flex-direction: column; gap: .1rem; align-items: flex-start; margin: .1rem 0 .4rem; }
.layout-scroll .season span { border: none; }
.layout-scroll .open-letter { margin-top: .4rem; justify-self: start; }
.layout-scroll .print-art { flex: 1.1; }
.layout-scroll .print-art img { aspect-ratio: 1.25; }
.layout-scroll .print-art { border-block: .55rem solid var(--accent); padding-block: .35rem; }
.layout-poem .cover { background: var(--wash); gap: 0; margin-block: 2rem; padding: 0; }
.layout-poem .copy { padding: clamp(1.5rem,3.5vw,4rem); }
.layout-poem .print-art { margin: 1rem 0 1rem 1rem; }
.layout-poem .print-art img { border-radius: 48% 48% .2rem .2rem / 24% 24% .2rem .2rem; }
.layout-poem .print-art figcaption { text-align: left; }
.layout-round .print-art { max-width: 35rem; justify-self: center; padding: .6rem; }
.layout-round .print-art img { aspect-ratio: 1; border-radius: 50%; outline: 1px solid var(--rule); outline-offset: .38rem; }
.layout-round .print-art figcaption { text-align: center; margin-top: 1.1rem; }
.layout-round .open-letter { border-radius: 3rem; }
.layout-journal .cover { align-items: stretch; gap: clamp(1.8rem,4vw,4rem); }
.layout-journal .copy { align-self: center; padding-block: 2rem; border-block: 4px double var(--rule); }
.layout-journal .print-art img { height: calc(100% - 2.1rem); min-height: 17rem; }
.layout-journal .print-art figcaption { text-align: left; }
.paper-1 .print-art figcaption { letter-spacing: .32em; }
.paper-2 .print-art img { filter: saturate(.81) contrast(1.07); }
.reading { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem,9vw,9rem); border-top: 1px solid var(--ink); padding: clamp(2rem,5vw,4.5rem) 0; }
.reading h2 { margin: 0 0 1rem; font-size: clamp(1.65rem,2.8vw,2.6rem); line-height: 1.3; }
.kicker { color: var(--accent); font-weight: 650; letter-spacing: .08em; margin: 0 0 .65rem; }
.custom > p:last-child, .message { margin: 0; font-size: 1.04rem; line-height: 1.9; }
.letters { margin-top: 1.15rem; border-bottom: 1px solid var(--rule); }
.letter { border-top: 1px solid var(--rule); }
.letter summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 50px; padding: .68rem .2rem; list-style: none; cursor: pointer; font-weight: 600; }
.letter summary::-webkit-details-marker { display: none; }
.toggle { position: relative; width: .9rem; height: .9rem; margin-right: .2rem; }
.toggle::before, .toggle::after { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; border-top: 2px solid currentColor; }
.toggle::after { transform: rotate(90deg); }
.letter[open] .toggle::after { transform: rotate(0); }
.letter[open] .letter-body { padding: 0 .25rem 1.05rem; }
.copy-wish { margin-top: .75rem; color: var(--accent); background: transparent; border-radius: 2px; font-family: inherit; font-size: .94rem; }
[hidden] { display: none !important; }
.copy-status { margin: .45rem 0 0; font-size: .94rem; }
.copy-status:empty { display: none; }
.footer { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; justify-content: center; align-items: center; border-top: 1px solid var(--rule); padding: 1rem 0 max(1.65rem, env(safe-area-inset-bottom)); font-size: .94rem; text-align: center; }
.footer .domain { overflow-wrap: anywhere; }
.footer .icp { flex-basis: 100%; justify-content: center; overflow-wrap: anywhere; }
@media (max-width: 60rem) and (min-width: 45.01rem) {
  .layout-scroll .copy { display: block; }
  .layout-scroll h1 { writing-mode: horizontal-tb; margin: .8rem 0 1rem; }
  .layout-scroll .season { flex-direction: row; gap: .75rem; }
}
@media (max-width: 45rem) {
  .wrap { width: min(89%, 34rem); }
  .mast { min-height: 4.45rem; gap: .5rem; }
  .mast-name { font-size: 1.09rem; gap: .45rem; letter-spacing: .025em; }
  .mark { width: 1.68rem; height: 1.68rem; }
  .weave { width: 1.1rem; height: 1.1rem; }
  .mast nav { gap: .7rem; }
  .mast nav a { font-size: .875rem; }
  .cover, .layout-print .cover, .layout-arch .cover, .layout-folio .cover, .layout-night .cover, .layout-scroll .cover, .layout-poem .cover, .layout-round .cover, .layout-journal .cover { display: flex; flex-direction: column; align-items: stretch; gap: 1.45rem; padding: 1.65rem 0; }
  h1 { font-size: clamp(2.65rem,11.8vw,4.5rem); line-height: 1.15; margin-bottom: .85rem; }
  .season { margin: 0 0 .8rem; font-size: .9rem; }
  .lede { font-size: 1rem; line-height: 1.8; }
  .open-letter { margin-top: 1rem; }
  .print-art img, .layout-night .print-art img, .layout-journal .print-art img { height: auto; aspect-ratio: 1.62; min-height: 0; }
  .layout-arch .print-art { order: -1; align-self: center; width: 86%; }
  .layout-arch .print-art img { aspect-ratio: 1.64; }
  .layout-arch .copy { text-align: center; }
  .layout-arch .lede { margin-inline: auto; }
  .layout-arch .season { justify-content: center; }
  .layout-arch h1 span { display: inline; font-size: .74em; letter-spacing: .025em; }
  .layout-arch .print-art figcaption { display: none; }
  .layout-folio .print-art { order: -1; margin-inline: .4rem; padding-bottom: .5rem; }
  .layout-folio .print-art img { aspect-ratio: 1.95; }
  .layout-night .cover { gap: 0; }
  .layout-night .print-art { order: -1; }
  .layout-night .copy { margin: -1.3rem .65rem 0; padding: 1.25rem; }
  .layout-night .print-art figcaption { display: none; }
  .layout-scroll .copy { grid-template-columns: minmax(3rem, auto) 1fr; gap: .3rem .9rem; }
  .layout-scroll h1 { font-size: clamp(2rem,8.8vw,3.3rem); }
  .layout-scroll .print-art img { aspect-ratio: 1.95; }
  .layout-poem .cover { padding: .65rem; margin-block: 1.2rem; gap: .5rem; }
  .layout-poem .print-art { margin: 0; order: -1; }
  .layout-poem .print-art img { aspect-ratio: 1.9; }
  .layout-poem .copy { padding: .6rem .5rem 1rem; }
  .layout-poem .print-art figcaption { display: none; }
  .layout-round .cover { text-align: center; }
  .layout-round .print-art { width: min(75%,19rem); margin-inline: auto; order: -1; }
  .layout-round .season { justify-content: center; }
  .layout-round .lede { margin-inline: auto; }
  .layout-round .print-art img { aspect-ratio: 1; }
  .layout-round .print-art figcaption { display: none; }
  .layout-journal .copy { padding-block: 1rem; }
  .layout-journal .print-art { order: -1; align-self: stretch; }
  .layout-journal .print-art img { aspect-ratio: 1.95; }
  .reading { display: flex; flex-direction: column; gap: 2rem; padding: 2rem 0; }
  .footer { gap: .2rem .8rem; }
  .footer .icp { flex-basis: 100%; margin: 0; }
}
@media (max-width: 22rem) {
  .wrap { width: 91%; }
  .mast { flex-wrap: wrap; gap: 0 .3rem; }
  .mast nav { gap: .5rem; }
  .layout-arch h1 span { display: block; font-size: .92em; }
}
@media (min-width: 45.01rem) and (prefers-reduced-motion: no-preference) {
  .open-letter, .copy-wish { transition: box-shadow .16s ease, transform .16s ease; }
}
