:root { --paper: #f6f1e8; --ink: #3b342c; --soft: #7d7264; --line: #d9d0c1; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 300 17px/1.7 Jost, sans-serif; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, .serif { font-family: "Cormorant Garamond", serif; font-weight: 300; }
.label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); text-decoration: none; }

.top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 28px 40px; }
.top nav { display: flex; gap: 26px; }
.top + main .ask { min-height: calc(100svh - 80px); padding-top: 24px; }

/* 首页工具 */
.ask { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.ask h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.05; margin: 0 0 44px; }
.ask h1 em { font-weight: 300; }
.born { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 14px; font-size: clamp(24px, 3vw, 32px); }
.born select {
  appearance: none; -webkit-appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 2px 6px 4px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: inherit; text-align: center; cursor: pointer;
}
select:focus-visible, button:focus-visible, a:focus-visible { outline: 1px solid var(--soft); outline-offset: 4px; }
.reveal {
  display: block; margin: 44px auto 0; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 2px 4px; cursor: pointer;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
}

/* 花卡：首页结果和月份页共用 */
.spread { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 32px 56px 72px; max-width: 1320px; margin: 0 auto; }
#result { display: none; min-height: calc(100svh - 80px); }
#result.on { display: grid; }
.photo { aspect-ratio: 1; width: 100%; overflow: hidden; background: #ece4d6; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#result .photo img { animation: bloom 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes bloom { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
#result .words > * { animation: rise 1.1s .25s cubic-bezier(.2,.7,.2,1) both; }
#result .words > *:nth-child(2) { animation-delay: .35s; } #result .words > *:nth-child(3) { animation-delay: .45s; }
#result .words > *:nth-child(4) { animation-delay: .55s; } #result .words > *:nth-child(5) { animation-delay: .65s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.words h1, .words h2 { font-size: clamp(60px, 8vw, 112px); line-height: 1; margin: 18px 0 14px; font-style: italic; }
.means { font: 300 clamp(22px, 2.4vw, 28px)/1.3 "Cormorant Garamond", serif; margin: 0 0 28px; }
.story { max-width: 30em; margin: 0 0 36px; color: #5d5347; }
.acts { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.acts button, .acts a { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 1px 3px; cursor: pointer; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.acts button:hover, .acts a:hover { border-color: var(--ink); }
.toast { color: var(--soft); font-size: 13px; min-height: 22px; margin-top: 14px; }

/* 花墙 */
.year { padding: 72px 56px 56px; max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--line); }
.year > .label { display: block; text-align: center; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; }
.grid a { display: block; text-decoration: none; }
.grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity .4s; }
.grid a:hover img { opacity: .78; }
.grid b { display: block; font: italic 300 21px/1.2 "Cormorant Garamond", serif; margin-top: 10px; }
.grid span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }

/* 文字内容 */
.read { max-width: 680px; margin: 0 auto; padding: 8px 24px 40px; }
.read h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.08; margin: 16px 0 20px; }
.read h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin: 48px 0 10px; }
.read h3 { font-size: 23px; line-height: 1.25; margin: 26px 0 4px; font-style: italic; }
.read h3 a { text-decoration: none; }
.read p a { text-underline-offset: 3px; text-decoration-color: var(--line); }
.inline { margin: 12px 0 18px; }
.inline img { width: 100%; height: auto; display: block; }
.read p { margin: 0 0 16px; color: #4d4439; }
.answer { font: 300 clamp(23px, 2.6vw, 27px)/1.4 "Cormorant Garamond", serif; color: var(--ink) !important; }
.crumbs { max-width: 1320px; margin: 0 auto; padding: 0 56px 8px; font-size: 13px; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.chart { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 16px; }
.chart th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.chart td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.chart td:first-child a { font: italic 300 20px/1.2 "Cormorant Garamond", serif; text-decoration: none; }
.wide { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font: 400 21px/1.3 "Cormorant Garamond", serif; }
.faq p { margin: 8px 0 4px; }
.more { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; }
.more a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; font-size: 14px; }

.foot { text-align: center; color: var(--soft); font-size: 13px; padding: 40px 24px 44px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 10px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot p { margin: 0; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  body { font-size: 16px; }
  .top { padding: 20px 24px; }
  .top nav { gap: 16px; }
  .spread { grid-template-columns: 1fr; gap: 28px; padding: 16px 24px 48px; }
  .crumbs { padding: 0 24px 8px; }
  .year { padding: 48px 24px 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .grid b { font-size: 16px; }
}
@media (max-width: 560px) {
  .chart thead { display: none; }
  .chart, .chart tbody, .chart tr { display: block; }
  .chart tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .chart td { border: 0; padding: 0; }
  .chart td:first-child, .chart td:last-child { display: block; }
  .chart td:nth-child(2), .chart td:nth-child(3) { display: inline; }
  .chart td:nth-child(3):not(.none)::before { content: " · "; }
  .chart td.none { display: none; }
  .chart td:last-child { color: var(--soft); font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
