:root {
  --bg-top: #f6efe6;
  --bg-bottom: #e4c9ba;
  --card: rgba(255, 252, 248, 0.84);
  --text: #34251f;
  --muted: #6b5449;
  --border: rgba(52, 37, 31, 0.1);
  --shadow: 0 24px 60px rgba(80, 49, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.page {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 28px;
}

.page-home {
  width: min(1080px, calc(100% - 32px));
  padding: 16px 0 40px;
  gap: 24px;
}

.page-narrow {
  width: min(840px, calc(100% - 48px));
}

.hero-cover {
  position: relative;
  min-height: calc(100svh - 32px);
  display: grid;
  place-items: center;
  padding: 48px 28px 88px;
  overflow: hidden;
  border: 1px solid rgba(52, 37, 31, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.72), transparent 40%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.88), rgba(255, 248, 243, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 45%),
    radial-gradient(circle at bottom, rgba(228, 201, 186, 0.32), transparent 40%);
  pointer-events: none;
}

.hero-cover-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 520px);
}

.hero-copy {
  display: grid;
  gap: 10px;
  padding: 0;
  text-align: center;
}

.eyebrow,
.label {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(1.95rem, 4.8vw, 3.85rem);
  line-height: 0.98;
  font-weight: 600;
}

.hero-title {
  display: grid;
  gap: 0;
}

.hero-title span {
  display: block;
}

.hero-date {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.intro,
.footer,
.section-intro {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer {
  margin-top: 6px;
}

.content-stack {
  display: grid;
  gap: 24px;
}

.section-anchor {
  display: block;
  height: 0;
  margin: 0;
  visibility: hidden;
}

.hero-details,
.hero-registry {
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(52, 37, 31, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-details {
  text-align: left;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.sealing-details {
  text-align: center;
}

.sealing-details > h2 {
  margin: 12px 0;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 600;
}

.sealing-details > .section-intro {
  max-width: 42rem;
  margin: 0 auto;
}

.sealing-photo {
  margin: 24px auto 0;
}

.sealing-details .temple-photo {
  margin-left: auto;
  margin-right: auto;
}

.sealing-details .secret-grid {
  margin-top: 24px;
}

.hero-details .tab-row {
  display: flex;
  justify-content: center;
}

.hero-details > .eyebrow {
  text-align: center;
}

.detail-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.detail-date {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.tab-panel[hidden] {
  display: none !important;
}

.detail-block {
  padding: 0 18px 0 0;
  border-right: 1px solid rgba(52, 37, 31, 0.08);
}

.detail-block:last-child {
  padding-right: 0;
  border-right: 0;
}

.detail-block h2 {
  margin: 10px 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.agenda-list {
  margin: 0;
}

.agenda-day + .agenda-day {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(52, 37, 31, 0.08);
}

.agenda-day-title {
  margin: 0 0 12px;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-item + .agenda-item {
  margin-top: 14px;
}

.agenda-item dt,
.agenda-item dd {
  margin: 0;
}

.agenda-time {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.agenda-item strong {
  display: block;
  color: var(--text);
}

.agenda-meta,
.agenda-note {
  display: block;
  margin-top: 3px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
}

.agenda-note {
  font-style: italic;
}

.agenda-callout {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(52, 37, 31, 0.08);
  color: var(--muted);
}

.detail-block p,
.agenda-item dd,
.hero-registry .section-intro {
  color: var(--muted);
}

.hero-photo {
  margin: 0;
  width: min(100%, 390px);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 56svh;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(52, 37, 31, 0.22);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(52, 37, 31, 0.18);
  background: rgba(255, 255, 255, 0.48);
  position: relative;
}

.scroll-cue-icon::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.hero-registry {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-registry h2 {
  margin: 12px 0;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 600;
}

.hero-registry .link-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.primary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(52, 37, 31, 0.12);
}

.secret-hero {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.76);
  box-shadow: var(--shadow);
  text-align: center;
}

.secret-hero .hero-photo {
  margin: 0 auto 22px;
}

.temple-photo {
  width: min(100%, 640px);
}

.temple-photo img {
  aspect-ratio: 16 / 10;
  max-height: none;
  object-position: center;
}

.secret-grid {
  display: grid;
  gap: 20px;
}

.secret-note {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(249, 238, 231, 0.88));
}

.info-card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.72);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin: 12px 0 12px;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 600;
}

.info-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.hero-registry .color-swatches {
  justify-content: center;
}

.color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(52, 37, 31, 0.12);
}

.swatch-blue {
  background-color: #c0d4fb;
}

.swatch-pink {
  background-color: #ffebf1;
}

.tab-row {
  display: inline-flex;
  gap: 10px;
  margin: 14px 0 20px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(52, 37, 31, 0.08);
}

.tab-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active {
  color: var(--text);
  background: rgba(228, 201, 186, 0.75);
}

.tab-panel h2 {
  margin-top: 0;
}

.map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(52, 37, 31, 0.12);
  font-size: 0.95rem;
}

.detail-block .map-link {
  display: flex;
  width: fit-content;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.info-card .map-link,
.agenda-item .map-link {
  display: flex;
  width: fit-content;
  justify-content: center;
  margin: 10px auto 0;
}

.parking-image-link {
  display: block;
  margin-top: 16px;
}

.parking-image {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(52, 37, 31, 0.12);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.link-list a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(52, 37, 31, 0.12);
}

.link-list a[aria-disabled="true"] {
  cursor: default;
}

@media (max-width: 640px) {
  .page {
    width: min(100%, calc(100% - 28px));
    padding: 14px 0 24px;
    gap: 18px;
  }

  .page-home {
    width: min(100%, calc(100% - 20px));
    padding: 10px 0 28px;
    gap: 18px;
  }

  .page-narrow {
    width: min(100%, calc(100% - 28px));
  }

  .hero-cover {
    min-height: calc(100svh - 20px);
    padding: 24px 18px 76px;
    border-radius: 24px;
  }

  .hero-cover::before {
    inset: 14px;
    border-radius: 20px;
  }

  .hero-cover-inner {
    gap: 18px;
  }

  .hero-copy {
    gap: 8px;
  }

  .hero-photo {
    width: 100%;
    max-width: 340px;
  }

  .hero-photo img {
    max-height: 50svh;
    object-position: center 20%;
  }

  .hero-date,
  .scroll-cue {
    font-size: 0.72rem;
  }

  .hero-details,
  .hero-registry {
    padding: 18px 16px 14px;
  }

  .detail-panel {
    grid-template-columns: 1fr;
  }

  .detail-block {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(52, 37, 31, 0.08);
  }

  .detail-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .secret-hero {
    padding: 24px 20px;
  }

  .tab-row {
    width: 100%;
  }

  .tab-button {
    flex: 1;
  }

  .link-list {
    grid-template-columns: 1fr;
  }
}
