@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-normal-400.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/eb-garamond-normal-600.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-italic-400.woff2") format("woff2");
}

:root {
  /* Palette lifted from the printed invitation — a deliberate, single
     committed look (not theme-adaptive), so it matches the physical cards. */
  --bg: #faf6e9;
  --bg-raised: #ffffff;
  --text: #46536b;
  --text-muted: #7c88a0;
  --accent: #1d3b8c;
  --border: #e5ddc4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", "Iowan Old Style", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.name-lockup {
  margin: 0.25rem 0 0.75rem;
}

.name-lockup img {
  display: block;
  height: clamp(10rem, 30vw, 20rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switcher a.active {
  color: var(--accent);
  font-weight: 600;
}

.lang-switcher span {
  color: var(--text-muted);
}

.motif-heart {
  width: 1em;
  height: 1em;
  color: var(--accent);
  vertical-align: middle;
  margin: 0 0.2em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: 5.5rem;
  width: auto;
}


main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 4rem;
}

.flashes {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(90%, 560px);
  margin: 0;
  padding: 0.75rem 1.5rem;
  list-style: none;
  background: var(--bg-raised);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: flash-in 0.25s ease-out;
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translate(-50%, -0.5rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.flashes.flashes-hide {
  animation: flash-out 0.3s ease-in forwards;
}

@keyframes flash-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -0.5rem);
  }
}

h1, h2 {
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

h1 {
  margin: 0 0 1rem;
}

/* Forms */

.rsvp-hero {
  display: block;
  width: 100%;
  margin: 0 auto 0.75rem;
}

.rsvp-intro {
  text-align: center;
  margin-bottom: 1.25rem;
}

.invite-letter {
  margin-bottom: 1.5rem;
}

.invite-letter p {
  margin: 0 0 1rem;
}

.invite-letter .signoff {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.invite-letter .rsvp-notes {
  text-align: center;
  margin-top: 1rem;
}

.practical-info {
  margin-bottom: 1.5rem;
}

.practical-info summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  font-size: 1.3rem;
  padding: 0.25rem 0;
  list-style: none;
}

.practical-info summary::-webkit-details-marker {
  display: none;
}

.practical-info[open] summary {
  margin-bottom: 1rem;
}

.motif-chevron {
  width: 0.9em;
  height: 0.9em;
  color: var(--accent);
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.practical-info[open] summary .motif-chevron {
  transform: rotate(180deg);
}

.practical-info h3 {
  text-align: left;
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.25rem 0 0.4rem;
}

.practical-info h3:first-of-type {
  margin-top: 0;
}

.practical-info p {
  margin: 0 0 0.75rem;
}

.hearts-divider {
  display: block;
  height: 3rem;
  width: auto;
  margin: 2rem auto;
}

.rsvp-notes {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-style: italic;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 420px;
  margin: 0 auto;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

input, textarea, button {
  font: inherit;
}

input[type="text"], input[type="number"], textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

textarea {
  min-height: 4.5rem;
  resize: vertical;
}

button {
  align-self: flex-start;
  padding: 0.65rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  opacity: 0.9;
}

.attendees-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#attending-only-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#attending-only-section[hidden] {
  display: none;
}

.attendee-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.attendee-row:only-child .remove-attendee {
  visibility: hidden;
}

.attendee-row input {
  flex: 1;
}

.remove-attendee {
  flex: none;
  align-self: center;
  padding: 0.2rem 0.6rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
}

.remove-attendee:hover {
  color: var(--accent);
  opacity: 1;
}

.secondary-button {
  align-self: flex-start;
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.login-card {
  max-width: 420px;
  margin: 3rem auto 0;
  text-align: center;
}

.login-card form {
  margin: 1.5rem auto 0;
  text-align: left;
}

.thanks {
  text-align: center;
}

.thanks .signoff {
  font-style: italic;
  color: var(--text-muted);
}

.thanks-extra {
  margin-top: 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link .motif-chevron {
  transform: rotate(90deg);
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.confetti-piece {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 100;
  animation: confetti-burst 0.9s ease-out forwards;
}

@keyframes confetti-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  }
}

.toastmasters-trigger {
  position: relative;
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.toastmasters-popover {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  z-index: 30;
}

.toastmasters-trigger.is-open .toastmasters-popover {
  display: block;
}

.toastmasters-placeholder {
  width: 10rem;
  height: auto;
  color: var(--accent);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

img.toastmasters-placeholder {
  display: block;
  border-radius: 8px;
  border: 1.4px solid var(--accent);
  object-fit: cover;
}

