/* ─────────────────────────────────
   Wedding Theme – Mokuren & Sakira
   ───────────────────────────────── */

:root {
  --bg: #faf6f2;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #3a302b;
  --text-light: #7a6e66;
  --accent: #c4917e;
  --accent-dark: #a06b56;
  --accent-light: #e8cfc4;
  --gold: #c5a97d;
  --gold-light: #e6dbc8;
  --line: rgba(60, 48, 43, 0.08);
  --shadow-sm: 0 4px 16px rgba(90, 60, 40, 0.06);
  --shadow-md: 0 12px 40px rgba(90, 60, 40, 0.08);
  --shadow-lg: 0 24px 80px rgba(90, 60, 40, 0.10);
  --radius: 20px;
  --radius-lg: 32px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif JP", "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.3;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px clamp(16px, 4vw, 48px);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(250, 246, 242, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
}

.brand .amp {
  color: var(--accent);
  font-style: italic;
  margin: 0 2px;
}

.tab-buttons {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 999px;
  padding: 4px;
}

.tab-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.tab-btn.active {
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text);
}

.tab-btn-secret {
  color: rgba(122, 110, 102, 0.72);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.tab-btn-secret.active {
  color: var(--accent-dark);
}

.tab-btn[hidden] {
  display: none;
}

/* ── Tab content ── */
.tab-content {
  display: none;
  animation: fadeUp 0.6s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 145, 126, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(197, 169, 125, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
  pointer-events: none;
}

/* Decorative lines */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--gold-light), transparent);
  pointer-events: none;
}

.hero::before {
  top: 60px;
  left: 15%;
}

.hero::after {
  bottom: 40px;
  right: 18%;
}

.hero-body {
  position: relative;
  max-width: 800px;
}

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.couple-names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.name-groom,
.name-bride {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
}

.name-bride {
  color: var(--accent-dark);
}

.name-divider {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
}

.hero-date {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.hero-venue {
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-light);
  line-height: 2;
  max-width: 42em;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.meta-item {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 28px;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
}

.label {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.meta-item strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.scroll-hint span {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Sections ── */
.section {
  padding: 60px clamp(20px, 4vw, 64px);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.08em;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card.glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 8px 0 16px;
  letter-spacing: 0.06em;
}

.card p {
  color: var(--text-light);
  line-height: 2;
}

.signature {
  margin-top: 20px;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.1em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list.compact {
  margin-top: 12px;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 69px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--gold-light);
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px 0;
}

.tl-time {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  padding-top: 2px;
  text-align: right;
}

.tl-dot {
  position: relative;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 8px;
  justify-self: center;
  box-shadow: 0 0 0 4px var(--gold-light);
}

.tl-body h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.tl-body p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ── Access ── */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.access-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.access-card p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.map-card {
  padding: 12px;
}

.map-card iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 12px);
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.button svg {
  flex-shrink: 0;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 145, 126, 0.25);
}

.button.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(196, 145, 126, 0.3);
}

.button.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button.outline:hover {
  background: var(--surface-solid);
  border-color: var(--accent-light);
}

/* ── RSVP Tab ── */
.rsvp-hero {
  padding: 140px clamp(20px, 6vw, 80px) 48px;
  text-align: center;
}

.rsvp-hero .eyebrow {
  opacity: 0.72;
}

.rsvp-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.1em;
  margin: 12px 0 16px;
}

.rsvp-hero .lead {
  margin: 0 auto;
}

.rsvp-section {
  padding-top: 20px;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.rsvp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(232, 207, 196, 0.15);
  border: 1px solid var(--line);
}

.invite-panel h3 {
  font-size: 1.3rem;
  margin: 8px 0 4px;
  letter-spacing: 0.04em;
}

.invite-panel p {
  font-size: 0.92rem;
}

