:root {
  --bg: #d5d4cf;
  --panel: #eceae4;
  --panel-2: #d2ccc2;
  --text: #23211e;
  --muted: #5c5850;
  --accent: #8b5b2f;
  --accent-soft: #a5794d;
  --border: rgba(35, 33, 30, 0.14);
  --shadow: 0 24px 60px rgba(32, 27, 21, 0.12);
  --max: 860px;
  --numeric-font: "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: "onum" 1, "pnum" 1;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.45), transparent 30%),
    linear-gradient(180deg, #d9d7d2 0%, #cdc7bd 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.page {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.section,
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(245, 243, 238, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-card {
  margin-top: 14px;
  padding: 22px 18px 34px;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.2)),
    rgba(242, 239, 234, 0.8);
}

.hero-frame {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255,255,255,0.6);
}

.hero-image {
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 62%;
  width: 100%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.seal {
  position: absolute;
  width: clamp(82px, 20vw, 138px);
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 24px rgba(70, 43, 21, 0.18));
  pointer-events: none;
}

.hero-names {
  margin: 30px 0 8px;
  color: var(--accent);
  font-family: "Great Vibes", cursive;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.95;
  font-weight: 400;
}

.hero-date {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: clamp(24px, 4.8vw, 42px);
  margin-bottom: 12px;
  font-family: var(--numeric-font);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: "onum" 1, "pnum" 1;
}

.countdown-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  color: var(--muted);
}

.countdown-label {
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  gap: 12px;
  width: min(100%, 408px);
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(255,255,255,0.62);
  padding: 12px 10px;
  min-height: 92px;
  min-width: 0;
}

.count-item strong {
  display: block;
  font-family: var(--numeric-font);
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1;
  margin-bottom: 4px;
  min-width: 3ch;
  text-align: center;
  font-variant-numeric: oldstyle-nums tabular-nums;
  font-feature-settings: "onum" 1, "tnum" 1;
}

.count-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.05;
  min-height: 2.1em;
  width: 100%;
  text-align: center;
  color: var(--muted);
}

.section {
  margin-top: 22px;
  border-radius: 28px;
  padding: 30px 22px;
}

.intro {
  text-align: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.section-title {
  margin: 0 0 14px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  line-height: 0.95;
}

.intro-text,
.detail-card p,
.contact-card p,
.venue-copy,
.rsvp-text {
  margin: 0;
  font-size: clamp(27px, 4.8vw, 40px);
  line-height: 1.22;
}

.leaf {
  width: 42px;
  height: 42px;
  margin: 22px auto;
  opacity: 0.62;
}

.venue-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.venue-card,
.map-card,
.detail-card,
.program-card,
.contact-card,
.form-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.40);
  padding: 24px 20px;
}

.venue-name {
  font-size: clamp(42px, 8vw, 70px);
  margin: 0 0 6px;
  text-align: center;
}

.venue-copy {
  text-align: center;
}

.venue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.venue-card .leaf {
  position: absolute;
  top: 24px;
  left: 20px;
  margin: 0;
}

.map-card {
  min-height: 280px;
  display: grid;
  gap: 18px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08)),
    radial-gradient(circle at 30% 35%, rgba(130,175,114,0.28), transparent 20%),
    radial-gradient(circle at 70% 55%, rgba(90,140,180,0.22), transparent 18%),
    rgba(215, 219, 213, 0.72);
}

.map-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto;
  background: rgba(255,255,255,0.78);
  display: grid;
  place-items: center;
  font-size: 36px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(139, 91, 47, 0.24);
  background: linear-gradient(180deg, rgba(157,108,63,0.98), rgba(127,84,46,0.98));
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 16px 28px rgba(110, 70, 35, 0.22);
  cursor: pointer;
}

.button:hover { transform: translateY(-2px); }

.program-list {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.program-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}

.program-item strong {
  display: block;
  font-family: var(--numeric-font);
  font-size: clamp(40px, 7vw, 56px);
  margin-bottom: 4px;
  line-height: 1;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: "onum" 1, "pnum" 1;
}

.program-item span {
  display: block;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
}

.leaf-line {
  width: 24px;
  height: 90px;
  opacity: 0.65;
  margin-top: 8px;
}

.details-grid,
.contacts-grid {
  display: grid;
  gap: 16px;
}

.detail-card h3,
.contact-card h3,
.form-title {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.05;
}

.detail-card h3,
.contact-card h3 {
  text-align: center;
}

.contact-card a,
.contact-line {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  text-decoration: none;
  color: var(--text);
}

.contact-line {
  font-family: var(--numeric-font);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: "onum" 1, "pnum" 1;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(35, 33, 30, 0.10);
  background: rgba(255,255,255,0.55);
  font-size: 22px;
  text-decoration: none;
}

form {
  display: grid;
  gap: 20px;
  margin-top: 14px;
  width: 100%;
  align-items: start;
}

