:root {
  --bg: #F6F0E4;
  --surface: #FFF8EE;
  --surface-2: #EDE3D0;
  --text: #2A2118;
  --text-muted: #6B5B4B;
  --accent: #8B3A2A;
  --accent-ink: #FFF8EE;
  --border: #D4C4A8;
  --ring: #8B3A2A;
  --ok: #2F5D3A;
  --warn: #8A5A12;
  --danger: #8B2E2E;
  --info: #3A4A6B;
  --cta-face: #3B2F63;
  --cta-ink: #F1EDFF;
  --cta-wash: rgba(139, 58, 42, 0.28);
  --cta-echo: rgba(241, 237, 255, 0.18);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --fs-h1: 32px;
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-small: 13px;
  --lh-h1: 1.2;
  --lh-h2: 1.25;
  --lh-body: 1.7;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-1: 0 8px 20px rgba(42, 33, 24, 0.08);
  --container: 720px;
  --container-wide: 1120px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 160ms;
  --cta-loop: 2.8s;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-size: var(--fs-body);
  line-height: 1.7;
  line-height: var(--lh-body);
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: anywhere;
  padding-bottom: 160px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #6E2C20; }
a:active { color: #4E1E16; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.wrap,
.wrap-wide {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.wrap-wide { width: min(100% - 32px, var(--container-wide)); }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header-inner {
  width: min(100% - 32px, var(--container-wide));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.section {
  padding-block: var(--space-7);
}

.section-tight { padding-block: var(--space-6); }
.section-loose { padding-block: var(--space-8); }

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  text-wrap: pretty;
}

h1 {
  font-size: 32px;
  font-size: var(--fs-h1);
  line-height: 1.2;
  line-height: var(--lh-h1);
  margin: 0 0 var(--space-5);
}

h2 {
  font-size: 22px;
  font-size: var(--fs-h2);
  line-height: 1.25;
  line-height: var(--lh-h2);
  margin: 0 0 var(--space-4);
}

h3 {
  font-size: 18px;
  font-size: var(--fs-h3);
  line-height: 1.3;
  margin: 0 0 var(--space-3);
}

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 17px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; font-size: var(--fs-small); }

.band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.index-list li {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.index-list a {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.index-list a:hover { color: var(--accent); text-decoration: underline; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--surface);
}

th, td {
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}

.num-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.num-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.num-list li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-serif);
  color: var(--accent);
  font-weight: 600;
}

.quote {
  margin: 0;
  padding: var(--space-5) 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
}

.quote footer {
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: var(--space-6);
}

.note {
  background: var(--surface-2);
  padding: var(--space-5);
}

.stack > * + * { margin-top: var(--space-5); }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq details p { margin-top: var(--space-3); }

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.triptych article {
  background: var(--surface);
  padding: var(--space-5);
  border: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-7) 0 calc(var(--space-8) + 96px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.site-footer h2 {
  font-size: 16px;
  margin-bottom: var(--space-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: var(--space-2); }

.site-footer a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.footer-brand {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.site-cta {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  min-height: 56px;
  padding: 16px 24px;
  box-sizing: border-box;
  border-radius: 14px;
  background: var(--cta-face);
  color: var(--cta-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.site-cta:hover,
.site-cta:focus-visible { color: var(--cta-ink); }

.site-cta:active { filter: brightness(0.96); }

.site-cta::before,
.site-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-cta::before {
  background: radial-gradient(120% 160% at 28% 50%, var(--cta-wash) 0%, transparent 70%);
  opacity: 0;
  animation: cta-tea-wash var(--cta-loop) var(--ease) infinite;
}

.site-cta::after {
  background: var(--cta-echo);
  opacity: 0;
  animation: cta-seal-echo var(--cta-loop) var(--ease) infinite;
}

.site-cta .label { position: relative; z-index: 1; }

#wish-balloon {
  position: absolute;
  left: 14%;
  bottom: -8px;
  font-size: 22px;
  line-height: 1;
  animation: wish-rise 5s var(--ease) infinite;
  z-index: 1;
}

@keyframes cta-tea-wash {
  0%, 55% { opacity: 0; transform: scale(0.96); }
  68% { opacity: 0.3; transform: scale(1); }
  85%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes cta-seal-echo {
  0%, 62% { opacity: 0; }
  74% { opacity: 0.22; }
  90%, 100% { opacity: 0; }
}

@keyframes wish-rise {
  0% { transform: translate(0, 0) rotate(-6deg); opacity: 0; }
  12% { opacity: 1; }
  40% { transform: translate(10px, -36px) rotate(6deg); }
  70% { transform: translate(-6px, -72px) rotate(-4deg); }
  100% { transform: translate(0, -110px) rotate(0); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .triptych,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .index-list li {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

@media (max-width: 640px) {
  :root { --fs-h1: 26px; --fs-h2: 20px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: var(--space-3);
    flex-direction: column;
    z-index: 15;
  }

  .site-header { position: relative; }

  .site-nav[data-open="1"] { display: flex; }

  .site-cta {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    font-size: 16px;
  }

  #wish-balloon { left: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after,
  #wish-balloon {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.16;
    transform: scale(1);
  }
}