.note {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── Form ── */
.rsvp-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.field span {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(196, 145, 126, 0.1);
}

.field textarea {
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 1.6em;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
}

.form-status.error {
  color: #b35454;
}

.form-status.success {
  color: #4a8a6e;
}

.guest-login-wrap {
  max-width: 720px;
}

.guest-login-card {
  text-align: center;
}

.guest-login-copy {
  margin: 10px 0 18px;
}

.guest-login-form {
  display: grid;
  gap: 16px;
}

.guest-login-field {
  text-align: left;
}

.guest-login-actions {
  justify-content: center;
}

.guest-links-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.guest-links-main {
  width: min(100%, 760px);
}

.guest-links-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.guest-links-copy {
  color: var(--text-light);
  margin-bottom: 24px;
}

.guest-links-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.invite-result {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.invite-result-name {
  font-family: "Noto Serif JP", serif;
  color: var(--text);
  margin-bottom: 8px;
}

.invite-result-link {
  display: block;
  word-break: break-all;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.guest-page-view {
  display: grid;
  gap: 24px;
}

.guest-page-hero-card h2 {
  margin-bottom: 10px;
}

.guest-page-subtitle,
.guest-page-copy {
  color: var(--text-light);
}

.guest-page-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.guest-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.guest-page-card h3,
.guest-gallery-card h3 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.guest-page-list {
  margin-top: 16px;
}

.photo-upload-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.guest-gallery-card {
  display: grid;
  gap: 16px;
}

.guest-gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
}

.photo-card a {
  display: block;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-card-body {
  padding: 12px 14px 14px;
}

.photo-card-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
}

.photo-card-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── Footer ── */
.footer {
  padding: 48px 20px 56px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
.hide-sp {
  display: inline;
}

@media (max-width: 900px) {
  .access-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    flex-direction: column;
    gap: 8px;
  }

  .tab-buttons {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 90svh;
    padding-top: 100px;
  }

  .couple-names {
    flex-direction: column;
    gap: 4px;
  }

  .name-divider {
    font-size: 1.2rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
  }

  .meta-item {
    width: 100%;
    max-width: 280px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 50px 1fr;
    gap: 8px;
  }

  .tl-dot {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hide-sp {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-hero {
    padding-top: 120px;
  }

  .guest-links-form {
    grid-template-columns: 1fr;
  }

  .guest-page-grid {
    grid-template-columns: 1fr;
  }

  .guest-gallery-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ─────────────────────────────────
   Design refresh — warm editorial minimalism
   Inspired by the DESIGN.md collection
   ───────────────────────────────── */

:root {
  --bg: #f4efe8;
  --surface: rgba(255, 251, 247, 0.72);
  --surface-solid: #fffdfa;
  --text: #2f2824;
  --text-light: #6a5d54;
  --accent: #b97c67;
  --accent-dark: #8d5f4c;
  --accent-light: #ead7cd;
  --gold: #b99a6b;
  --gold-light: #eadfcd;
  --line: rgba(70, 54, 44, 0.10);
  --shadow-sm: 0 8px 24px rgba(68, 43, 31, 0.06);
  --shadow-md: 0 20px 60px rgba(68, 43, 31, 0.10);
  --shadow-lg: 0 28px 90px rgba(68, 43, 31, 0.14);
  --radius: 22px;
  --radius-lg: 34px;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(191, 140, 121, 0.16), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(185, 154, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf8f4 0%, #f4efe8 38%, #f2ece5 100%);
  color: var(--text);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 100% 140px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  opacity: 0.5;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.page-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.7;
}

.blur-a {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(185, 124, 103, 0.18) 0%, rgba(185, 124, 103, 0) 70%);
}

.blur-b {
  width: 24rem;
  height: 24rem;
  left: -6rem;
  top: 32rem;
  background: radial-gradient(circle, rgba(185, 154, 107, 0.14) 0%, rgba(185, 154, 107, 0) 72%);
}

.page-gridline {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(111, 90, 76, 0.05) 50%, transparent 100%);
  opacity: 0.3;
}

body > *:not(.page-backdrop) {
  position: relative;
  z-index: 1;
}

.nav {
  padding: 18px clamp(16px, 4vw, 40px);
}

.nav.scrolled {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.nav-inner {
  max-width: 1180px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(92, 70, 56, 0.10);
  background: rgba(255, 252, 248, 0.72);
  backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(68, 43, 31, 0.06);
}

.brand-wrap {
  display: grid;
  gap: 2px;
}

.brand {
  font-size: 1.36rem;
  letter-spacing: 0.16em;
}

.brand-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.14em;
}

.tab-buttons {
  gap: 6px;
  padding: 5px;
  background: rgba(113, 90, 76, 0.06);
  border: 1px solid rgba(92, 70, 56, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tab-btn {
  min-height: 40px;
  padding-inline: 20px;
}

.tab-btn.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 245, 240, 0.95) 100%);
  box-shadow: 0 8px 20px rgba(68, 43, 31, 0.08);
}

.hero {
  padding: 148px clamp(20px, 6vw, 72px) 96px;
}

.hero-overlay {
  background:
    radial-gradient(circle at 14% 18%, rgba(185, 124, 103, 0.12) 0%, transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(185, 154, 107, 0.14) 0%, transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 40%);
}

.hero::before,
.hero::after {
  height: 170px;
  opacity: 0.8;
}

.hero-shell {
  position: relative;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  text-align: left;
}

.hero-copy .eyebrow,
.hero-copy .couple-names {
  justify-content: flex-start;
}

.hero-copy .lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.55vw, 1.1rem);
}

.hero-date {
  margin-bottom: 8px;
  font-size: clamp(1.18rem, 2.4vw, 1.72rem);
  color: rgba(62, 48, 40, 0.76);
}

.hero-venue {
  margin-bottom: 22px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-visual-stack {
  display: grid;
  gap: 18px;
}

.hero-photo-card {
  padding: 14px;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 35%;
  border-radius: calc(var(--radius-lg) - 10px);
  box-shadow: 0 18px 44px rgba(68, 43, 31, 0.16);
}

.hero-photo-caption {
  padding: 14px 8px 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.hero-highlight {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(253, 248, 244, 0.72) 100%),
    rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(92, 70, 56, 0.08);
  box-shadow: 0 24px 80px rgba(68, 43, 31, 0.12);
}

.hero-highlight h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.hero-panel-copy {
  color: var(--text-light);
  line-height: 1.9;
}

.hero-highlight .hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-highlight .meta-item {
  min-width: 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-highlight .meta-item:last-child {
  grid-column: 1 / -1;
}

.hero-detail-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.hero-detail-list li {
  padding-top: 10px;
  border-top: 1px solid rgba(92, 70, 56, 0.10);
  color: var(--text-light);
}

.scroll-hint {
  bottom: 24px;
}

.section {
  padding: 74px clamp(20px, 4vw, 64px);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  letter-spacing: 0.04em;
}

.section-lead {
  margin-top: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

.story-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  margin-top: 12px;
}

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

.story-photo {
  overflow: hidden;
  padding: 14px;
}

.story-photo img,
.photo-tile img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.story-photo-feature {
  display: grid;
  gap: 18px;
}

.story-photo-feature img {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-lg) - 10px);
}

.story-photo-feature figcaption {
  display: grid;
  gap: 8px;
  padding-inline: 6px;
}

.story-photo-feature figcaption strong {
  font-family: "Noto Serif JP", serif;
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.story-photo-feature figcaption p {
  color: var(--text-light);
}

.story-photo-stack .story-photo img {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-lg) - 10px);
}

