:root {
  --sage: #9cab8c;
  --sage-deep: #6f7f62;
  --sage-soft: #dbe2d2;
  --cream: #f6f1e8;
  --cream-deep: #ece2d3;
  --ink: #2e3427;
  --brown: #3a3024;
  --brown-soft: #f7f7f7;
  --line: rgba(46, 52, 39, 0.12);
  --line-strong: rgba(46, 52, 39, 0.22);
  --shadow: 0 26px 60px rgba(46, 52, 39, 0.12);
  --public-header-offset: 8.5rem;
  --font-display: "Sauvage", "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Circular", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--public-header-offset);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
}

.public-body {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, var(--sage-deep) 0%, #59684e 100%);
}

.admin-body {
  background: #f5efe4;
  color: var(--brown);
}

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

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

h1,
h2,
h3,
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0;
}

p {
  line-height: 1.7;
}

.flash-stack {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  display: grid;
  gap: 0.75rem;
}

.flash {
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-shell,
.admin-shell {
  min-height: 100vh;
}

.site-shell {
  padding: 0 2rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.site-shell:not(.locked-site-shell) {
  max-width: none;
  padding: 0 0 3rem;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 2rem 1rem;
  border-bottom: 1px solid rgba(58, 48, 36, 0.1);
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(151, 172, 143, 0.94);
  backdrop-filter: blur(12px);
}

.brand-block .eyebrow,
.brand {
  color: var(--brown);
}

.brand {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  text-transform: none;
  letter-spacing: 0.14em;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.site-nav,
.admin-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
}

.site-nav a {
  color: rgba(58, 48, 36, 0.72);
  padding: 0.6rem 0.25rem;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--sage-deep);
  border-color: rgba(111, 127, 98, 0.6);
}

.mobile-nav-toggle {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.guest-pill,
.tag,
.split-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

.guest-pill {
  border: 1px solid rgba(111, 127, 98, 0.22);
  color: var(--brown);
  background: rgba(255, 255, 255, 0.45);
}

.guest-pill.muted {
  color: rgba(58, 48, 36, 0.68);
}

.site-main {
  padding: 1.4rem 0 4rem;
}

.site-shell:not(.locked-site-shell) .site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.locked-site-shell {
  max-width: none;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 50% 76%, rgba(156, 171, 140, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.locked-site-shell .site-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 7vw, 5rem) 1.5rem;
}

.locked-home {
  width: min(100%, 34rem);
  text-align: center;
}

.locked-home-inner {
  display: grid;
  justify-items: center;
}

.locked-home-kicker {
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.46em;
}

.locked-home h1 {
  color: var(--brown);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.locked-home h1 span {
  display: block;
}

.locked-home-amp {
  color: var(--sage-deep);
  font-size: 0.48em;
  line-height: 1.25;
  margin: 0.08em 0 0.03em;
}

.locked-home-meta {
  margin: 1.7rem 0 0;
  color: rgba(58, 48, 36, 0.64);
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.locked-home-note {
  max-width: 24rem;
  margin: 2.2rem 0 1.55rem;
  color: rgba(58, 48, 36, 0.68);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.locked-code-form {
  display: flex;
  width: min(100%, 28rem);
  justify-content: center;
  box-shadow: 0 16px 34px rgba(46, 52, 39, 0.06);
}

.locked-code-form input {
  min-width: 0;
  border-radius: 0;
  border-color: rgba(46, 52, 39, 0.14);
  border-right: 0;
  background: rgba(255, 253, 249, 0.9);
  padding: 1.05rem 1.3rem;
  color: var(--brown);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.locked-code-form input::placeholder {
  color: rgba(58, 48, 36, 0.4);
}

.locked-code-form .button {
  border-radius: 0;
  background: var(--sage-deep);
  color: var(--cream);
  padding-inline: 1.65rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-anchor {
  scroll-margin-top: var(--public-header-offset);
}

.onepage-section {
  margin-top: 2.5rem;
}

.carousel-shell {
  position: relative;
}

.carousel-arrow {
  display: none;
}

.home-hero,
.home-grid,
.travel-grid,
.venue-grid,
.registry-layout,
.stay-layout,
.overview-grid,
.rsvp-layout {
  display: grid;
  gap: 1.5rem;
}

.home-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.hero-panel,
.content-card,
.event-card,
.venue-card,
.stay-card,
.dashboard-panel,
.table-card,
.stat-card,
.admin-login-card {
  background: rgba(246, 241, 232, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(46, 52, 39, 0.06);
}

.hero-panel,
.content-card,
.dashboard-panel,
.table-card,
.stat-card,
.admin-login-card {
  border-radius: 30px;
  padding: 1.6rem;
}

.hero-copy-panel {
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-panel h1 {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0 0.2rem;
}

.hero-location,
.hero-summary {
  max-width: 42rem;
}

.hero-media-panel {
  padding: 0;
  overflow: hidden;
}

.hero-media-panel img,
.stay-photo img,
.registry-photo img {
  height: 100%;
  object-fit: cover;
}

.countdown-card {
  display: flex;
  gap: 0.9rem;
  margin: 1.2rem 0 1.5rem;
}

.countdown-item {
  min-width: 6.3rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: var(--sage-soft);
}

.countdown-item strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag {
  background: rgba(156, 171, 140, 0.2);
  border: 1px solid rgba(111, 127, 98, 0.16);
}

.home-grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-grid-single {
  grid-template-columns: 1fr;
}

.detail-card h2,
.content-card h1,
.event-card h2,
.stay-card h2,
.venue-card h2 {
  font-size: clamp(2rem, 2.3vw, 3rem);
  margin-bottom: 0.8rem;
}

.photo-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.ribbon-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(58, 48, 36, 0.08);
  background: #e7ded1;
}

.ribbon-card img {
  aspect-ratio: 1.3;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.editorial-intro,
.section-intro-center {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.editorial-intro {
  padding: 5.5rem 0 3rem;
}

.section-kicker {
  color: var(--sage-deep);
  font-weight: 700;
}

.editorial-intro h1,
.section-intro h1,
.section-intro-center h1 {
  font-size: clamp(3.3rem, 5.8vw, 5.3rem);
  line-height: 0.96;
  text-transform: none;
  letter-spacing: 0.02em;
}

.editorial-summary,
.section-intro-center p,
.section-intro p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(46, 52, 39, 0.74);
}

.countdown-card-center {
  justify-content: center;
}

.invitation-summary-wide {
  padding: 1.8rem 2rem;
}

.invite-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.invite-footer,
.invite-actions,
.inline-form-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.invite-form {
  margin-top: 1.2rem;
}

.inline-form-row input {
  flex: 1 1 18rem;
}

.inline-form-row .button {
  flex: 0 0 auto;
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.feature-list li {
  margin-bottom: 0.65rem;
}

.locked-panel {
  padding: 2.1rem;
  text-align: center;
}

.locked-panel h2 {
  margin-bottom: 0.85rem;
}

.gallery-strip {
  display: none;
}

.gallery-card {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-card img {
  aspect-ratio: 0.88;
  object-fit: cover;
  filter: saturate(0.12) contrast(1.02);
}

.page-intro {
  margin-bottom: 1.5rem;
  max-width: 50rem;
}

.page-intro h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  text-transform: uppercase;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border: 0;
  background: transparent;
}

.event-card {
  padding: 1.8rem;
  border-radius: 30px;
  border: 1px solid rgba(46, 52, 39, 0.1);
  background: rgba(255, 253, 250, 0.82);
}

.event-card:last-child {
  border-right: 1px solid rgba(46, 52, 39, 0.1);
}

.event-card-soft h2 {
  text-transform: none;
  letter-spacing: 0.01em;
}

.event-day,
.event-meta,
.event-location {
  margin: 0 0 0.75rem;
}

.event-day {
  color: var(--sage-deep);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.event-image-wrap {
  margin: 1.3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.event-image-wrap img {
  aspect-ratio: 1.15;
  object-fit: cover;
}

.event-detail-block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.travel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.venue-grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-venue-grid {
  margin-top: 1.5rem;
}

.venue-card,
.stay-card {
  border-radius: 30px;
  padding: 1.6rem;
  background: rgba(255, 253, 250, 0.88);
  border: 1px solid rgba(58, 48, 36, 0.1);
}

.stay-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.travel-stay-layout {
  margin-top: 1.5rem;
}

.stay-card a {
  color: var(--sage-deep);
  font-weight: 600;
}

.registry-layout {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.registry-layout-flat {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 58rem;
  margin: 0 auto;
}

.faq-item {
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  position: relative;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.8rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle-icon::after {
  opacity: 0;
}

.faq-item p {
  margin: 1rem 0 0;
}

.faq-item h2 {
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.stack-form,
.stack-list,
.member-list {
  display: grid;
  gap: 1rem;
}

label,
legend,
.checkbox-group > span {
  font-weight: 600;
  font-size: 0.93rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 0.92rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1rem;
  margin: 0;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.radio-option input,
.checkbox-option input {
  width: auto;
}

.checkbox-group {
  display: grid;
  gap: 0.75rem;
  padding: 0.35rem 0 0.1rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.88rem 1.25rem;
  background: var(--sage-deep);
  color: var(--cream);
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

.button.ghost {
  background: transparent;
  color: inherit;
  border-color: var(--line-strong);
}

.helper-text {
  color: rgba(46, 52, 39, 0.7);
}

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

.rsvp-layout-stack {
  gap: 1.1rem;
}

.rsvp-intro {
  margin-bottom: 3rem;
}

.rsvp-intro h1 {
  color: var(--cream);
}

.rsvp-intro p {
  color: rgba(246, 241, 232, 0.78);
}

.rsvp-experience {
  width: min(100%, 64rem);
  margin: 0 auto;
}

.rsvp-guest-nav {
  margin-bottom: 2rem;
}

.rsvp-guest-nav .eyebrow {
  color: rgba(246, 241, 232, 0.7);
}

.rsvp-guest-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rsvp-guest-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  background: var(--cream-deep);
  color: var(--brown);
  border: 1px solid rgba(246, 241, 232, 0.24);
  box-shadow: 0 10px 26px rgba(46, 52, 39, 0.1);
}

.rsvp-member-stack {
  display: grid;
  gap: 2rem;
}

.rsvp-member-panel {
  scroll-margin-top: 8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(246, 241, 232, 0.18);
}

.rsvp-member-panel .section-kicker {
  color: rgba(246, 241, 232, 0.7);
  display: block;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(246, 241, 232, 0.22);
  font-weight: 400;
}

.rsvp-event-list {
  display: grid;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 30px;
  background: rgba(46, 52, 39, 0.18);
  overflow: hidden;
}

.rsvp-event-row {
  border: 0;
  border-radius: 0;
  padding: 1.3rem 1.5rem;
}

.rsvp-event-row + .rsvp-event-row {
  border-top: 1px solid rgba(246, 241, 232, 0.12);
}

.rsvp-event-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 1.5rem;
}

.rsvp-event-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--cream);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
}

.rsvp-event-card-inner > p:not(.rsvp-event-title) {
  grid-column: 1;
  grid-row: 2;
  margin: 0.2rem 0 0;
  color: rgba(246, 241, 232, 0.58);
  font-size: 0.9rem;
}

.rsvp-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  gap: 0.6rem;
  border: 0;
}

.rsvp-toggle label {
  position: relative;
  display: flex;
  font-size: 0.82rem;
  font-weight: 600;
}

.rsvp-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rsvp-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.6rem;
  padding: 0.85rem 1rem;
  color: rgba(246, 241, 232, 0.72);
  border: 1px solid rgba(246, 241, 232, 0.2);
  border-radius: 999px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.rsvp-toggle input:checked + span {
  background: var(--cream-deep);
  color: var(--brown);
}

.rsvp-field-block {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.rsvp-field-block .eyebrow {
  color: rgba(246, 241, 232, 0.7);
}

.rsvp-field-block textarea {
  border-radius: 28px;
  border-color: rgba(246, 241, 232, 0.18);
  background: rgba(46, 52, 39, 0.18);
  color: var(--cream);
}

.rsvp-field-block textarea::placeholder {
  color: rgba(246, 241, 232, 0.52);
}

.rsvp-household-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.rsvp-submit-button {
  width: 100%;
  border-radius: 999px;
  padding: 1.05rem 1.2rem;
  background: var(--cream-deep);
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.86rem;
  font-weight: 700;
}

.rsvp-household-panel .helper-text {
  margin: 0;
  text-align: center;
  color: rgba(246, 241, 232, 0.58);
}

.member-card {
  padding: 1rem;
  border-radius: 0;
  background: rgba(156, 171, 140, 0.08);
  border: 1px solid rgba(111, 127, 98, 0.12);
}

.site-shell:not(.locked-site-shell) {
  color: var(--cream);
}

.site-shell:not(.locked-site-shell) .site-header {
  background: rgba(219, 226, 210, 0.95);
  border-bottom-color: rgba(46, 52, 39, 0.18);
  color: var(--ink);
}

.site-shell:not(.locked-site-shell) .brand-block .eyebrow,
.site-shell:not(.locked-site-shell) .brand,
.site-shell:not(.locked-site-shell) .site-nav a,
.site-shell:not(.locked-site-shell) .guest-pill,
.site-shell:not(.locked-site-shell) .button.ghost {
  color: var(--ink);
}

.site-shell:not(.locked-site-shell) .site-nav a {
  border-bottom-color: transparent;
}

.site-shell:not(.locked-site-shell) .site-nav a.active,
.site-shell:not(.locked-site-shell) .site-nav a:hover {
  color: var(--ink);
  border-color: rgba(46, 52, 39, 0.45);
}

.site-shell:not(.locked-site-shell) .editorial-intro h1,
.site-shell:not(.locked-site-shell) .section-intro h1,
.site-shell:not(.locked-site-shell) .section-intro-center h1,
.site-shell:not(.locked-site-shell) .page-intro h1 {
  color: var(--cream);
}

.site-shell:not(.locked-site-shell) .section-kicker,
.site-shell:not(.locked-site-shell) .eyebrow {
  color: var(--sage-soft);
}

.site-shell:not(.locked-site-shell) .editorial-summary,
.site-shell:not(.locked-site-shell) .section-intro-center p,
.site-shell:not(.locked-site-shell) .section-intro p,
.site-shell:not(.locked-site-shell) .page-intro p,
.site-shell:not(.locked-site-shell) .helper-text {
  color: rgba(246, 241, 232, 0.86);
}

.site-shell:not(.locked-site-shell) .content-card,
.site-shell:not(.locked-site-shell) .event-card,
.site-shell:not(.locked-site-shell) .venue-card,
.site-shell:not(.locked-site-shell) .stay-card,
.site-shell:not(.locked-site-shell) .faq-item,
.site-shell:not(.locked-site-shell) .countdown-item,
.site-shell:not(.locked-site-shell) .tag,
.site-shell:not(.locked-site-shell) .guest-pill,
.site-shell:not(.locked-site-shell) .button,
.site-shell:not(.locked-site-shell) input,
.site-shell:not(.locked-site-shell) textarea,
.site-shell:not(.locked-site-shell) select,
.site-shell:not(.locked-site-shell) fieldset,
.site-shell:not(.locked-site-shell) .rsvp-guest-chip,
.site-shell:not(.locked-site-shell) .rsvp-event-list,
.site-shell:not(.locked-site-shell) .rsvp-event-row,
.site-shell:not(.locked-site-shell) .rsvp-toggle,
.site-shell:not(.locked-site-shell) .rsvp-toggle span {
  background: var(--sage-soft);
  color: var(--ink);
  border-color: rgba(46, 52, 39, 0.18);
}

.site-shell:not(.locked-site-shell) .content-card *,
.site-shell:not(.locked-site-shell) .event-card *,
.site-shell:not(.locked-site-shell) .venue-card *,
.site-shell:not(.locked-site-shell) .stay-card *,
.site-shell:not(.locked-site-shell) .faq-item *,
.site-shell:not(.locked-site-shell) .countdown-item *,
.site-shell:not(.locked-site-shell) .tag,
.site-shell:not(.locked-site-shell) .guest-pill,
.site-shell:not(.locked-site-shell) .button,
.site-shell:not(.locked-site-shell) input,
.site-shell:not(.locked-site-shell) textarea,
.site-shell:not(.locked-site-shell) select,
.site-shell:not(.locked-site-shell) .rsvp-guest-chip,
.site-shell:not(.locked-site-shell) .rsvp-event-row * {
  color: var(--ink);
}

.site-shell:not(.locked-site-shell) .content-card .section-kicker,
.site-shell:not(.locked-site-shell) .event-card .section-kicker,
.site-shell:not(.locked-site-shell) .venue-card .section-kicker,
.site-shell:not(.locked-site-shell) .stay-card .section-kicker,
.site-shell:not(.locked-site-shell) .event-day,
.site-shell:not(.locked-site-shell) .event-detail-block .eyebrow {
  color: var(--sage-deep);
}

.site-shell:not(.locked-site-shell) .event-meta,
.site-shell:not(.locked-site-shell) .event-location,
.site-shell:not(.locked-site-shell) .faq-item p,
.site-shell:not(.locked-site-shell) .feature-list,
.site-shell:not(.locked-site-shell) .content-card p,
.site-shell:not(.locked-site-shell) .event-card p,
.site-shell:not(.locked-site-shell) .venue-card p,
.site-shell:not(.locked-site-shell) .stay-card p {
  color: rgba(46, 52, 39, 0.78);
}

.site-shell:not(.locked-site-shell) .button {
  border-color: rgba(46, 52, 39, 0.24);
  font-weight: 700;
}

.site-shell:not(.locked-site-shell) .button.ghost {
  background: var(--sage-soft);
  color: var(--ink);
  border-color: rgba(46, 52, 39, 0.24);
}

.site-shell:not(.locked-site-shell) input::placeholder,
.site-shell:not(.locked-site-shell) textarea::placeholder {
  color: rgba(46, 52, 39, 0.56);
}

.site-shell:not(.locked-site-shell) .rsvp-member-panel {
  border-top-color: rgba(219, 226, 210, 0.45);
}

.site-shell:not(.locked-site-shell) .rsvp-field-block .eyebrow {
  color: rgba(246, 241, 232, 0.7);
}

.site-shell:not(.locked-site-shell) .rsvp-member-panel .section-kicker {
  color: rgba(246, 241, 232, 0.7);
  border-bottom-color: rgba(219, 226, 210, 0.45);
}

.site-shell:not(.locked-site-shell) .rsvp-event-title,
.site-shell:not(.locked-site-shell) .rsvp-event-card-inner > p {
  color: var(--ink);
}

.site-shell:not(.locked-site-shell) .rsvp-event-row + .rsvp-event-row {
  border-top-color: rgba(46, 52, 39, 0.16);
}

.site-shell:not(.locked-site-shell) .rsvp-toggle {
  background: transparent;
  border-color: transparent;
}

.site-shell:not(.locked-site-shell) .rsvp-toggle span {
  border-color: rgba(46, 52, 39, 0.24);
}

.site-shell:not(.locked-site-shell) .rsvp-toggle input:checked + span {
  background: var(--sage-deep);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: 0 0.7rem 1.4rem rgba(46, 52, 39, 0.16);
}

.site-shell:not(.locked-site-shell) .rsvp-household-panel .helper-text {
  color: rgba(246, 241, 232, 0.78);
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.admin-sidebar {
  min-height: 100vh;
  background: #2d241a;
  color: #f5efe4;
  padding: 2rem 1.4rem;
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.admin-brand {
  font-size: 2.4rem;
}

.admin-sidebar-subtitle {
  color: rgba(245, 239, 228, 0.65);
}

.admin-nav {
  display: grid;
  gap: 0.2rem;
}

.admin-nav a {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: rgba(245, 239, 228, 0.7);
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(198, 122, 77, 0.14);
  color: #fff;
}

.admin-sidebar-meta {
  display: grid;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 239, 228, 0.14);
}

.meta-label {
  margin: 0 0 0.3rem;
  color: rgba(245, 239, 228, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.admin-signout {
  color: #f5efe4;
  border-color: rgba(245, 239, 228, 0.18);
}

.admin-main {
  padding: 2rem;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.admin-toolbar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card h2 {
  font-size: 3rem;
  color: #c67a4d;
}

.stat-card p,
.stat-card span {
  margin: 0.25rem 0;
}

.overview-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.25rem;
}

.dashboard-panel-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(58, 48, 36, 0.08);
}

.progress-summary,
.split-row,
.row-card,
.form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #eadfce;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  display: block;
  height: 100%;
  background: #c67a4d;
  border-radius: inherit;
}

.split-list {
  display: grid;
  gap: 0.9rem;
}

.split-pill {
  background: #e6edde;
  color: #51654a;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid rgba(58, 48, 36, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 48, 36, 0.68);
}

.status-chip {
  min-width: 4.2rem;
  padding: 0.35rem 0.7rem;
}

.guest-response-name {
  display: block;
  margin: 0.45rem 0 0.25rem;
  color: rgba(58, 48, 36, 0.68);
  font-size: 0.78rem;
}

.status-chip.yes {
  background: #e3edd7;
  color: #506347;
}

.status-chip.no {
  background: #f2dfd6;
  color: #8d4e44;
}

.status-chip.neutral {
  background: #ece4d8;
  color: #7b7165;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 1.5rem;
}

.guest-list-controls {
  margin-bottom: 1.25rem;
  padding: 1.4rem;
}

.guest-list-toolbar {
  display: block;
}

.guest-list-toolbar input {
  max-width: 22rem;
}

.guest-list-helper {
  margin: 0.85rem 0 1rem;
}

.guest-add-panel summary {
  list-style: none;
}

.guest-add-panel summary::-webkit-details-marker {
  display: none;
}

.add-row-button {
  display: inline-flex;
  margin-bottom: 0.8rem;
  background: #2f261b;
  color: #fff7ef;
}

.guest-add-form {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.guest-add-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.guest-list-card {
  border: 1px solid rgba(58, 48, 36, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.92);
}

.guest-list-head,
.guest-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.6fr) minmax(320px, 1.7fr) minmax(180px, 1fr) 110px 92px;
  gap: 1.2rem;
  align-items: center;
}

.guest-list-head {
  padding: 1rem 1.4rem;
  background: rgba(255, 252, 247, 0.95);
  border-bottom: 1px solid rgba(58, 48, 36, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 48, 36, 0.68);
}

.guest-list-row {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(58, 48, 36, 0.08);
  background: rgba(246, 241, 232, 0.82);
}

.guest-list-row:last-child {
  border-bottom: none;
}

.guest-list-cell {
  min-width: 0;
}

.guest-group-name {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

.guest-code {
  display: inline-block;
  color: rgba(58, 48, 36, 0.62);
  font-size: 0.84rem;
  margin-top: 0.4rem;
}

.inline-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(58, 48, 36, 0.56);
}

.row-inline-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(58, 48, 36, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.72rem 0.85rem;
  font-size: 0.95rem;
  box-shadow: none;
}

.row-inline-input:focus {
  outline: none;
  border-color: rgba(198, 122, 77, 0.45);
  background: rgba(255, 255, 255, 0.95);
}

.row-name-input {
  font-weight: 700;
}

.row-members-input {
  min-height: 5.9rem;
  line-height: 1.5;
}

.event-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.event-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.event-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.event-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.8rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #d8ccb9;
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.event-toggle.active span {
  background: #c67a4d;
  border-color: #c67a4d;
  color: #fffdf8;
}

.event-toggle.inactive span {
  background: #f0e8da;
  color: #8a7c6d;
}

.status-toggle {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: #efe7da;
  border: 1px solid rgba(58, 48, 36, 0.08);
}

.status-toggle-option {
  position: relative;
}

.status-toggle-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.status-toggle-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  padding: 0.46rem 0.74rem;
  border-radius: 999px;
  color: #816f5f;
  font-weight: 700;
  font-size: 0.86rem;
}

.status-toggle-option.selected span {
  background: #2f261b;
  color: #fffaf2;
}

.row-actions {
  display: flex;
  justify-content: flex-start;
}

.bulk-save-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.song-request-block {
  white-space: pre-wrap;
  font: inherit;
  margin: 0;
}

.dietary-row + .dietary-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.admin-login-wrap,
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.admin-login-card {
  width: min(100%, 28rem);
}

@media (max-width: 1100px) {
  .photo-ribbon,
  .home-hero,
  .registry-layout,
  .stay-layout,
  .rsvp-layout,
  .travel-grid,
  .stats-grid,
  .overview-grid,
  .two-column,
  .schedule-grid,
  .gallery-strip,
  .home-grid {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    grid-template-columns: 1fr;
  }

  .guest-add-grid,
  .guest-list-head,
  .guest-list-row {
    grid-template-columns: 1fr;
  }

  .guest-list-head {
    display: none;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --public-header-offset: 7.5rem;
  }

  .site-shell,
  .admin-main {
    padding: 1.2rem;
  }

  .admin-sidebar {
    padding: 1.2rem;
  }

  .site-shell:not(.locked-site-shell) {
    padding-bottom: 2rem;
  }

  .site-shell:not(.locked-site-shell) .site-main {
    padding: 0 1rem 3rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.7rem 1rem;
    padding: 0.85rem 1rem;
    align-items: center;
  }

  .brand-block {
    min-width: 0;
  }

  .brand-block .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .hero-copy-panel h1,
  .page-intro h1,
  .editorial-intro h1,
  .section-intro-center h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .brand {
    font-size: 1.55rem;
    letter-spacing: 0.08em;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    gap: 0.26rem;
    place-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(46, 52, 39, 0.24);
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .site-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .site-header.menu-open .site-nav,
  .site-header.menu-open .header-actions {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.5rem;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(46, 52, 39, 0.14);
    font-size: 0.8rem;
  }

  .header-actions {
    gap: 0.6rem;
    padding-top: 0.4rem;
  }

  .header-actions .guest-pill,
  .header-actions .button {
    width: 100%;
  }

  .countdown-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .countdown-item {
    min-width: 0;
    padding: 0.85rem 0.6rem;
    border-radius: 22px;
  }

  .countdown-item strong {
    font-size: 1.85rem;
  }

  .editorial-intro {
    padding: 3.4rem 0 2rem;
  }

  .editorial-summary,
  .section-intro-center p,
  .section-intro p {
    font-size: 1rem;
  }

  .onepage-section {
    margin-top: 3rem;
  }

  .carousel-shell {
    margin-inline: -1rem;
  }

  .mobile-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 3.1rem;
    padding: 0.1rem 3.1rem 0.95rem;
    scrollbar-width: none;
  }

  .mobile-carousel::-webkit-scrollbar {
    display: none;
  }

  .mobile-carousel > * {
    flex: 0 0 min(82vw, 23rem);
    scroll-snap-align: center;
  }

  .photo-carousel-shell {
    margin-top: 0;
  }

  .photo-ribbon {
    margin-top: 0;
    padding-top: 0.9rem;
  }

  .ribbon-card img {
    aspect-ratio: 1.05;
  }

  .carousel-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid rgba(46, 52, 39, 0.2);
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(46, 52, 39, 0.14);
    cursor: pointer;
  }

  .carousel-arrow-prev {
    left: 0.55rem;
  }

  .carousel-arrow-next {
    right: 0.55rem;
  }

  .schedule-grid,
  .travel-grid,
  .venue-grid,
  .stay-layout {
    align-items: stretch;
  }

  .event-card,
  .venue-card,
  .stay-card,
  .content-card {
    padding: 1.25rem;
  }

  .detail-card h2,
  .content-card h1,
  .event-card h2,
  .stay-card h2,
  .venue-card h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .faq-item {
    padding: 1.15rem;
  }

  .faq-item summary {
    font-size: 24px;
  }

  .header-actions,
  .admin-page-header,
  .guest-list-toolbar,
  .progress-summary,
  .row-card,
  .form-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .locked-site-shell .site-main {
    padding: 2rem 1rem;
  }

  .locked-home h1 {
    font-size: clamp(4rem, 22vw, 6.5rem);
  }

  .locked-code-form {
    width: min(100%, 22rem);
  }

  .locked-code-form input,
  .locked-code-form .button {
    padding: 0.95rem 1rem;
  }

  .rsvp-event-list {
    gap: 1.75rem;
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .site-shell:not(.locked-site-shell) .rsvp-event-list {
    display: grid;
    gap: 1.5rem;
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .rsvp-event-row {
    grid-template-columns: 1fr;
    display: block;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .rsvp-event-row + .rsvp-event-row {
    margin-top: 0.45rem;
  }

  .site-shell:not(.locked-site-shell) .rsvp-event-row {
    background: transparent;
    border: 0;
    margin: 0;
  }

  .site-shell:not(.locked-site-shell) .rsvp-event-row + .rsvp-event-row {
    border-top: 0;
    margin-top: 0;
  }

  .rsvp-event-card-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.25rem 1.25rem;
    border-radius: 28px;
    box-shadow: 0 1rem 2rem rgba(46, 52, 39, 0.1);
  }

  .site-shell:not(.locked-site-shell) .rsvp-event-card-inner {
    background: var(--sage-soft);
  }

  .rsvp-event-title,
  .rsvp-event-card-inner > p,
  .rsvp-toggle {
    grid-column: 1;
  }

  .rsvp-event-title {
    grid-row: 1;
    display: block;
    font-size: 1.35rem;
    line-height: 1.05;
    margin: 0 0 0.35rem;
  }

  .site-shell:not(.locked-site-shell) .rsvp-event-title,
  .site-shell:not(.locked-site-shell) .rsvp-event-card-inner > p {
    color: var(--ink);
  }

  .rsvp-event-card-inner > p:not(.rsvp-event-title) {
    grid-row: 2;
    font-size: 1rem;
  }

  .rsvp-toggle {
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    width: 100%;
  }

  .rsvp-toggle label,
  .rsvp-toggle span {
    flex: 1;
  }

  .rsvp-toggle span {
    min-width: 0;
    min-height: 3rem;
    padding: 0.85rem 0.65rem;
    border-radius: 18px;
    text-align: center;
    font-size: 0.92rem;
  }
}
