/* Shared vector details render identically on iOS, Android and desktop. */
@font-face{font-family:"Journal Serif";src:url("assets/journal-serif.woff") format("woff");font-style:normal;font-weight:400;font-display:swap}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button{-webkit-appearance:none;appearance:none}
.ui-icon{display:inline-block;width:1em;height:1em;vertical-align:-.12em;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;pointer-events:none}
.icon-flower{stroke-width:1.1}.tiny-star .ui-icon,.intro-mark .ui-icon{fill:currentColor;stroke:none}
.flower,.hero-spark,.journal-flower,.archive-number{line-height:1}
.flower{display:flex;align-items:center}.hero-spark{width:1em;height:1em}
.role-card-arrow .ui-icon,.photo-expand .ui-icon,.about-button-arrow .ui-icon{width:18px;height:18px}
.button>span{display:grid;place-items:center}.lightbox-stage>button{display:grid;place-items:center;padding:0}
.lightbox-caption>a{display:inline-flex;align-items:center;gap:8px}.lightbox-caption>a .ui-icon{width:15px;height:15px}
.lightbox-head .close{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.lightbox-head .close .ui-icon{width:16px;height:16px}
.daily-photo-icon .ui-icon,.photo-plus .ui-icon{width:15px;height:15px}
.menu-toggle[aria-expanded=true] .icon-plus{transform:rotate(45deg)}
.menu-toggle .ui-icon{transition:transform .2s}

@media(max-width:760px){
  :root{--serif:"Journal Serif","Songti SC","STSong",serif;--sans:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
  .wrap{width:calc(100% - 40px)}
  .header{min-height:78px;padding:17px 20px;gap:16px}
  .brand{font-size:17px;font-weight:400;letter-spacing:1px;gap:10px}
  .brand small{font:6px/1.5 var(--sans);letter-spacing:1.15px;margin-top:5px}
  .flower{font-size:31px}.brand-divider{margin:0 6px}
  .menu-toggle{min-height:42px;min-width:68px;justify-content:center;padding:8px 12px;gap:7px;border:1px solid #cbbdcf;border-radius:24px;color:#70597b;background:#ffffff45;font-size:11px}
  .menu-toggle span{font-size:16px;line-height:1}
  .header nav.open{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid var(--line);padding-top:14px;font-size:12px}
  .header nav a{min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #ddd2e0;border-radius:10px;background:#ffffff60}
  .header nav .nav-out{padding:0;gap:9px}
  .hero{padding-block:29px 34px;gap:25px}
  .hero .eyebrow{font-size:9px;letter-spacing:1.3px}
  .hero h1{font-size:clamp(32px,8.9vw,40px);line-height:1.65;letter-spacing:1px;margin:16px 0 15px;font-weight:400}
  .hero-description{font-size:12px;line-height:2.1;letter-spacing:.7px}
  .button.primary,.community .button{min-height:48px;border:1px solid #6c5777;border-radius:999px;background:linear-gradient(125deg,#80698b,#65506f);box-shadow:inset 0 1px 0 #fff3,0 6px 16px #69517315;padding:9px 10px 9px 20px;gap:24px;font-size:12px;letter-spacing:.8px}
  .button.primary{margin-top:21px}
  .button>span{border:1px solid #ffffff55;border-radius:50%;width:30px;height:30px;font-size:17px;background:#ffffff08}
  .hero-bottom{margin-top:23px;padding-top:14px}.scroll-link{display:none}
  .hero-art{padding:23px 13px 27px 48px;max-width:390px}
  .art-top{left:48px;font-size:6px;letter-spacing:1.7px}.art-side{display:none}
  .hero-photo{border-radius:90px 90px 5px 5px}
  .hero-photo img{height:auto;aspect-ratio:3/4}
  .hero-spark{left:6px;top:48px;font-size:46px}
  .handwriting{font-size:clamp(48px,15vw,64px);right:16px;top:38px}
  .polaroid{width:34%;left:3px;padding:6px 6px 11px;bottom:0}
  .polaroid span{font-size:8px;letter-spacing:.1px;margin-top:9px;white-space:nowrap}
  .intro-strip{padding-block:21px;gap:12px;margin-bottom:34px}.intro-strip p{font-size:14px;letter-spacing:.4px}.intro-number{font-size:18px}
  .role-section{padding-block:40px;min-height:0}
  .role-heading{gap:12px}.role-heading h2{font-size:27px;line-height:1.65;letter-spacing:0}
  .role-heading-note{align-self:center}.archive-number{font-size:36px}
  .role-catalog{gap:24px 14px}.role-name{font-size:23px;letter-spacing:.5px}
  .role-card-arrow{height:28px;width:28px}.role-card-arrow .ui-icon{width:14px;height:14px}
  .role-detail{font-size:10px;gap:4px;align-items:baseline;flex-wrap:wrap}
  .section{padding-block:44px}.gallery-heading h2{font-size:28px;line-height:1.65}
  .gallery-heading #album-description{font-size:11px;line-height:1.9;margin-top:10px}
  .filters{gap:7px}.filters button{min-height:40px;padding:8px 2px;font-size:11px;letter-spacing:0;border-radius:22px}
  .gallery-actions{margin-top:15px}.gallery-count{font-size:11px}
  #random-photo{min-height:42px;padding:9px 14px;gap:7px}#random-photo span{font-size:11px}
  .role-filters{padding-block:15px 18px;gap:7px;overscroll-behavior-x:contain}
  .role-chip{font-size:11px;min-height:36px;padding-inline:13px}
  .album-banner{display:grid;grid-template-columns:1fr;padding:18px;border:1px solid #d9cddd;border-radius:12px;gap:14px;background:linear-gradient(130deg,#eee5f0,#f6f1f6);margin-bottom:18px}
  .album-banner[hidden]{display:none}.album-banner h3{font-size:24px;margin-top:4px}
  .album-banner p{font-size:11px;line-height:1.8;margin-top:6px}
  #clear-album{justify-self:start;min-height:40px;padding:8px 14px;font-size:11px;gap:9px}
  #clear-album .ui-icon{width:14px;height:14px}
  .photo-card button{border-radius:9px}.photo-tag{font-size:9px;padding:3px 6px;top:6px;left:6px;border-radius:5px;background:#302a347d;max-width:calc(100% - 12px)}
  .photo-plus{display:none}.gallery[data-album]:not([data-album=""]) .photo-tag{display:none}
  .daily-photo-icon{display:none}.about-diary{gap:27px;padding-block:40px 46px}
  .about-moments>.eyebrow{margin-bottom:20px}
  .daily-pair{max-width:390px;aspect-ratio:1.08}.daily-print-main{width:60%}.daily-print-note{width:46%}
  .about-diary .about-copy h2{font-size:28px;line-height:1.7;letter-spacing:0}
  .about-diary .about-copy>p{font-size:12px;line-height:2.1;letter-spacing:0;margin-top:18px}
  .about-diary .about-copy>p.letter{font-size:18px;line-height:2;letter-spacing:0;margin-top:22px}
  .about-button{min-height:48px;font-size:12px;padding:8px 9px 8px 18px;gap:10px;margin-top:23px;letter-spacing:.4px}
  .community{padding-block:34px}.community-inner{gap:23px}
  .community h2{font-size:29px;line-height:1.65;letter-spacing:.5px}
  .community p:not(.eyebrow){font-size:12px;line-height:1.9;letter-spacing:0}
  .community .eyebrow{font-size:9px;letter-spacing:1.5px}
  .footer-top .brand{font-size:15px}.footer-top .flower{font-size:27px}
  .footer-bottom{font-size:10px;line-height:1.9;gap:9px}.back-top{font-size:10px;white-space:nowrap}
  .usage-notice{gap:12px}.usage-notice p{font-size:11px;line-height:1.95}.usage-notice h3{font-size:16px}
  /* The viewer has its own phone layout; the photo no longer shares width with arrows. */
  .lightbox{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:calc(16px + env(safe-area-inset-top,0px)) 18px calc(20px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain}
  .lightbox[open]{display:flex;flex-direction:column;gap:16px}
  .lightbox-head{margin:0;flex-shrink:0}.lightbox-counter{font-size:16px}
  .lightbox-head .close{min-height:42px;padding:9px 14px;font-size:12px}
  .lightbox-stage{grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:minmax(0,1fr) 44px;gap:12px;min-height:0;flex:1;align-content:center}
  .lightbox-stage>img{grid-column:1/-1;grid-row:1;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:3px;min-height:0}
  .lightbox-stage>button{grid-row:2;width:44px;height:44px;background:#ffffff66;border-color:#baa8c2;color:#70557d;font-size:20px}
  .lightbox-stage>.previous{grid-column:1}.lightbox-stage>.next{grid-column:3}
  .lightbox-caption{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;border-top:1px solid var(--line);padding-top:15px;flex-shrink:0}
  .lightbox-caption h2{font:21px/1.5 var(--serif);overflow-wrap:anywhere}
  .lightbox-caption p{font-size:11px;line-height:1.8;margin-top:6px}
  .lightbox-caption>a{align-self:flex-start;font-size:11px;min-height:40px;padding:8px 14px}
}
@media(hover:none){
  .photo-card button:hover img{filter:none;transform:none}
  .photo-card button:hover .photo-overlay-title{opacity:0}
  .daily-print:hover,.button:hover,.about-button:hover,.outline-button:hover,#expand-roles:hover,#random-photo:hover,#clear-album:hover{transform:none}
  .photo-card button:active,.daily-print:active{opacity:.88}
}
@media(max-width:359px){.header{padding-inline:16px;gap:9px}.wrap{width:calc(100% - 32px)}.brand{font-size:15px}.brand small{font-size:5px}.menu-toggle{min-width:60px;padding:8px}.hero h1{font-size:31px}.gallery-heading h2{font-size:25px}.role-heading h2{font-size:24px}.role-name{font-size:21px}.about-diary .about-copy h2{font-size:25px}.about-diary .about-copy>p.letter{font-size:16px}}
