/* The home page borrows the illustrated frame and botanical palette of the Art Nouveau showcase. */
body.home-surface { color-scheme: light; color: #29471f; background: #f5f0e1; }
body.home-surface::before { display: none; }
.home-surface .site-header { background: #f5f0e1f2; border-color: #d7c994; box-shadow: 0 5px 22px #6573470d; }
.home-surface .brand { color: #29471f; }
.home-surface .brand small { color: #5c7150; }
.home-surface .main-nav button { color: #516f45; border-radius: 999px; }
.home-surface .main-nav button.active,.home-surface .main-nav button:hover { color: #29471f; background: #e9e6d1; }
.home-surface .icon-btn,.home-surface .user-button { color: #29471f; background: #faf7ea; border-color: #cfc493; }
.home-surface .site-header .button-primary { color: #f8f3df; background: #2d5016; border-color: #2d5016; border-radius: 999px; }
.home-surface .site-header .button-primary:hover { background: #42662a; }
.home-surface .site-footer { color: #667a56; background: #eee9d7; border-color: #d7c994; }
.home-surface .back-to-top { color: #2d5016; background: #f7f2e2; border-color: #c9ad62; }
.home-page { color: #29471f; background: #f5f0e1; }
.home-page h1,.home-page h2,.home-page h3 { color: #2d5016; }
.home-page .eyebrow { color: #516f45; }
.home-hero { min-height: max(680px,calc(100svh - 86px)); display: grid; grid-template-columns: 1fr; place-items: center; background: radial-gradient(ellipse at 50% 45%,#fbf7e9 0%,#f5f0e1 72%); border-bottom: 1px solid #d9cb9d; }
.home-hero::before { inset: 5% 12%; z-index: 0; background: url('/home-ornament.svg') center / 100% 100% no-repeat; }
.home-hero-copy { width: min(850px,80%); padding: 100px 25px 120px; text-align: center; }
.home-hero .eyebrow { font: 700 12px Georgia,"Songti SC",serif; letter-spacing: .32em; text-transform: uppercase; }
.home-hero .eyebrow::before { width: 8px; height: 8px; background: #c9a227; box-shadow: 0 0 0 5px #c9a22722; }
.home-hero h1 { margin: 27px 0 20px; font-size: clamp(47px,6.4vw,90px); line-height: 1.24; letter-spacing: .01em; font-weight: 600; }
.home-hero h1 em { color: #977213; }
.home-hero p { max-width: 560px; margin: 0 auto; color: #516f45; font: 16px/2 Georgia,"Songti SC",serif; letter-spacing: .04em; }
.home-hero .hero-actions { justify-content: center; margin-top: 32px; }
.home-hero .button { min-width: 170px; min-height: 46px; padding-inline: 22px; border-radius: 999px; font: 700 13px Georgia,"Songti SC",serif; }
.home-hero .button-primary { color: #fff9e9; background: #2d5016; border-color: #2d5016; }
.home-hero .button-primary:hover { color: #fff9e9; background: #426629; border-color: #426629; }
.home-hero .button:not(.button-primary) { color: #2d5016; background: #f8f3e6; border-color: #2d5016; }
.home-hero .button:not(.button-primary):hover { color: #2d5016; background: #e8e8d3; }
.home-hero .hero-scene { display: none; }
.home-hero .hero-bottom { z-index: 1; justify-content: center; color: #5c7150; }
.home-hero .hero-bottom::after { position: absolute; top: 15px; content: "↓"; color: #b7983b; }
.home-lead { position: relative; align-items: center; padding-top: 94px; }
.daymark-section { position: relative; margin: 0 calc(var(--page-gutter) * -1); padding: clamp(70px,9vw,120px) var(--page-gutter); overflow: hidden; background: #ebe5cf; border-bottom: 1px solid #d0bd7c; }
.daymark-section::before,.daymark-section::after { content: ""; position: absolute; width: 280px; height: 280px; opacity: .2; pointer-events: none; background: url('/home-ornament.svg') center / contain no-repeat; }
.daymark-section::before { top: -90px; left: -80px; transform: rotate(-28deg); }
.daymark-section::after { right: -80px; bottom: -110px; transform: rotate(150deg); }
.daymark-heading { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: 1180px; margin: 0 auto 34px; }
.daymark-heading h2 { margin: 8px 0 10px; font: 500 clamp(34px,4.3vw,58px)/1.15 Georgia,"Songti SC",serif; }
.daymark-heading p { margin: 0; color: #617253; font: 15px/1.8 Georgia,"Songti SC",serif; }
.daymark-add { flex: none; color: #f8f3df; background: #2d5016; border-color: #c9a227; border-radius: 999px; }
.daymark-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.daymark-card { position: relative; min-height: 295px; padding: 34px 30px 28px; overflow: hidden; color: #29471f; text-align: center; background: #f8f3e4; border: 2px solid #c9ad62; border-radius: 28px 28px 90px; box-shadow: 0 14px 30px #6d78301c; transition: transform .5s ease-in-out,box-shadow .5s ease-in-out; }
.daymark-card:nth-child(even) { border-radius: 28px 90px 28px 28px; }
.daymark-card::after { content: ""; position: absolute; inset: 11px; border: 1px solid #d7c78f; border-radius: inherit; pointer-events: none; }
.daymark-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px #6d78302d; }
.daymark-bloom { display: block; color: #aa8421; font-size: 23px; transition: transform .7s ease-in-out; }
.daymark-card:hover .daymark-bloom { transform: rotate(18deg) scale(1.12); }
.daymark-kind { display: block; margin: 12px 0 6px; color: #687c58; font: 700 10px/1.4 Georgia,serif; letter-spacing: .18em; }
.daymark-card strong { display: block; color: #2d5016; font: 500 20px/1 Georgia,"Songti SC",serif; }
.daymark-card strong span { font-size: clamp(54px,6vw,78px); }
.daymark-card h3 { margin: 19px 0 7px; font: 600 20px/1.35 Georgia,"Songti SC",serif; }
.daymark-card time { color: #987719; font: 13px Georgia,"Songti SC",serif; }
.daymark-card p { margin: 12px 20px 0; color: #617253; font-size: 13px; line-height: 1.6; }
.daymark-edit { position: absolute; z-index: 2; right: 25px; bottom: 20px; padding: 5px 9px; color: #526c46; background: transparent; border: 0; font: 12px Georgia,"Songti SC",serif; cursor: pointer; }
.daymark-edit:hover { color: #977213; text-decoration: underline; }
.daymark-empty { grid-column: 1/-1; padding: 58px 25px; color: #526c46; text-align: center; background: #f8f3e4a8; border: 1.5px dashed #b89c4b; border-radius: 38px; }
.daymark-empty > span { color: #aa8421; font-size: 35px; }
.daymark-empty h3 { margin: 12px 0 8px; font: 500 28px Georgia,"Songti SC",serif; }
.daymark-empty p { margin: 0 0 20px; }
.form-hint { margin: -4px 0 0; color: #617253; font-size: 12px; }
.home-lead::before { content: "✦"; position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 200px; color: #c9a227; text-align: center; font-size: 20px; background: linear-gradient(#cbb86f,#cbb86f) left center / 80px 1px no-repeat,linear-gradient(#cbb86f,#cbb86f) right center / 80px 1px no-repeat; }
.home-lead h2 { color: #2d5016; }
.home-lead p { color: #516f45; font-size: 14px; }
.feature-grid { gap: 22px; }
.feature-card,.feature-card:nth-child(2),.feature-card:nth-child(3) { min-height: clamp(340px,26vw,460px); color: #2d5016; background: #eee9d5; border: 1.5px solid #c9ad62; border-radius: 22px 22px 85px 22px; box-shadow: 0 12px 26px #6d78301a; }
.feature-card:nth-child(2) { border-radius: 22px 85px 22px 22px; }
.feature-card::before { background: linear-gradient(180deg,#f4efde35 0%,#f5f0e1ac 44%,#f5f0e1 83%); }
.feature-card::after { inset: 14px; width: auto; height: auto; border: 1px solid #cfb9659c; border-radius: inherit; box-shadow: none; pointer-events: none; }
.feature-photo { opacity: .38; filter: saturate(.75) sepia(.08); }
.feature-card:hover,.feature-card:focus-visible { border-color: #a7852d; box-shadow: 0 21px 35px #6d78302b; }
.feature-card:hover .feature-photo { opacity: .48; }
.feature-card:hover::after { transform: none; }
.feature-top { color: #537347; }
.feature-symbol { color: #b39130; border-color: #c6ae6c; border-radius: 50%; background: #f5f0e1d9; }
.feature-bottom h3 { color: #2d5016; font-size: clamp(26px,2.2vw,34px); }
.feature-bottom p { color: #506448; font-size: 14px; }
.feature-arrow { color: #b08b28; }
.home-counts { justify-content: center; gap: clamp(25px,6vw,115px); margin: 35px var(--page-gutter) 0; padding: 30px 0 55px; border-color: #d8c99d; }
.home-counts strong { color: #a78320; }
.home-counts span { color: #5c7150; }
.home-content { margin-top: 75px; }
.home-page .section-title { border-color: #cdbb7c; }
.home-page .section-title h2 { color: #2d5016; }
.home-page .link-button { color: #42652e; }
.home-grid aside { border-color: #cfbe8c; }
.home-page .memory-card { color: #2d5016; background: #faf6e9; border: 1px solid #d2c397; border-radius: 18px; }
.home-page .memory-card:hover { border-color: #b3984d; }
.home-page .memory-card strong { color: #2d5016; }
.home-page .memory-card p,.home-page .memory-card .meta { color: #506448; }
.home-page .memory-cover { background: #d9dfc5; }
.home-page .memory-card .arrow { color: #ae8d2b; }
.home-page .mini-photo-grid button { border: 2px solid #f8f3e5; border-radius: 12px; box-shadow: 0 3px 0 #c2b785; }
.home-page .todo-preview li { color: #405e34; border-color: #d8c99d; }
.home-page .empty { color: #617253; background: #faf6e9; border-color: #cdbb7c; }
.home-page .empty strong { color: #2d5016; }
.home-page .muted { color: #617253; }
@media(max-width:900px) { .home-hero::before { inset: 7% 6%; } .home-hero-copy { width: min(780px,86%); } .feature-grid { gap: 14px; } }
@media(max-width:700px) {
  .home-surface .site-header { height: auto; }
  .home-hero { min-height: 620px; }
  .home-hero::before { inset: 6% 3%; background-size: 100% 100%; }
  .home-hero-copy { width: 84%; padding: 85px 8px 105px; }
  .home-hero h1 { font-size: clamp(40px,9vw,62px); }
  .home-hero p { font-size: 14px; line-height: 1.85; }
  .home-lead { padding-top: 85px; }
  .daymark-heading { align-items: flex-start; }
  .daymark-heading h2 { font-size: 36px; }
  .daymark-grid { grid-template-columns: 1fr 1fr; }
  .feature-card,.feature-card:nth-child(2),.feature-card:nth-child(3) { min-height: 255px; }
  .home-counts { margin-inline: var(--page-gutter); }
  .home-grid aside { border: 0; padding: 0; }
}
@media(max-width:470px) {
  .home-hero { min-height: 585px; }
  .home-hero::before { inset: 7% 1%; }
  .home-hero-copy { width: 81%; padding-inline: 0; }
  .home-hero .eyebrow { font-size: 10px; letter-spacing: .16em; }
  .home-hero h1 { font-size: clamp(33px,9vw,43px); margin-block: 23px 16px; }
  .home-hero p { font-size: 12px; }
  .home-hero .hero-actions { gap: 8px; margin-top: 22px; }
  .home-hero .button { min-width: 0; min-height: 40px; padding: 8px 12px; font-size: 11px; }
  .home-hero .hero-bottom { font-size: 9px; }
  .home-counts { gap: 10px; }
  .home-counts span { font-size: 10px; }
  .daymark-section { padding-block: 58px; }
  .daymark-heading { display: block; }
  .daymark-heading .daymark-add { margin-top: 20px; }
  .daymark-grid { grid-template-columns: 1fr; }
  .daymark-card { min-height: 270px; }
}

/* Keep one Home-style navigation bar on every signed-in page. */
body .site-header {
  height: 86px;
  background: #f5f0e1f2;
  border-color: #d7c994;
  box-shadow: 0 5px 22px #6573470d;
}
body .site-header .brand {
  color: #29471f;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: normal;
}
body .site-header .brand::before { content: none; }
body .site-header .brand small {
  display: block;
  color: #5c7150;
  font-family: Arial, sans-serif;
}
body .site-header .main-nav { gap: 7px; }
body .site-header .main-nav button {
  position: static;
  padding: 11px 14px;
  color: #516f45;
  background: transparent;
  border-radius: 999px;
  font-family: Inter, "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
}
body .site-header .main-nav button.active,
body .site-header .main-nav button:hover { color: #29471f; background: #e9e6d1; }
body .site-header .main-nav button.active::after { content: none; }
body .site-header .icon-btn,
body .site-header .user-button {
  color: #29471f;
  background: #faf7ea;
  border-color: #cfc493;
}
body .site-header .user-button { width: auto; height: 38px; font-size: 13px; }
body .site-header .header-add {
  display: inline-flex;
  color: #f8f3df;
  background: #2d5016;
  border-color: #2d5016;
  border-radius: 999px;
}
body .site-header .header-add:hover { color: #f8f3df; background: #42662a; border-color: #42662a; }

@media(max-width:700px) {
  body .site-header { height: auto; }
  body .site-header .brand { font-size: 20px; }
  body .site-header .main-nav { gap: 0; }
  body .site-header .main-nav button { padding: 9px 5px; font-size: 12px; }
}
