:root {
  --paper: #f8ecd8;
  --paper-deep: #efd7b6;
  --cream: #fffaf0;
  --ink: #51382f;
  --muted: #80685d;
  --amber: #b9683c;
  --amber-dark: #8f482d;
  --gold: #d8a75f;
  --rose: #c98573;
  --sage: #82957c;
  --line: rgba(126, 84, 57, .18);
  --shadow: 0 22px 60px rgba(93, 59, 38, .13);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 167, 95, .24), transparent 26rem),
    radial-gradient(circle at 88% 40%, rgba(201, 133, 115, .15), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  min-height: 100vh;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: -1;
  background-image: repeating-linear-gradient(0deg, rgba(97, 65, 43, .035) 0, rgba(97, 65, 43, .035) 1px, transparent 1px, transparent 5px);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

a { color: var(--amber-dark); text-underline-offset: .2em; }
a:hover { color: var(--amber); }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(185, 104, 60, .35); outline-offset: 4px; border-radius: 8px; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; }
.brand img { border-radius: 13px; box-shadow: 0 8px 18px rgba(92, 54, 35, .18); }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: .94rem; text-decoration: none; }
nav a[aria-current="page"] { color: var(--amber-dark); font-weight: 600; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding: 72px 0 90px; }
.eyebrow { margin: 0 0 12px; color: var(--amber); font-size: .72rem; font-weight: 700; letter-spacing: .22em; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; }
.hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.7rem); letter-spacing: -.045em; font-weight: 800; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fffaf0; background: var(--amber-dark); box-shadow: 0 12px 25px rgba(143, 72, 45, .22); }
.button.quiet { color: var(--ink); border: 1px solid var(--line); background: rgba(255, 250, 240, .46); }

.cabinet { position: relative; padding: 56px 35px 36px; border: 10px double rgba(123, 75, 45, .45); border-radius: 34px 34px 22px 22px; background: linear-gradient(135deg, #c98f62, #b8754f); box-shadow: var(--shadow), inset 0 0 0 3px rgba(255, 238, 207, .25); transform: rotate(1.2deg); }
.cabinet::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(89, 52, 32, .3); border-radius: 20px; pointer-events: none; }
.cabinet-crown { position: absolute; top: -31px; left: 50%; transform: translateX(-50%); min-width: 140px; padding: 10px 20px; text-align: center; color: #fff4db; background: #8d5638; border: 4px double #d9ad72; border-radius: 18px 18px 8px 8px; font-family: var(--serif); letter-spacing: .16em; }
.cabinet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.keepsake { aspect-ratio: .82; display: block; position: relative; border: 3px solid rgba(116, 69, 42, .42); border-radius: 18px; background: linear-gradient(145deg, #f6dfb8, #e9c58f); box-shadow: inset 0 0 0 6px rgba(255, 246, 223, .42), 0 7px 13px rgba(74, 43, 28, .13); }
.keepsake::after { content: ""; position: absolute; inset: 30% 23%; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 7px rgba(255,255,255,.28); }
.keepsake.photo::after { border-radius: 8px; background: linear-gradient(145deg, #90a38a 45%, #d7a777 46%); }
.keepsake.flower::after { clip-path: polygon(50% 0, 63% 31%, 98% 20%, 72% 50%, 98% 80%, 63% 69%, 50% 100%, 37% 69%, 2% 80%, 28% 50%, 2% 20%, 37% 31%); background: #cf8b73; }
.keepsake.letter::after { border-radius: 4px; background: #fff1cf; box-shadow: inset 0 0 0 2px #a96f50, 0 0 0 7px rgba(255,255,255,.2); transform: rotate(-8deg); }
.keepsake.star::after { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 35%); background: var(--gold); }
.keepsake.ribbon::after { border-radius: 50% 50% 8px 8px; background: #91a185; }

.values { padding: 90px 0; border-top: 1px solid var(--line); }
.section-intro h2 { margin: 0 0 36px; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card, .support-note { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 250, 240, .64); box-shadow: 0 12px 35px rgba(91, 56, 36, .07); }
.card-number { color: var(--rose); font-family: var(--serif); font-size: .86rem; }
.story-card h3 { margin: 30px 0 8px; font-size: 1.45rem; }
.story-card p, .support-note p { margin: 0; color: var(--muted); }

.contact-strip { margin: 30px 0 100px; padding: 46px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 34px; color: #fff6e7; background: linear-gradient(135deg, #795340, #9a6147); border-radius: 30px; box-shadow: var(--shadow); }
.contact-strip h2 { margin: 0 0 12px; font-size: 2.25rem; }
.contact-strip p { margin: 0; max-width: 650px; color: rgba(255, 246, 231, .76); }
.contact-strip .eyebrow { color: #e9bd79; }
.mail-link { display: inline-flex; padding: 10px 0; color: inherit; font-weight: 700; word-break: break-all; }

.document-shell { max-width: 900px; }
.document-hero { padding: 86px 0 48px; text-align: center; }
.document-hero h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 5.4rem); }
.document-hero > p:not(.eyebrow) { color: var(--muted); }
.promise { display: inline-block; margin-top: 20px; padding: 10px 18px; color: var(--amber-dark); border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 250, 240, .45); font-family: var(--serif); }
.document-card { margin-bottom: 100px; padding: clamp(28px, 7vw, 70px); border: 1px solid var(--line); border-radius: 32px; background: rgba(255, 250, 240, .78); box-shadow: var(--shadow); }
.document-card .lead { margin-top: 0; padding-bottom: 30px; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; border-bottom: 1px solid var(--line); }
.document-card section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.document-card section:last-child { border-bottom: 0; }
.document-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.45rem; }
.document-card h2 span { display: inline-grid; width: 32px; height: 32px; place-items: center; flex: 0 0 auto; color: var(--amber-dark); background: var(--paper-deep); border-radius: 50%; font-family: var(--sans); font-size: .75rem; }
.document-card p, .document-card li { color: var(--muted); }
.document-card li + li { margin-top: 6px; }
.contact-section .mail-link { color: var(--amber-dark); font-size: 1.08rem; }

.faq { padding: 40px 0 70px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 24px 45px 24px 0; position: relative; cursor: pointer; list-style: none; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 20px; color: var(--amber); font-family: var(--sans); font-size: 1.5rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -4px 0 24px; max-width: 760px; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 100px; }
.support-note h2 { margin: 0 0 18px; }
.support-note ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.support-note.warning { color: #fff8eb; background: #795340; }
.support-note.warning p { color: rgba(255, 248, 235, .75); }

footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: .86rem; }
footer div { display: flex; gap: 22px; }
footer a { color: var(--muted); text-decoration: none; }

.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.values.reveal, .faq.reveal { animation-delay: .08s; }
.contact-strip.reveal, .support-grid.reveal { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .site-header { width: min(100% - 28px, 1120px); padding: 16px 0; }
  .brand span { display: none; }
  nav { gap: 18px; }
  main, footer { width: min(100% - 28px, 1120px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 70px; padding: 60px 0 80px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .cabinet { max-width: 480px; width: 100%; margin: 0 auto; }
  .card-grid, .support-grid { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; padding: 30px; }
  .document-hero { padding-top: 60px; }
  .document-card { border-radius: 24px; }
}

@media (max-width: 460px) {
  nav a { font-size: .86rem; }
  .cabinet { padding: 48px 24px 28px; }
  .cabinet-grid { gap: 8px; }
  .keepsake { border-radius: 12px; }
  .hero-actions .button { width: 100%; }
  footer { align-items: flex-start; gap: 14px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
