:root {
  color: #4f4a46;
  background: #f7f2ed;
  font-family: "Noto Serif SC", Georgia, serif;
  font-synthesis: none;
  --ink: #4f4a46;
  --muted: #8e8177;
  --accent: #a96e5b;
  --accent-dark: #884f40;
  --cream: #f7f2ed;
  --paper: #fffaf5;
  --line: rgba(125, 94, 79, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; background: var(--cream); }

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

a { color: inherit; }

.section-shell { width: min(100%, 520px); margin: 0 auto; padding: 76px 24px; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 252, 248, .95), rgba(247, 242, 237, .72) 58%, rgba(235, 218, 208, .55));
}

.hero::after {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(169, 110, 91, .32);
  content: "";
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; padding: 28px 20px; }
.eyebrow, .section-kicker, .hero-date, .detail-label { letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { margin: 0 0 28px; color: var(--accent); font: 500 10px/1.4 Georgia, serif; }
.hero-date { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .18em; }
.names { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 22px; color: var(--accent-dark); font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif; font-size: clamp(46px, 14vw, 70px); line-height: 1; }
.names i { color: var(--accent); font: 400 28px Georgia, serif; }
.hero-copy { margin: 0 auto; max-width: 260px; color: var(--muted); font-size: 13px; line-height: 2; }
.scroll-hint { display: inline-flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 76px; color: var(--accent); font-size: 11px; text-decoration: none; }
.scroll-hint b { font-size: 20px; font-weight: 400; animation: float 1.8s ease-in-out infinite; }
.hero-orbit { position: absolute; width: 240px; height: 330px; border: 1px solid rgba(169, 110, 91, .18); border-radius: 50%; transform: rotate(35deg); }
.hero-orbit-left { top: -70px; left: -118px; }
.hero-orbit-right { right: -118px; bottom: -70px; transform: rotate(215deg); }

.intro { position: relative; padding-top: 94px; padding-bottom: 94px; background: var(--paper); }
.section-kicker { margin-bottom: 16px; color: var(--accent); font: 600 10px/1.4 Georgia, serif; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; color: var(--ink); font-size: clamp(31px, 8vw, 44px); font-weight: 500; line-height: 1.5; }
h1 em { color: var(--accent-dark); font-style: normal; }
.intro > p { max-width: 320px; color: var(--muted); font-size: 14px; line-height: 2.1; }
.seal { display: grid; width: 66px; height: 66px; margin-top: 34px; place-items: center; border: 1px solid rgba(169, 110, 91, .6); border-radius: 50%; color: var(--accent); font-size: 32px; line-height: 1; }

.details { background: var(--cream); }
.section-heading { margin-bottom: 28px; }
h2 { margin-bottom: 0; color: var(--ink); font-size: 30px; font-weight: 500; }
.detail-grid { display: grid; gap: 12px; }
.detail-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 16px; border: 1px solid var(--line); background: rgba(255, 250, 245, .55); }
.detail-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #ead7ca; color: var(--accent-dark); font-size: 18px; }
.detail-card h3 { margin-bottom: 6px; color: var(--ink); font-size: 16px; font-weight: 600; }
.detail-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-label { margin-bottom: 6px !important; color: var(--accent) !important; font: 600 9px/1.4 Georgia, serif !important; }
.primary-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; border: 0; border-radius: 0; background: var(--accent-dark); color: #fffaf5; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.primary-button:hover, .primary-button:focus-visible { background: #6f3c31; transform: translateY(-2px); }
.primary-button span { font-size: 18px; }

.countdown { background: var(--accent-dark); color: #fff7f0; text-align: center; }
.countdown .section-kicker { color: #eec6b4; }
.countdown h2 { color: #fff7f0; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.countdown-grid div { display: flex; flex-direction: column; gap: 8px; border-right: 1px solid rgba(255, 247, 240, .24); }
.countdown-grid div:last-child { border-right: 0; }
.countdown-grid strong { font: 400 clamp(27px, 8vw, 38px)/1 Georgia, serif; }
.countdown-grid span { color: #eec6b4; font-size: 11px; }

.gallery { background: var(--paper); }
.photo-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 128px 128px; gap: 10px; }
.photo { position: relative; display: grid; overflow: hidden; place-items: end start; padding: 14px; color: rgba(92, 66, 56, .76); background-color: #ead5c8; }
.photo::before, .photo::after { position: absolute; content: ""; border: 1px solid rgba(130, 82, 66, .2); border-radius: 50%; }
.photo::before { width: 180px; height: 180px; top: -70px; right: -35px; }
.photo::after { width: 120px; height: 120px; bottom: -60px; left: -20px; }
.photo span { position: relative; z-index: 1; font-size: 11px; letter-spacing: .12em; }
.photo-tall { grid-row: 1 / span 2; background: linear-gradient(145deg, #dcc0b0, #f0ddd1 58%, #bd947f); }
.photo-sage { background: linear-gradient(145deg, #bbc5b4, #d9dfd0); }
.photo-sand { background: linear-gradient(145deg, #e9d5ad, #f2e7cf); }
.gallery-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.rsvp { background: var(--cream); }
.rsvp > p { margin: 14px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.8; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 14px; outline: none; background: rgba(255, 250, 245, .75); color: var(--ink); font: inherit; font-size: 13px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169, 110, 91, .1); }
form .primary-button { margin-top: 2px; }
.form-success { min-height: 20px; margin: 0; color: var(--accent-dark); font-size: 12px; text-align: center; }

.footer { display: grid; min-height: 250px; place-items: center; align-content: center; gap: 12px; background: #ead7ca; color: var(--accent-dark); text-align: center; }
.seal-small { width: 48px; height: 48px; margin: 0; font-size: 24px; }
.footer p { margin: 0; font-family: "ZCOOL XiaoWei", serif; font-size: 25px; }
.footer small { color: var(--muted); font-size: 11px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (min-width: 700px) {
  body { padding: 24px 0; }
  main { overflow: hidden; width: 520px; margin: 0 auto; box-shadow: 0 8px 50px rgba(102, 64, 49, .14); }
  .hero { min-height: 800px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint b { animation: none; }
  .primary-button { transition: none; }
}
