@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root { color-scheme: light; --paper: #f9f6ef; --ink: #202d28; --quiet: #495b50; --line: #d6dcd0; --green: #28523f; --rust: #86492f; --serif: 'Playfair Display', Georgia, serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 'DM Sans', system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header { min-height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.3rem var(--serif); white-space: nowrap; }
.brand span { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; color: var(--paper); background: var(--green); font: 1.15rem Georgia, serif; }
nav, .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
nav { font-size: .95rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 17px; border: 1px solid var(--green); border-radius: 6px; font-size: .94rem; font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: none; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #193e2f; }
.outline { background: transparent; color: var(--green); }
.outline:hover { background: #e7ebe1; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; padding-block: 56px 72px; }
.eyebrow { font-size: .88rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: var(--rust); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.13; margin: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.lede { font-size: 1.16rem; margin: 22px 0 26px; max-width: 42ch; color: var(--quiet); }
.meta, .availability { color: var(--quiet); font-size: .9rem; }
.folio { position: relative; min-height: 390px; aspect-ratio: 1.13; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse at 72% 22%, #50775e, #294b3b 60%, #1f392f); }
.folio img { position: absolute; display: block; width: 47%; height: auto; box-shadow: 0 18px 40px #12292080; }
.cover { top: 10%; left: 12%; transform: rotate(-10deg); }
.sheet { top: 17%; right: 13%; transform: rotate(9deg); }
.section { padding-block: 56px 64px; border-top: 1px solid var(--line); }
.chart-section { background: #e8ede3; padding-block: 60px; }
.chart-grid, .faq { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px 60px; }
.chart-grid p { max-width: 45ch; }
#chart-form { padding: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.form-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; }
label { display: grid; align-content: start; gap: 5px; font-weight: 600; font-size: .9rem; }
input, select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #819586; border-radius: 5px; padding: 7px; color: var(--ink); background: #fffdf8; }
#chart-status:not(:empty) { margin-top: 10px; }
#chart-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; text-align: center; margin: 15px 0 0; }
#chart-result div { border: 1px solid var(--line); border-radius: 5px; padding: 8px 2px; }
dt { font-size: .88rem; }
dd { margin: 0; font-size: 1.35rem; color: var(--green); }
details { border-bottom: 1px solid var(--line); padding: 13px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--quiet); margin-bottom: 3px; }
.footer { padding-block: 24px; border-top: 1px solid var(--line); color: var(--quiet); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .hero, .chart-grid, .faq { grid-template-columns: 1fr; }
  .hero { padding-block: 35px 42px; }
  .folio { min-height: 0; max-height: 380px; }
  .folio img { max-width: 190px; }
  .section { padding-block: 38px; }
  .wide { display: none; }
}
@media (max-width: 480px) {
  .header { min-height: 72px; }
  nav { gap: 12px; }
  nav a[href="#faq"] { display: none; }
  .brand { font-size: 1.05rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .offset { grid-column: 1 / -1; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

:root { --paper: #faf6ee; --ink: #202924; --quiet: #4f5b51; --line: #dbd2be; --green: #254535; --rust: #855334; --gold: #e4c48c; --night: #172e25; }
.header { min-height: 76px; }
.hero-band { background: radial-gradient(ellipse at 80% 30%, #3a5444, var(--night) 62%); color: var(--paper); }
.hero { min-height: 590px; padding-block: 65px; }
.hero h1 { font-size: clamp(3rem, 6.7vw, 6rem); }
.hero .eyebrow { color: var(--gold); }
.hero .lede, .hero .meta { color: #e3e6db; }
.hero .primary { background: var(--gold); color: #1e3027; border-color: var(--gold); }
.hero .outline { color: var(--paper); border-color: #bca77d; }
.hero .outline:hover { background: #ffffff1a; }
.hero .primary:hover { background: #f2d69d; }
.folio { background: transparent; min-height: 430px; overflow: visible; }
.orbit { position: absolute; inset: 3% 1%; border: 1px solid #e5c78c88; border-radius: 50%; transform: rotate(-12deg); }
.orbit::before, .orbit::after { content: ''; position: absolute; border: 1px solid #e5c78c40; border-radius: 50%; }
.orbit::before { inset: 7%; }
.orbit::after { inset: -5%; }
.folio img { border-radius: 2px; box-shadow: 0 18px 50px #0b1b15a8; }
.folio .cover { left: 9%; top: 10%; }
.folio .sheet { right: 9%; top: 18%; }
.offer, .ziwei-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px 75px; }
.offer .lede { margin: 16px 0 20px; }
.price { margin-bottom: 20px; color: var(--green); font: 600 2.1rem/1.2 var(--serif); }
.price small { display: inline-block; margin-left: .5rem; color: var(--quiet); font: 500 .9rem 'DM Sans', system-ui, sans-serif; }
.report-details { margin: 0; border-top: 1px solid var(--line); }
.report-details div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.report-details dt { font: 600 1.25rem var(--serif); }
.report-details dd { margin-top: 6px; color: var(--quiet); font-size: 1rem; }
.ziwei-band { background: #eee4d3; padding-block: 50px; }
.ziwei-name { margin: 8px 0 0; color: var(--rust); font: 1.35rem Georgia, serif; letter-spacing: .16em; }
.ziwei-grid .lede { margin-top: 0; }
.ziwei-grid p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .hero { min-height: auto; padding-block: 39px 48px; }
  .offer, .ziwei-grid { grid-template-columns: 1fr; }
  .folio { width: min(100%, 440px); margin-inline: auto; min-height: 0; }
  .offer .lede, .ziwei-grid .lede { max-width: none; }
}
@media (max-width: 480px) {
  nav a[href="#ziwei"], nav a[href="#report"] { display: none; }
}

#sample h2 { max-width: 24ch; }
.sample-reading, .sample-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sample-reading { margin: 24px 0 32px; }
.sample-reading div { padding: 18px; border-top: 2px solid #b58a51; background: #f1e9db; }
.sample-reading dt { font: 600 1.15rem var(--serif); }
.sample-reading dd { margin-top: 8px; color: var(--quiet); font-size: 1rem; }
.sample-pages { margin-top: 14px; }
.sample-pages a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; }
.sample-pages img { display: block; width: 100%; height: 165px; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.sample-pages strong, .sample-pages span { display: block; }
.sample-pages strong { margin-top: 9px; }
.sample-pages span { color: var(--quiet); font-size: .9rem; }
@media (max-width: 760px) {
  .sample-reading, .sample-pages { grid-template-columns: 1fr; }
  .sample-pages img { height: 180px; }
}

.form-grid .offset { grid-column: 1 / -1; }

.order-content { max-width: 790px; }
.order-content h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.order-content h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.policy { max-width: 760px; }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.policy h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 1.6em; }
.policy li { margin-bottom: .4em; }
.order-form, .order-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.order-form button { margin-top: 20px; }
.order-details div { padding: 12px; border: 1px solid var(--line); }
.order-details dd { font-size: 1rem; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .order-form, .order-details { grid-template-columns: 1fr; }
}

.order-form .order-wide { grid-column: 1 / -1; margin: 0; }
.lang-switch { font-weight: 600; }
.test-note { color: #a24b00; }