.field {
  display: grid;
  gap: 8px;
}

form > *,
.field,
fieldset,
.options,
.option,
.form-actions,
.notice {
  width: 100%;
  min-width: 0;
}

label,
legend {
  font-size: clamp(31px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: clamp(20px, 3.9vw, 28px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

input[type="text"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid rgba(35,33,30,0.16);
  background: rgba(255,255,255,0.66);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  font-size: 28px;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:disabled,
textarea:disabled,
select:disabled {
  background: rgba(235, 231, 224, 0.9);
  color: rgba(92, 88, 80, 0.62);
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
  color: rgba(92, 88, 80, 0.72);
}

input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}

textarea { min-height: 100px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  border-color: rgba(139, 91, 47, 0.44);
  box-shadow: 0 0 0 4px rgba(139,91,47,0.10);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(35,33,30,0.08);
  cursor: pointer;
}

.option input {
  margin-top: 8px;
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.option span {
  font-size: clamp(26px, 4.6vw, 34px);
  line-height: 1.08;
  min-width: 0;
  overflow-wrap: anywhere;
}

.conditional-block.is-disabled {
  opacity: 0.56;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.button.secondary {
  background: rgba(255,255,255,0.55);
  color: var(--text);
  border-color: rgba(35,33,30,0.12);
  box-shadow: none;
}

.notice {
  display: none;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(112, 151, 94, 0.16);
  border: 1px solid rgba(112, 151, 94, 0.28);
  font-size: 26px;
  line-height: 1.16;
}

.footer-sign {
  text-align: center;
  padding-top: 38px;
  padding-bottom: 38px;
}

.footer-sign .with-love {
  font-size: clamp(42px, 7vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-sign .names {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 10vw, 104px);
  line-height: 0.95;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 430px) {
  .page {
    width: min(calc(100% - 20px), var(--max));
    padding: 14px 0 44px;
  }

  .hero-card {
    padding: 18px 14px 28px;
  }

  .hero-frame {
    padding: 14px;
  }

  .section {
    padding: 24px 14px;
  }

  .venue-card,
  .map-card,
  .detail-card,
  .program-card,
  .contact-card,
  .form-card {
    padding: 20px 16px;
  }

  form,
  .field,
  fieldset,
  .options {
    justify-items: stretch;
  }

  .field > label,
  .field > .hint,
  fieldset > legend,
  fieldset > .hint {
    width: 100%;
  }

  .hero-names {
    font-size: clamp(44px, 15vw, 72px);
  }

  .hero-date {
    font-size: clamp(18px, 5.5vw, 28px);
    letter-spacing: 0.14em;
  }

  .countdown-label {
    font-size: 15px;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(60px, 1fr));
    gap: 8px;
    width: 100%;
  }

  .count-item {
    padding: 10px 6px;
  }

  .count-item strong {
    font-size: 22px;
  }

  .count-item span {
    font-size: 12px;
    min-height: 2.2em;
  }

  .section-title {
    font-size: clamp(34px, 12vw, 56px);
    margin-bottom: 10px;
  }

  .intro-text,
  .detail-card p,
  .contact-card p,
  .venue-copy,
  .rsvp-text {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.18;
  }

  .venue-name {
    font-size: clamp(34px, 10vw, 48px);
  }

  .detail-card h3,
  .contact-card h3,
  .form-title {
    font-size: clamp(30px, 8vw, 40px);
  }

  label,
  legend {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .hint {
    font-size: clamp(17px, 4.4vw, 22px);
  }

  input[type="text"],
  input[type="tel"],
  textarea,
  select {
    max-width: 100%;
    font-size: 22px;
    padding: 12px 14px;
  }

  input::placeholder,
  textarea::placeholder {
    font-size: 0.82em;
  }

  .option {
    width: 100%;
    max-width: 100%;
  }

  .option span {
    font-size: clamp(21px, 5.5vw, 28px);
  }

  .button {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }

  .chip {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 18px;
  }

  .notice {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .hero-names {
    font-size: clamp(40px, 14vw, 60px);
  }

  .hero-date {
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  .section-title {
    font-size: clamp(30px, 11vw, 46px);
  }

  .intro-text,
  .detail-card p,
  .contact-card p,
  .venue-copy,
  .rsvp-text {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .venue-name {
    font-size: clamp(30px, 9.5vw, 42px);
  }

  .button,
  .chip {
    font-size: 17px;
  }

  input::placeholder,
  textarea::placeholder {
    font-size: 0.76em;
  }
}

@media (min-width: 760px) {
  .page { padding-top: 30px; padding-bottom: 70px; }
  .hero-card { padding: 28px 26px 38px; }
  .section { padding: 34px 28px; }
  .venue-grid { grid-template-columns: 1.05fr .95fr; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countdown { gap: 16px; }
  form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.full, .form-card > .rsvp-text, .form-actions, .notice, fieldset.full { grid-column: 1 / -1; }
}
