:root {
  color-scheme: light;
  --paper:#f7f6ef; --surface:#fdfcf7; --ink:#232f26; --green:#294838; --muted:#586258; --red:#984334; --line:#d8dacd; --soft:#e9ede2;
  --serif:"Songti SC","Noto Serif CJK SC","Source Han Serif SC","STSong","SimSun",Georgia,serif;
  --sans:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}
* { box-sizing:border-box }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--paper); color:var(--ink); font:1rem/1.7 var(--sans); -webkit-font-smoothing:antialiased }
button,a { -webkit-tap-highlight-color:transparent }
button,input,select { font:inherit }
a { color:inherit; text-decoration:none }
button { cursor:pointer; color:inherit }
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible { outline:2px solid var(--red); outline-offset:4px }
button { border:0; background:none }
[hidden] { display:none!important }
h1,h2,h3,h4,p,figure,blockquote { margin:0 }
img { display:block; width:100%; height:auto }
main { flex:1; outline:0 }
.wrap { width:min(1296px,calc(100% - clamp(48px,8.5vw,152px))); margin-inline:auto }
.skip { position:fixed; top:-90px; left:16px; z-index:10; background:var(--green); color:white; padding:10px }
.skip:focus { top:6px }
.ico { display:inline-block; width:1.25em; height:1.25em; vertical-align:-.23em; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; flex:none }
.mast { border-bottom:1px solid var(--line) }
.mast-inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px }
.brand { display:inline-flex; gap:11px; align-items:center; white-space:nowrap; color:var(--ink) }
.seal { width:43px; height:43px; border-radius:7px 5px 7px 5px; color:#fff6e6; background:#9d4234; display:grid; place-items:center; font:700 29px/1 var(--serif) }
.brand strong,.brand small { display:block }
.brand strong { font:700 1.28rem/1.22 var(--serif); letter-spacing:.1em }
.brand small { font:650 .63rem/1.5 var(--sans); color:var(--muted); letter-spacing:.13em; margin-top:2px }
.plain,.preview-link,.text-action { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-size:.91rem; font-weight:550; color:var(--green); padding:6px 0 }
.plain:hover,.preview-link:hover,.text-action:hover { text-decoration:underline; text-underline-offset:5px }
.mast-aside { color:var(--muted) }
.entry { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(290px,.77fr); gap:clamp(44px,6.5vw,110px); align-items:center; padding-block:clamp(34px,5.2vh,78px); min-height:calc(100svh - 158px) }
.plate { min-width:0 }
.photo { position:relative; isolation:isolate; overflow:hidden; border-radius:3px; background:#77806a }
.photo img { height:clamp(410px,61vh,690px); min-height:min(42vw,535px); object-fit:cover; object-position:50% 53% }
.photo::after { content:""; position:absolute; inset:0; background:linear-gradient(23deg,rgba(15,26,18,.72),transparent 55%); pointer-events:none }
.photo-words { position:absolute; z-index:1; left:clamp(22px,3.2vw,55px); bottom:clamp(26px,4.2vw,64px); color:#fffcf1; text-shadow:0 1px 8px #1e201e50 }
.photo-rule { display:block; width:34px; height:2px; margin-bottom:18px; background:#f0e1bc }
.photo-words p { font:650 clamp(2rem,3.25vw,3.35rem)/1.42 var(--serif); letter-spacing:.065em }
.plate-caption,.caption-copy,.plate-nav { display:flex; align-items:center }
.plate-caption { justify-content:space-between; padding:14px 1px 0; gap:18px }
.caption-copy { gap:16px }
.caption-index { color:var(--red); font:550 .8rem/1.3 ui-monospace,monospace; letter-spacing:.07em; white-space:nowrap }
.caption-name { border-left:1px solid var(--line); padding-left:15px; font:600 1.03rem/1.2 var(--serif); letter-spacing:.12em }
.plate-nav { gap:8px }
.round { width:36px; height:36px; display:inline-grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--green); padding:0 }
.round:hover { background:var(--soft); border-color:#a7b7a5 }
.round .ico { width:16px; height:16px }
.entry-panel { width:100%; max-width:395px; padding-bottom:clamp(6px,2.7vh,32px) }
.kicker { display:flex; align-items:center; gap:10px; color:var(--red); font-size:.81rem; font-weight:650; letter-spacing:.16em }
.kicker i { height:2px; width:28px; background:var(--red) }
h1,h2,h3 { font-family:var(--serif) }
.entry h1 { margin:14px 0 17px; font-size:clamp(2.6rem,4.05vw,4.25rem); line-height:1.25; letter-spacing:.035em; color:#293e30; font-weight:700 }
.intro { color:var(--muted); font-size:1.04rem; line-height:1.95; letter-spacing:.035em }
.login-button,.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; gap:10px; border-radius:6px; min-height:44px; padding:9px 19px; font-weight:600; font-size:.96rem }
.login-button,.primary { color:#fffef6; background:var(--green) }
.login-button { width:100%; margin-top:32px; min-height:52px; font-size:1.04rem; letter-spacing:.075em }
.login-button:hover,.primary:hover { background:#395f47 }
#family-login { margin-top:22px }
.login-field + .login-field { margin-top:16px }
.login-field-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:6px }
.login-field-heading label { font-size:.94rem; font-weight:600 }
.login-field-heading span { font-size:.88rem; color:var(--muted) }
.login-field input { display:block; width:100%; min-height:48px; padding:9px 13px; border:1px solid #909c8f; border-radius:6px; color:var(--ink); background:var(--surface) }
.login-field input:focus-visible { outline:2px solid var(--green); outline-offset:2px }
.login-message { font-size:.88rem; margin-top:6px; color:var(--red) }
.login-message:empty { display:none }
#family-login .login-button { margin-top:15px }
.login-button:disabled { opacity:.7; cursor:wait }
.auth-note { text-align:center; font-size:.81rem; color:var(--muted); margin-top:9px }
.preview-link { display:flex; width:max-content; margin:16px auto 0 }
.mini-link { display:flex; align-items:center; width:100%; gap:12px; margin-top:32px; padding:21px 0 0; border-top:1px solid var(--line); text-align:left }
.mini-icon,.icon-tile { background:#e6eadf; color:var(--green); display:grid; width:41px; height:41px; place-items:center; flex:none; border-radius:9px }
.mini-link strong,.mini-link small { display:block }
.mini-link strong { font-size:.94rem; font-weight:600 }
.mini-link small { color:var(--muted); font-size:.8rem }
.mini-link:hover strong { text-decoration:underline; text-underline-offset:4px }
.mini-chevron { margin-left:auto; color:var(--muted) }
.foot { border-top:1px solid var(--line); color:var(--muted); font-size:.81rem }
.foot>.wrap,.foot-actions { display:flex; justify-content:space-between; align-items:center; gap:18px }
.foot>.wrap { min-height:70px }
.foot b { font-weight:400; color:#929789; margin-inline:4px }
.foot .plain { font-size:.81rem; color:var(--muted); font-weight:400 }
.foot-actions>span { letter-spacing:.06em }
#main-nav { display:flex; align-items:center; gap:6px }
#main-nav a,.tab { padding:6px 13px; font-size:.91rem; color:var(--muted); border-radius:5px; white-space:nowrap }
#main-nav a[aria-current],.tab[aria-pressed=true] { color:var(--green); background:var(--soft); font-weight:700 }
#main-nav a:hover,.tab:hover { background:#eef0e7 }
.inside { padding-block:33px 62px; max-width:1240px }
.crumb { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--muted); font-size:.8rem; margin-bottom:22px }
.crumb a { text-decoration:underline; text-underline-offset:3px }
.crumb .demo { color:var(--red); padding-right:10px; border-right:1px solid var(--line) }
.home-hero { display:grid; grid-template-columns:1fr 1.08fr; align-items:center; gap:clamp(32px,5.5vw,85px) }
.home-hero h1,.page-head h1 { color:var(--green); font-size:clamp(2.15rem,4.2vw,4rem); line-height:1.25; margin:10px 0 14px; letter-spacing:.025em }
.home-hero h1 span { color:var(--ink) }
.home-hero p:not(.kicker),.page-head p,.muted { color:var(--muted) }
.home-hero figure,.image-card { overflow:hidden; position:relative; border-radius:8px }
.home-hero img { aspect-ratio:1.85; object-fit:cover }
.home-hero figcaption { position:absolute; bottom:0; padding:24px 18px 10px; width:100%; background:linear-gradient(transparent,#18201cce); color:white; font:600 1rem/1.5 var(--serif); letter-spacing:.1em }
.actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:21px }
.secondary { border:1px solid var(--line); color:var(--green); background:var(--surface) }
.secondary:hover { border-color:#a4b29f; background:var(--soft) }
.section-head { display:flex; align-items:baseline; justify-content:space-between; margin:32px 0 13px; gap:10px }
.section-head h2,.detail h2 { font-size:1.52rem; letter-spacing:.04em; line-height:1.5 }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px }
.grid.two { grid-template-columns:repeat(2,minmax(0,1fr)) }
.card,.detail { border:1px solid var(--line); border-radius:9px; background:var(--surface); padding:21px 23px; min-width:0 }
.card.link:hover,.image-card:hover { border-color:#a3b49e; background:#f0f2e8 }
.card h3,.image-card h3 { font-size:1.3rem; margin:11px 0 4px }
.card p,.image-card p { color:var(--muted); font-size:.94rem }
.icon-tile { width:36px; height:36px; border-radius:6px }
.page-head { margin-bottom:24px }
.page-head h1 { font-size:clamp(2.2rem,3.3vw,3.2rem) }
.page-head p { max-width:54em }
.tabs { display:flex; flex-wrap:wrap; gap:5px; margin:18px 0 }
.tab { border:1px solid var(--line) }
.tab[aria-pressed=true] { border-color:#aab7a5 }
.list { padding:0; margin:0; list-style:none }
.list li { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line) }
.list li:last-child { border-bottom:0 }
.list .status { margin-left:auto }
.status { font-size:.81rem; color:var(--muted) }
.todo-check { display:grid; place-items:center; height:19px; width:19px; border-radius:50%; border:1px solid #a6afa0; color:var(--green) }
.done .todo-check { background:var(--soft) }
.done .todo-name { text-decoration:line-through; color:var(--muted) }
.image-card { display:block; border:1px solid var(--line); background:var(--surface); text-align:left; color:inherit; padding:0 }
.image-card img { aspect-ratio:2; object-fit:cover }
.image-card div { padding:13px 19px 19px }
.image-card h3 { margin:0 0 5px }
.detail p { margin-top:8px; color:var(--muted) }
.detail+.detail { margin-top:14px }
.dialog-inner { padding:36px; position:relative }
dialog { width:min(490px,calc(100% - 36px)); max-height:88svh; padding:0; color:var(--ink); border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 20px 80px #15251b2d }
dialog::backdrop { background:#15201966 }
.dialog-close { position:absolute; right:14px; top:14px }
dialog h2 { margin:12px 25px 12px 0; line-height:1.35; font-size:1.85rem }
dialog p { margin:10px 0; color:var(--muted) }
dialog select { width:100%; border:1px solid var(--line); color:var(--ink); background:var(--paper); border-radius:5px; padding:8px }
.field-label { display:block; font-size:.87rem; margin:16px 0 6px; font-weight:650 }
.steps { padding-left:1.4em; color:var(--muted) }
.steps li+li { margin-top:7px }
.music-row { margin-top:16px }
audio { display:block; margin-top:5px; width:100%; max-width:420px }
.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px }
.gallery-grid img { border-radius:4px; aspect-ratio:1.5; object-fit:cover }
.gallery-grid figcaption { margin:3px 0 4px; font-size:.85rem }
dialog.wide { width:min(720px,calc(100% - 36px)) }
.dialog-inner .small-note { font-size:.83rem }
@media(min-width:1600px) { .entry { gap:100px } }
@media(max-width:950px) {
  .wrap { width:calc(100% - 48px) }
  .entry { grid-template-columns:minmax(0,1.18fr) minmax(270px,.85fr); gap:32px }
  .inside { padding-top:24px }
  #main-nav { gap:0 } #main-nav a { padding:6px 9px }
  .grid { gap:11px } .card,.detail { padding:18px }
}
@media(max-width:680px) {
  .wrap { width:calc(100% - 36px) }
  .mast-inner { min-height:65px; gap:6px 12px; flex-wrap:wrap }
  .brand { gap:9px } .seal { width:36px; height:36px; font-size:25px } .brand strong { font-size:1.06rem }
  .mast-aside { font-size:.85rem }
  #main-nav { order:3; width:100%; overflow-x:auto; padding-bottom:8px }
  .mast-inner:has(#main-nav:not([hidden])) { padding-top:10px }
  .entry { display:flex; flex-direction:column; gap:0; padding:18px 0 30px; min-height:0 }
  .plate,.entry-panel { width:100%; max-width:none }
  .photo img { min-height:0; height:clamp(175px,50vw,275px); object-position:center 55% }
  .photo-words { left:18px; bottom:17px } .photo-rule { width:21px; margin-bottom:7px } .photo-words p { font-size:clamp(1.4rem,5vw,1.85rem); line-height:1.35 }
  .round { width:32px; height:32px } .plate-caption { padding-top:7px }
  .caption-copy { gap:11px } .caption-name { padding-left:10px; font-size:.94rem }
  .entry-panel { padding:23px 2px 0 }
  .entry h1 { font-size:2.45rem; margin:5px 0 8px }
  .intro { font-size:1rem; line-height:1.7 } .wide-break { display:none }
  .login-button { margin-top:17px; min-height:48px } .preview-link { margin-top:8px }
  .mini-link { margin-top:19px; padding-top:14px } .kicker { font-size:.76rem }
  .foot>.wrap { min-height:58px; gap:8px; flex-wrap:wrap } .foot-actions { gap:10px }
  .home-hero { grid-template-columns:1fr; gap:16px } .home-hero img { aspect-ratio:2.3 }
  .grid,.grid.two { grid-template-columns:1fr } .inside { padding:18px 0 32px }
  .section-head { margin-top:24px } .crumb { margin-bottom:16px }
  .dialog-inner { padding:30px 23px }
}
@media(prefers-reduced-motion:no-preference) { button,a { transition:background-color .15s,border-color .15s } }
@page { size: 320mm 245mm; margin: 10mm 12mm }
@media print {
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact }
  .skip { display:none }
  body { display:block; background:var(--paper); min-height:0 }
  .wrap { width:100%; max-width:none }
  .mast-inner { min-height:62px }
  .entry { min-height:0; padding:40px 0; gap:56px }
  .photo img { height:474px; min-height:0 }
  .inside { padding:15px 0 }
  .inside .page-head,.inside .crumb { margin-bottom:12px }
  .inside .list li { padding:8px 0 }
  .home-hero img { max-height:210px }
  .section-head { margin:16px 0 8px }
  .home-hero h1 { font-size:42px }
  .grid { gap:10px } .card,.detail { padding:12px 16px }
  .card h3 { margin-top:6px } .actions { margin-top:12px }
  .foot>.wrap { min-height:45px }
  dialog { position:absolute; margin:auto; inset:100px 0 auto; box-shadow:0 0 0 100vmax #f7f6efed; max-height:none }
}