.story-photo-stack .story-photo figcaption,
.photo-tile figcaption {
  padding: 14px 6px 4px;
  color: var(--text-light);
  line-height: 1.8;
}

.photo-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.photo-strip-item {
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(92, 70, 56, 0.08);
  background: rgba(255, 251, 247, 0.62);
  box-shadow: 0 12px 30px rgba(68, 43, 31, 0.06);
}

.photo-strip-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.photo-strip-item figcaption {
  padding: 12px 4px 2px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.92rem;
}

.photo-tile {
  padding: 12px;
  border-radius: 28px;
  border: 1px solid rgba(92, 70, 56, 0.08);
  background: rgba(255, 251, 247, 0.68);
  box-shadow: 0 18px 40px rgba(68, 43, 31, 0.08);
}

.photo-tile img {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}

.photo-tile-wide {
  grid-column: span 2;
}

.photo-tile-wide img {
  aspect-ratio: 16 / 9;
}

.feature-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.card.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(252, 246, 241, 0.72) 100%),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(92, 70, 56, 0.08);
  box-shadow: var(--shadow-md);
}

.card.glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-emphasis {
  background:
    radial-gradient(circle at top right, rgba(185, 124, 103, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(251, 244, 238, 0.82) 100%);
}

.card h2,
.card h3,
.invite-panel h3,
.guest-page-card h3,
.guest-gallery-card h3,
.access-card h3 {
  color: var(--text);
}

.card p,
.guest-page-subtitle,
.guest-page-copy,
.tl-body p,
.access-card p,
.guest-links-copy {
  color: var(--text-light);
}

.info-list li {
  border-bottom-color: rgba(92, 70, 56, 0.10);
}

.timeline {
  padding: 20px 28px 20px 36px;
  border-radius: 28px;
  border: 1px solid rgba(92, 70, 56, 0.08);
  background: rgba(255, 251, 247, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.timeline::before {
  left: 78px;
  top: 34px;
  bottom: 34px;
  background: linear-gradient(180deg, rgba(185, 154, 107, 0.10), rgba(185, 154, 107, 0.8), rgba(185, 154, 107, 0.10));
}

.timeline-item {
  grid-template-columns: 66px 24px 1fr;
  gap: 16px;
  padding: 24px 0;
}

.tl-time {
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.tl-dot {
  width: 12px;
  height: 12px;
  margin-top: 9px;
  box-shadow: 0 0 0 6px rgba(233, 223, 205, 0.8);
}

.access-grid {
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
}

.map-card {
  padding: 14px;
}

.map-card iframe {
  min-height: 420px;
  filter: saturate(0.85) contrast(1.02);
}

.btn-group {
  margin-top: 26px;
}

.button {
  min-height: 52px;
  padding: 0 26px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.button.primary {
  background: linear-gradient(135deg, #ba7b66 0%, #98644e 100%);
  box-shadow: 0 12px 28px rgba(151, 100, 78, 0.28);
}

.button.primary:hover {
  background: linear-gradient(135deg, #af715d 0%, #875846 100%);
  box-shadow: 0 18px 34px rgba(151, 100, 78, 0.34);
}

.button.outline {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(92, 70, 56, 0.10);
}

.button.outline:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(185, 124, 103, 0.24);
}

.rsvp-hero {
  padding: 152px clamp(20px, 6vw, 80px) 44px;
}

.rsvp-hero .lead {
  max-width: 46em;
}

.rsvp-layout,
.guest-page-view,
.guest-page-grid {
  gap: 28px;
}

.invite-panel {
  background: linear-gradient(180deg, rgba(234, 215, 205, 0.34) 0%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(92, 70, 56, 0.08);
}

.field span {
  color: rgba(47, 40, 36, 0.88);
}

.field input,
.field select,
.field textarea {
  min-height: 50px;
  border: 1px solid rgba(92, 70, 56, 0.10);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.field textarea {
  min-height: 132px;
  padding-block: 14px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(185, 124, 103, 0.28);
  box-shadow: 0 0 0 4px rgba(185, 124, 103, 0.10);
}

.guest-login-wrap {
  max-width: 860px;
}

.guest-login-card {
  padding: 44px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(185, 154, 107, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(251, 246, 240, 0.78) 100%);
}

.guest-login-copy {
  max-width: 42em;
  margin: 12px auto 20px;
}

.guest-login-form {
  max-width: 560px;
  margin: 0 auto;
}

.guest-links-main {
  width: min(100%, 840px);
}

.invite-result,
.photo-card {
  border-color: rgba(92, 70, 56, 0.10);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(68, 43, 31, 0.08);
}

.photo-card img {
  height: 200px;
}

.footer {
  padding: 58px 20px 74px;
  border-top: none;
}

.footer::before {
  content: "";
  display: block;
  width: min(1120px, calc(100% - 40px));
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 70, 56, 0.14) 20%, rgba(185, 124, 103, 0.18) 50%, rgba(92, 70, 56, 0.14) 80%, transparent 100%);
}

.footer-note {
  margin-top: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-light);
}

.fade-in {
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

@media (max-width: 900px) {
  .hero-shell,
  .story-photo-grid,
  .photo-masonry,
  .photo-strip,
  .feature-grid,
  .access-grid,
  .rsvp-layout,
  .guest-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-copy .couple-names,
  .hero-actions {
    justify-content: center;
  }

  .hero-highlight {
    max-width: 680px;
    margin: 0 auto;
  }

  .photo-tile-wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  body::after {
    opacity: 0.24;
    background-size: 100% 110px;
  }

  .nav {
    padding: 14px 14px 0;
  }

  .nav-inner {
    padding: 14px;
    border-radius: 28px;
  }

  .brand-wrap {
    text-align: center;
  }

  .hero {
    padding: 126px 18px 80px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button,
  .btn-group .button,
  .form-actions .button {
    width: 100%;
  }

  .hero-highlight,
  .card.glass,
  .guest-login-card {
    padding: 28px 22px;
  }

  .hero-photo-card,
  .story-photo,
  .photo-tile {
    padding: 10px;
  }

  .hero-highlight .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-highlight .meta-item:last-child {
    grid-column: auto;
  }

  .timeline {
    padding: 12px 18px 12px 20px;
  }

  .timeline-item {
    grid-template-columns: 54px 1fr;
  }

  .scroll-hint {
    bottom: 18px;
  }

  .map-card iframe {
    min-height: 320px;
  }

  .photo-masonry {
    gap: 16px;
  }
}
