@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
  --bg: #2b7c85;          /* parchment */
  --paper: #e7f6fc;       /* lighter parchment */
  --ink: #3a2f2b;         /* deep brown */
  --sage: #028476;        /* sage green */
  --rose: #b56576;        /* dusty rose */
  --gold: #b08968;        /* warm gold */
  --muted: #77675f;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 14px;
  --container-padding: 1rem;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  font: 16px/1.6 ui-serif, Georgia, Garamond, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1000px 600px at 0% -10%, rgba(176, 137, 104, .05), transparent 60%),
    radial-gradient(800px 400px at 100% 110%, rgba(107, 112, 92, .05), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Allow specific sections to extend to full viewport width while inside .container */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.site-header {
  position: sticky;
  top: 0;
  background: #E7F6FC;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  font-family: ui-cursive, "Segoe Script", "Snell Roundhand", cursive;
  font-size: 1.25rem;
  color: var(--sage);
  text-decoration: none;
}

.floating-nav {
  position: fixed;
  bottom: clamp(12px, 2.5vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(231, 246, 252, 0.95);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.45rem 0.75rem;
  z-index: 30;
}

.floating-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.floating-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 18px;
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-nav button.nav-link {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.floating-nav .nav-link .icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.floating-nav .nav-link .label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.floating-nav .nav-link:hover,
.floating-nav .nav-link:focus-visible {
  color: var(--sage);
  background: rgba(2, 132, 118, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(2, 132, 118, 0.2);
}

.floating-nav .nav-link.active {
  color: var(--sage);
  background: rgba(2, 132, 118, 0.18);
  box-shadow: 0 8px 18px rgba(2, 132, 118, 0.2);
}

.floating-nav .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 118, 0.35);
}

.floating-nav .nav-link:focus {
  outline: none;
}

.floating-nav--journey {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.floating-nav--journey ul {
  flex-wrap: nowrap;
  justify-content: center;
}

.floating-nav--journey .nav-link {
  flex: 0 0 auto;
}

main.container {
  padding-bottom: clamp(5rem, 12vw, 6.5rem);
}

/* Admin / organiser area */
.admin-login {
  max-width: 420px;
  margin: 3rem auto;
  text-align: center;
  display: grid;
  gap: 0.75rem;
}
.admin-login__title {
  margin: 0;
  font-size: 1.75rem;
}
.admin-login__intro {
  margin: 0;
  color: rgba(3, 25, 28, 0.7);
}
.admin-login__form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}
.admin-login__label {
  font-weight: 600;
  color: var(--muted);
}
.admin-login__input {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font: inherit;
  background: #fff;
}
.admin-login__input:focus-visible {
  outline: 2px solid rgba(2, 132, 118, 0.28);
  outline-offset: 2px;
}
.admin-login__error {
  margin: 0;
  color: var(--rose);
  font-weight: 600;
}
.admin-login__button {
  justify-self: flex-start;
}

.admin-dashboard {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}
.admin-dashboard__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-dashboard__header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.admin-dashboard__welcome {
  margin: 0.25rem 0 0;
  color: rgba(3, 25, 28, 0.7);
}

.admin-top-nav {
  position: sticky;
  top: clamp(12px, 3vw, 18px);
  z-index: 40;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  padding: 0.5rem;
  background: rgba(231, 246, 252, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.admin-top-nav--icons {
  align-items: center;
}
.admin-top-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(3, 25, 28, 0.75);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  min-width: 64px;
}
.admin-top-nav__link:hover,
.admin-top-nav__link:focus-visible {
  color: var(--sage);
  background: rgba(2, 132, 118, 0.14);
  outline: none;
  transform: translateY(-2px);
}
.admin-top-nav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--sage), #7f8a6f);
  box-shadow: 0 8px 24px rgba(2, 132, 118, 0.35);
}
.admin-top-nav__link .icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}
.admin-top-nav__link .label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.admin-top-nav__link--signout {
  background: rgba(2, 132, 118, 0.08);
}
.admin-top-nav__link--signout:hover,
.admin-top-nav__link--signout:focus-visible {
  background: rgba(2, 132, 118, 0.16);
  color: var(--sage);
}

@media (max-width: 600px) {
  .admin-top-nav {
    padding: 0.4rem 0.5rem;
    gap: 0.35rem;
  }
  .admin-top-nav__link {
    padding: 0.35rem 0.55rem;
    min-width: 56px;
    gap: 0.25rem;
  }
  .admin-top-nav__link .icon {
    width: 1.1rem;
    height: 1.1rem;
  }
  .admin-top-nav__link .label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }
}

.admin-guests {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}
.admin-guests__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .admin-guests__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.admin-guests__upload,
.admin-guests__list {
  display: grid;
  gap: 1rem;
}

.admin-advice {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}
.admin-advice__content {
  display: grid;
  gap: 1rem;
}
.advice-accordion {
  display: grid;
  gap: 0.85rem;
}
.advice-accordion__item {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(231, 246, 252, 0.75);
  overflow: hidden;
}
.advice-accordion__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.advice-accordion__summary::-webkit-details-marker {
  display: none;
}
.advice-accordion__summary::after {
  content: "▾";
  color: rgba(3, 25, 28, 0.4);
  transition: transform 0.2s ease;
}
.advice-accordion__item[open] .advice-accordion__summary::after {
  transform: rotate(180deg);
}
.advice-accordion__author {
  font-size: 1rem;
}
.advice-accordion__timestamp {
  font-size: 0.82rem;
  color: rgba(3, 25, 28, 0.55);
}
.advice-accordion__body {
  padding: 0 1rem 1rem;
}
.advice-accordion__bubble {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px 16px 16px 6px;
  padding: 0.8rem 1rem;
  box-shadow: 0 10px 24px rgba(3, 25, 28, 0.12);
  color: rgba(3, 25, 28, 0.85);
  line-height: 1.6;
}
.advice-accordion__bubble p {
  margin: 0;
}
.guest-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.guest-filters__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.guest-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(2, 132, 118, 0.12);
  color: rgba(3, 25, 28, 0.65);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.guest-status-pill__icon {
  display: inline-block;
  width: 1rem;
  text-align: center;
}
.guest-status-pill:hover,
.guest-status-pill:focus-visible {
  background: rgba(2, 132, 118, 0.2);
  color: var(--sage);
}
.guest-status-pill.is-active {
  background: linear-gradient(135deg, var(--sage), #7f8a6f);
  color: #fff;
}
.guest-filters__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.guest-filters__search input {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
}
.guest-filters__reset {
  font-size: 0.82rem;
  color: rgba(3, 25, 28, 0.6);
  text-decoration: none;
}
.guest-filters__reset:hover,
.guest-filters__reset:focus-visible {
  text-decoration: underline;
}

.guest-upload-form {
  display: grid;
  gap: 0.75rem;
}
.guest-upload-form__label {
  font-weight: 600;
  color: rgba(3, 25, 28, 0.75);
}
.guest-upload-form__input {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  background: #fff;
}
.guest-upload-form__hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.65);
}
.guest-upload-form__hint code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: rgba(2, 132, 118, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.guest-preview {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(2, 132, 118, 0.08);
}
.guest-preview__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.guest-preview__header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.guest-preview__warnings {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--rose);
  font-size: 0.9rem;
}
.guest-preview__table {
  overflow-x: auto;
}
.guest-preview__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.guest-preview__table th,
.guest-preview__table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.guest-preview__actions {
  display: flex;
  justify-content: flex-end;
}

.guest-accordion {
  display: grid;
  gap: 0.75rem;
}
.guest-accordion__item {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(231, 246, 252, 0.75);
  overflow: hidden;
}
.guest-accordion__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  position: relative;
}
.guest-accordion__summary::-webkit-details-marker {
  display: none;
}
.guest-accordion__summary::after {
  content: "▾";
  font-size: 1rem;
  color: rgba(3, 25, 28, 0.4);
  transition: transform 0.2s ease;
}
.guest-accordion__item[open] .guest-accordion__summary {
  background: rgba(2, 132, 118, 0.12);
}
.guest-accordion__item[open] .guest-accordion__summary::after {
  transform: rotate(180deg);
}
.guest-accordion__name {
  font-size: 1rem;
  flex: 1 1 auto;
}
.guest-accordion__status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(2, 132, 118, 0.12);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
}
.guest-accordion__status--inline {
  background: none;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(3, 25, 28, 0.65);
}
.guest-accordion__form {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 1rem;
}
.guest-accordion__fields {
  display: grid;
  gap: 0.75rem;
}
.guest-accordion__fields label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: rgba(3, 25, 28, 0.7);
}
.guest-accordion__fields input {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
}
.guest-accordion__fields input:focus-visible {
  outline: 2px solid rgba(2, 132, 118, 0.28);
  outline-offset: 2px;
}
.guest-accordion__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.guest-accordion__actions .btn {
  padding: 0.45rem 0.75rem;
}

.song-accordion {
  display: grid;
  gap: 0.75rem;
}
.song-accordion__item {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(231, 246, 252, 0.7);
  overflow: hidden;
}
.song-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  position: relative;
}
.song-accordion__summary::-webkit-details-marker {
  display: none;
}
.song-accordion__summary::after {
  content: "▾";
  font-size: 1rem;
  color: rgba(3, 25, 28, 0.4);
  transition: transform 0.2s ease;
}
.song-accordion__item[open] .song-accordion__summary {
  background: rgba(2, 132, 118, 0.12);
}
.song-accordion__item[open] .song-accordion__summary::after {
  transform: rotate(180deg);
}
.song-accordion__title {
  font-size: 1rem;
  flex: 1 1 auto;
}
.song-accordion__artist {
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.55);
  text-align: right;
  min-width: 150px;
}
.song-accordion__body {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}
.song-accordion__submitter {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.7);
}
.song-accordion__preview {
  width: 100%;
}
.song-accordion__no-preview {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.55);
}

.chat-thread {
  display: grid;
  gap: 0.9rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.4rem;
  -webkit-overflow-scrolling: touch;
}
.chat-thread::-webkit-scrollbar {
  width: 6px;
}
.chat-thread::-webkit-scrollbar-thumb {
  background: rgba(3, 25, 28, 0.2);
  border-radius: 999px;
}
.chat-message {
  display: grid;
  gap: 0.35rem;
}
.chat-message__bubble {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px 18px 18px 6px;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 12px 24px rgba(3, 25, 28, 0.12);
  color: rgba(3, 25, 28, 0.9);
}
.chat-message__bubble p {
  margin: 0;
}
.chat-message__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(3, 25, 28, 0.55);
}
.chat-message__author {
  font-weight: 600;
  color: rgba(3, 25, 28, 0.7);
}
.chat-thread__footer {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(3, 25, 28, 0.6);
}

.guest-pagination {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.guest-pagination form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.guest-pagination span {
  font-weight: 600;
}
.guest-pagination__button--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.dashboard-widget {
  display: grid;
  gap: 0.75rem;
}
.dashboard-widget__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.dashboard-widget__header h2 {
  margin: 0;
  font-size: 1.2rem;
}
.dashboard-widget__body {
  display: grid;
  gap: 0.75rem;
}
.dashboard-widget__figure {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin: 0;
  color: var(--sage);
  font-weight: 600;
}
.dashboard-widget__meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.75);
}
.dashboard-widget__meta--muted {
  color: rgba(3, 25, 28, 0.55);
}
.dashboard-widget__quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(2, 132, 118, 0.35);
  color: rgba(3, 25, 28, 0.85);
}
.dashboard-widget__quote footer {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.6);
}
.dashboard-widget__empty {
  margin: 0;
  color: rgba(3, 25, 28, 0.65);
}

.song-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.song-list__item {
  display: grid;
  gap: 0.5rem;
}
.song-list__meta {
  display: grid;
  gap: 0.25rem;
}
.song-list__title {
  margin: 0;
  font-weight: 600;
}
.song-list__artist {
  margin: 0;
  color: rgba(3, 25, 28, 0.7);
}
.song-list__submitter {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.55);
}
.song-list__preview {
  width: 100%;
}
.song-list__no-preview {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.55);
}

.task-form {
  display: grid;
  gap: 0.5rem;
}
.task-form__label {
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.7);
}
.task-form__controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.task-form__controls input {
  flex: 1 1 200px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font: inherit;
}
.task-form__controls input:focus-visible {
  outline: 2px solid rgba(2, 132, 118, 0.28);
  outline-offset: 2px;
}
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.task-list--modal li {
  list-style: none;
}
.task-list__toggle {
  margin: 0;
}
.task-list__toggle button {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: rgba(3, 25, 28, 0.7);
}
.task-list__toggle button:hover,
.task-list__toggle button:focus-visible {
  border-color: rgba(2, 132, 118, 0.5);
  color: var(--sage);
}
.task-list__title {
  flex: 1 1 auto;
}
.task-modal-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(231, 246, 252, 0.7);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.task-modal-trigger:hover,
.task-modal-trigger:focus-visible {
  background: rgba(2, 132, 118, 0.14);
  outline: none;
}
.task-modal-trigger__title {
  flex: 1 1 auto;
}
.task-modal-trigger__chevron {
  font-size: 1.2rem;
  color: rgba(3, 25, 28, 0.4);
}
.task-list__share {
  margin: 0;
}
.task-list__share .btn {
  padding: 0.35rem 0.75rem;
}
.task-section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.task-section__header h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(3, 25, 28, 0.6);
}
.shared-task-list {
  display: grid;
  gap: 1rem;
}
.shared-task {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(231, 246, 252, 0.7);
}
.shared-task.is-complete {
  background: rgba(2, 132, 118, 0.12);
}
.shared-task__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.shared-task__header h4 {
  margin: 0;
  font-size: 1.05rem;
}
.shared-task__meta {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.6);
}
.shared-task__actions {
  display: flex;
  gap: 0.5rem;
}
.shared-task__actions form {
  margin: 0;
}
.shared-task__comments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.shared-task__comment {
  display: grid;
  gap: 0.35rem;
}
.shared-task__comment-bubble {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 8px 16px rgba(3, 25, 28, 0.1);
}
.shared-task__comment-bubble p {
  margin: 0;
}
.shared-task__comment-meta {
  font-size: 0.75rem;
  color: rgba(3, 25, 28, 0.55);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.shared-task__empty {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.6);
}
.shared-task__comment-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.shared-task__comment-form input {
  flex: 1 1 200px;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
}
.shared-task__comment-form button {
  padding: 0.45rem 0.85rem;
}

.advice-modal {
  display: grid;
  gap: 1rem;
}
.advice-status {
  margin: 0;
  color: rgba(3, 25, 28, 0.7);
}
.advice-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.advice-toolbar__button {
  border: 1px solid rgba(2, 132, 118, 0.4);
  background: rgba(231, 246, 252, 0.86);
  color: var(--sage);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
}
.advice-toolbar__button:hover,
.advice-toolbar__button:focus-visible {
  background: rgba(2, 132, 118, 0.15);
  outline: none;
}
.advice-italic {
  font-style: italic;
}
.advice-underline {
  text-decoration: underline;
}
.advice-editor {
  min-height: 160px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.6;
  overflow-y: auto;
}
.advice-emoji {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.advice-emoji button {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
  cursor: pointer;
}
.advice-emoji button:hover,
.advice-emoji button:focus-visible {
  background: rgba(2, 132, 118, 0.15);
  outline: none;
}
.advice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .floating-nav {
    top: 50%;
    right: clamp(16px, 4vw, 60px);
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    border-radius: 24px;
    padding: 0.9rem 0.6rem;
  }

  .floating-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .floating-nav .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.9rem;
    border-radius: 16px;
  }

  .floating-nav .nav-link .icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .floating-nav .nav-link .label {
    font-size: 0.72rem;
  }

  .floating-nav .nav-link:hover,
  .floating-nav .nav-link:focus-visible {
    transform: translateX(-4px);
  }

  main.container {
    padding-bottom: 2.5rem;
  }
}

/* Footer layout to host CTA */
.site-footer {
  border-top: 1px solid rgba(0,0,0,.05);
  background: #E7F6FC;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: clamp(420px, 62vh, 820px);
}
.hero.photo { color: #fff; }
.hero.photo .subtitle,
.hero.photo .meta { color: #f3f3f3; }
.hero.photo .btn { box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.script-heading {
  font-family: 'Great Vibes', 'Segoe Script', 'Snell Roundhand', cursive;
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  letter-spacing: 0.05em;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-fullscreen {
  min-height: 100vh;
  padding: clamp(4rem, 12vh, 6.5rem) 1.5rem clamp(4rem, 14vh, 7rem);
  margin-top: calc(-1 * var(--container-padding));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(2rem, 8vh, 4rem);
  border-radius: 0;
  box-shadow: none;
}

.hero-fullscreen .hero-bg {
  border-radius: 0;
}

.hero-fullscreen .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  width: min(640px, 90vw);
  margin-left: auto;
  margin-right: clamp(1.5rem, 8vw, 5rem);
}

.hero-fullscreen .hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-fullscreen .hero-actions .btn {
  min-width: clamp(220px, 38vw, 320px);
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.welcome-fullscreen {
  position: relative;
  min-height: 100vh;
  margin-top: calc(-1 * var(--container-padding));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(2rem, 8vh, 4rem);
  overflow: hidden;
  background: #03191c;
}

.welcome-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/img/hero2.jpg') center/cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease 0.2s, transform 1.1s ease 0.2s;
  z-index: 1;
}

.welcome-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(3, 25, 28, 0.15), rgba(3, 25, 28, 0.78));
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.welcome-hub {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(4rem, 14vh, 6.5rem) clamp(1.5rem, 7vw, 4.5rem);
  gap: 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.welcome-fullscreen--static::before {
  opacity: 1;
  transform: scale(1);
}

.welcome-fullscreen--static .welcome-overlay {
  opacity: 1;
}

.welcome-fullscreen--static .welcome-hub {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 900px) {
  .hero.photo { min-height: 70vh; }
  .hero-fullscreen {
    min-height: 100vh;
    padding: clamp(5rem, 14vh, 8rem) 3rem clamp(5rem, 18vh, 9rem);
    margin-bottom: clamp(3rem, 10vh, 6rem);
  }
  .hero-fullscreen .hero-content {
    width: min(640px, 60vw);
    margin-right: clamp(3rem, 10vw, 8rem);
  }
  .hero-fullscreen .hero-actions .btn {
    min-width: clamp(240px, 22vw, 320px);
  }
}

/* Background carousel layers */
.hero-bg { position: absolute; inset: 0; z-index: 0; border-radius: var(--radius); overflow: hidden; }
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: blur(10px) saturate(105%);
  transform: scale(1.05);
  transition: opacity 1.8s ease, filter 1.8s ease, transform 8s ease;
}
.hero-bg img.active { opacity: 1; filter: blur(0) saturate(110%); transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.2) 40%, rgba(0,0,0,.45)); }

/* Ensure content sits above background */
.hero.photo > *:not(.hero-bg) { position: relative; z-index: 1; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { transition: none; }
}

/* Invite page: hero with overlapping card */
.invite-hero {
  position: relative;
  min-height: clamp(260px, 38vh, 520px);
  border-radius: var(--radius);
  overflow: visible; /* allow the card to extend outside */
  background:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.15)),
    url('/static/img/hero2.jpg') center/cover no-repeat;
  box-shadow: var(--shadow);
}
.invite-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%); /* half inside hero, half floating below */
  width: min(640px, 92%);
}
.invite-spacer { height: clamp(140px, 22vh, 260px); }
.display {
  font-family: ui-cursive, "Segoe Script", "Snell Roundhand", cursive;
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin: 0;
  color: var(--ink);
}
.subtitle { margin: .25rem 0 .5rem; color: var(--muted); }
.meta { color: var(--sage); font-weight: 600; }

.actions { margin-top: 1.25rem; }
.btn {
  display: inline-block;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
}
.btn.primary {
  background: linear-gradient(135deg, var(--sage), #7f8a6f);
  color: #fff;
  border: none;
}
.btn:active { transform: translateY(1px); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}
.btn-link:hover,
.btn-link:focus-visible {
  color: #046d60;
  text-decoration: underline;
}

.flourish {
  position: absolute; inset: -10% -5% auto -5%; height: 40%;
  background: radial-gradient(ellipse at center, rgba(176, 137, 104, .12), transparent 60%);
  transform: rotate(-2deg);
}
.texture {
  position: absolute; inset: auto -5% -10% -5%; height: 40%;
  background: radial-gradient(ellipse at center, rgba(107,112,92,.12), transparent 60%);
  transform: rotate(2deg);
}
.leaves::before, .leaves::after {
  content: ""; position: absolute; inset: auto 10% -14% auto; width: 120px; height: 120px;
  background: conic-gradient(from 0deg, transparent 0 25%, rgba(107,112,92,.15) 25% 50%, transparent 50%);
  filter: blur(4px);
  transform: rotate(-20deg);
}
.leaves::after { inset: auto auto -18% 10%; transform: rotate(20deg); }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.rsvp-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-top: 3.25rem;
}
.rsvp-card__close {
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.rsvp-result {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}
.rsvp-result h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--sage);
  font-family: 'Great Vibes', 'Segoe Script', 'Snell Roundhand', cursive;
}
.rsvp-result__lead {
  margin: 0 auto;
  max-width: 32ch;
  color: rgba(3, 25, 28, 0.85);
}
.rsvp-result__note {
  margin: 0;
  color: rgba(3, 25, 28, 0.6);
}
.rsvp-result--accepted {
  background: linear-gradient(135deg, rgba(2, 132, 118, 0.08), rgba(231, 246, 252, 0.8));
  border-radius: var(--radius);
  padding: 1.5rem;
}
.rsvp-result--declined {
  background: linear-gradient(135deg, rgba(181, 101, 118, 0.08), rgba(231, 246, 252, 0.8));
  border-radius: var(--radius);
  padding: 1.5rem;
}
.rsvp-comment {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}
.rsvp-comment__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(3, 25, 28, 0.55);
}
.rsvp-comment__bubble {
  margin: 0;
  max-width: 30ch;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  position: relative;
  box-shadow: 0 8px 18px rgba(3, 25, 28, 0.12);
}
.rsvp-comment__bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(3, 25, 28, 0.12);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.welcome-card {
  background: rgba(231, 246, 252, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.32);
  max-width: min(520px, 92vw);
  text-align: center;
  transition: transform .6s ease;
  opacity: 1;
  transform: translateY(0);
}

.welcome-card h2 {
  margin: 0 0 0.75rem;
  font-family: 'Great Vibes', 'Segoe Script', 'Snell Roundhand', cursive;
  font-size: clamp(2.6rem, 9vw, 4rem);
  color: var(--sage);
}

.welcome-card .lead {
  margin: 0 0 1.5rem;
  color: rgba(3, 25, 28, 0.75);
}

.welcome-media {
  display: grid;
  gap: 1rem;
}

.welcome-video-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.65);
}

.welcome-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #03191c;
}

.welcome-video-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.welcome-video-caption {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.7);
}

.welcome-media.is-playing #welcomeVideoPlay {
  display: none;
}

.welcome-media.is-playing .welcome-video-caption {
  display: none;
}

.welcome-media.is-skipped .welcome-video-frame {
  display: none;
}

.welcome-media.is-skipped #welcomeVideoSkip {
  display: none;
}

.welcome-media.is-skipped .welcome-video-caption {
  display: block;
  text-align: center;
  color: rgba(3, 25, 28, 0.75);
}

.journey-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.journey-buttons .btn {
  width: 100%;
}

.journey-buttons .btn.primary {
  box-shadow: 0 16px 36px rgba(2, 132, 118, 0.35);
}

.journey-buttons .btn.ghost {
  background: rgba(255,255,255,0.5);
  color: var(--sage);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
}

.journey-buttons .btn.ghost:hover,
.journey-buttons .btn.ghost:focus-visible {
  background: rgba(255,255,255,0.75);
  color: var(--sage);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 3rem);
}

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 25, 28, 0.55);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  background: rgba(231, 246, 252, 0.96);
  border-radius: 20px;
  box-shadow: 0 38px 88px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - clamp(2rem, 12vw, 4rem));
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.25);
}

.modal-header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  color: var(--sage);
}

.modal-body {
  padding: clamp(1.25rem, 4vw, 2rem);
  display: grid;
  gap: 1rem;
  overflow: auto;
}

.modal-close {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-footer {
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-footer .btn {
  min-width: 120px;
}

body.modal-open {
  overflow: hidden;
}

.modal-root .details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.modal-root .details li {
  font-size: 0.95rem;
}

.modal-root .details strong {
  color: var(--sage);
  font-weight: 600;
}

.menu-layout {
  display: flex;
  justify-content: center;
}

.menu-copy {
  display: grid;
  gap: 1rem;
  text-align: center;
  justify-items: center;
}

.menu-photo {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.75);
}

.menu-photo--inline {
  max-width: min(240px, 80%);
  width: 100%;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.menu-photo--inline img {
  max-height: 180px;
  object-fit: cover;
}

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

.menu-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

.menu-details {
  display: grid;
  gap: 0.85rem;
  padding: 0;
}

.menu-details li {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.menu-details strong {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-details span {
  font-size: 0.95rem;
  color: rgba(3, 25, 28, 0.75);
}

.menu-inline-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  width: 100%;
  justify-items: center;
}

.menu-inline-gallery .menu-photo {
  height: 140px;
  width: 100%;
}

@media (max-width: 600px) {
  .menu-inline-gallery .menu-photo {
    height: 120px;
    width: 100%;
  }
}

.welcome-shell {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 8vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem) var(--container-padding);
}

.welcome-shell__card {
  max-width: min(560px, 100%);
  display: grid;
  gap: 1rem;
  text-align: center;
  background: rgba(231, 246, 252, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.22);
  padding: clamp(1.75rem, 6vw, 2.5rem);
}

.welcome-shell__card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--sage);
  font-family: 'Great Vibes', 'Segoe Script', 'Snell Roundhand', cursive;
}

.welcome-shell__card p {
  margin: 0;
  color: rgba(3, 25, 28, 0.76);
}

.welcome-shell__tasks {
  margin-top: 0.5rem;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.task-checklist__title {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(3, 25, 28, 0.85);
  text-align: center;
}
.task-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.task-checklist__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.task-checklist__item.is-complete {
  border-color: rgba(2, 132, 118, 0.4);
  background: rgba(2, 132, 118, 0.12);
}
.task-checklist__icon {
  font-size: 1.25rem;
  color: var(--sage);
  width: 1.5rem;
  text-align: center;
}
.task-checklist__body {
  display: grid;
  gap: 0.35rem;
}
.task-checklist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.task-checklist__label {
  font-weight: 600;
  color: rgba(3, 25, 28, 0.85);
}
.task-checklist__description {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.65);
}
.task-checklist__state {
  font-weight: 600;
  color: var(--sage);
  align-self: center;
}
.task-checklist__action {
  white-space: nowrap;
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 0.35rem;
}
.task-checklist__info {
  border: none;
  background: rgba(2, 132, 118, 0.12);
  color: var(--sage);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
}
.task-checklist__info:hover,
.task-checklist__info:focus-visible {
  background: rgba(2, 132, 118, 0.2);
  outline: none;
}
.task-checklist__item.is-complete .task-checklist__info {
  background: rgba(2, 132, 118, 0.15);
}

.welcome-shell__actions {
  display: flex;
  justify-content: center;
}

.welcome-modal {
  position: relative;
  display: grid;
  gap: 1.25rem;
}
.modal-close--floating {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.welcome-modal h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  text-align: center;
  color: var(--sage);
  font-family: 'Great Vibes', 'Segoe Script', 'Snell Roundhand', cursive;
}

.welcome-lead {
  margin: 0 0 1rem;
  text-align: center;
  color: rgba(3, 25, 28, 0.8);
}

.song-modal {
  display: grid;
  gap: 1.25rem;
}

.song-search {
  display: grid;
  gap: 0.65rem;
}

.song-search__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(3, 25, 28, 0.72);
}

.song-search__controls {
  display: flex;
  gap: 0.5rem;
}

.song-search__controls input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(2, 132, 118, 0.25);
  font: inherit;
}

.song-search__controls input:focus {
  outline: 2px solid rgba(2, 132, 118, 0.5);
  border-color: rgba(2, 132, 118, 0.5);
}

.song-hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(3, 25, 28, 0.6);
}

.song-status {
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.65);
}

.song-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.song-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(231, 246, 252, 0.85);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.song-card__art {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.1);
}

.song-card__meta {
  display: grid;
  gap: 0.35rem;
}

.song-card__title {
  margin: 0;
  font-weight: 600;
}

.song-card__artist {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.65);
}

.song-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.song-card__button {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: rgba(2, 132, 118, 0.16);
  color: var(--sage);
  font-weight: 600;
  cursor: pointer;
}

.song-card__button.primary {
  background: var(--sage);
  color: #fff;
}

.song-card__button:focus-visible {
  outline: 2px solid rgba(2, 132, 118, 0.5);
  outline-offset: 2px;
}

.song-selected {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  background: rgba(2, 132, 118, 0.08);
  border-radius: 16px;
}

.song-selected__heading {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(2, 132, 118, 0.8);
}

.song-selected__details {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.song-selected__details img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.1);
}

.song-selected__details strong {
  display: block;
  font-weight: 600;
}

.song-selected__details span {
  display: block;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.68);
}

.song-selected__details .song-card__button {
  margin-left: auto;
}

[data-song-hidden-search] {
  display: none;
}

.song-selected .btn {
  justify-self: center;
}

@media (max-width: 600px) {
  .song-search__controls {
    flex-direction: column;
  }

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

  .song-card__actions {
    width: 100%;
  }
}

.timeline {
  position: relative;
  padding: 0.5rem 0 1rem;
  display: grid;
  gap: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(2, 132, 118, 0.25);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
}

.timeline-item--left {
  justify-content: flex-end;
  padding-right: calc(50% + 2.75rem);
}

.timeline-item--right {
  justify-content: flex-start;
  padding-left: calc(50% + 2.75rem);
}

.timeline-content {
  max-width: 260px;
  display: grid;
  gap: 0.35rem;
}

.timeline-item--left .timeline-content {
  text-align: right;
}

.timeline-item--right .timeline-content {
  text-align: left;
}

.timeline-content time {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(3, 25, 28, 0.72);
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(3, 25, 28, 0.82);
}

.timeline-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(231, 246, 252, 0.95);
  border: 2px solid rgba(2, 132, 118, 0.25);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.timeline-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--sage);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 720px) {
  .timeline::before {
    left: 24px;
    right: auto;
    transform: none;
  }

  .timeline-item {
    min-height: 64px;
  }

  .timeline-item--left,
  .timeline-item--right {
    justify-content: flex-start;
    padding: 0 0 0 3.75rem;
  }

  .timeline-content,
  .timeline-item--left .timeline-content,
  .timeline-item--right .timeline-content {
    text-align: left;
    max-width: none;
  }

  .timeline-icon {
    left: 24px;
    width: 52px;
    height: 52px;
  }

  .timeline-icon svg {
    width: 24px;
    height: 24px;
  }
}

.chapel-carousel {
  display: grid;
  gap: 0.75rem;
}

.carousel-track {
  position: relative;
  display: grid;
}

.carousel-slide {
  display: none;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.carousel-slide.is-active {
  display: block;
  animation: carousel-fade-in 0.5s ease;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-btn {
  border: none;
  background: rgba(3, 25, 28, 0.75);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  transform: scale(1.05);
  background: rgba(2, 132, 118, 0.85);
  outline: none;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: rgba(3, 25, 28, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--sage);
  transform: scale(1.2);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

@keyframes carousel-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-color-scheme: dark) {
  .welcome-card { background: var(--paper); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-card { transition: none; }
}

@media (max-width: 600px) {
  .floating-nav {
    padding: 0.35rem 0.55rem;
  }
  .floating-nav ul {
    gap: 0.25rem;
  }
  .floating-nav .nav-link {
    gap: 0.25rem;
    padding: 0.45rem 0.55rem;
  }
  .floating-nav .nav-link .icon {
    width: 1.05rem;
    height: 1.05rem;
  }
  .floating-nav .nav-link .label {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
  }
  .welcome-fullscreen {
    margin-bottom: 2rem;
  }
  .welcome-card { text-align: left; }
  .journey-buttons { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
.form { display: grid; gap: .5rem; }
label { font-weight: 600; color: var(--muted); }
input {
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  font: inherit;
}
input:focus { outline: 2px solid rgba(107,112,92,.35); border-color: var(--sage); }
.error { color: var(--rose); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.flash { list-style: none; padding: 0; margin: 1rem 0; }
.flash-item { padding: .6rem .8rem; border-radius: 10px; margin-bottom: .5rem; }
.flash-item.success { background: #daf0e1; color: #1c6a31; }
.flash-item.warning { background: #fff4d6; color: #7a5b00; }
.flash-item.info { background: #e7eefc; color: #234f9b; }
.flash-item.error { background: #fde2e4; color: #9d2235; }

/* (Removed) .install-btn styles: install UI no longer shown */

/* @media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --paper: #1b1816;
    --ink: #ece6dd;
    --muted: #b9ad9f;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
  }
} */

/* Forest overlay (welcome page) */
.forest-scene { position: relative; }
.forest-scene > *:not(.forest-overlay) { position: relative; z-index: 1; }
.forest-overlay {
  position: absolute;
  inset: -10px; /* slight bleed */
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius);
  overflow: hidden;
}
.forest-layer {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40%;
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: .5;
  filter: blur(0.5px);
}
.forest-layer.back { height: 36%; opacity: .35; background-image: url('/static/graphics/forest-back.svg'); animation: forest-slide-back 120s linear infinite; }
.forest-layer.mid  { height: 44%; opacity: .45; background-image: url('/static/graphics/forest-mid.svg');  animation: forest-slide-mid   90s linear infinite; }
.forest-layer.front{ height: 52%; opacity: .55; background-image: url('/static/graphics/forest-front.svg');animation: forest-slide-front  70s linear infinite; }
.forest-fog { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.15) 50%, rgba(0,0,0,.18) 100%); mix-blend-mode: soft-light; }

@keyframes forest-slide-back  { from { background-position:    0 100%; } to { background-position: -1024px 100%; } }
@keyframes forest-slide-mid   { from { background-position:    0 100%; } to { background-position: -1536px 100%; } }
@keyframes forest-slide-front { from { background-position:    0 100%; } to { background-position: -2048px 100%; } }

@media (prefers-reduced-motion: reduce) {
  .forest-layer { animation: none !important; }
}
.task-modal {
  display: grid;
  gap: 1rem;
}
.task-modal__meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.65);
}
.task-modal__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.task-delete-form {
  margin: 0;
}
.task-delete {
  border: none;
  background: none;
  color: var(--rose);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.task-delete__icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  fill: currentColor;
}
.task-delete:hover,
.task-delete:focus-visible {
  color: #8d3b4d;
}
.task-detail {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(3, 25, 28, 0.08);
  display: grid;
  gap: 0.75rem;
}
.task-detail__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.task-detail__header h4 {
  margin: 0;
  font-size: 1rem;
}
.task-detail__timestamp {
  font-size: 0.75rem;
  color: rgba(3, 25, 28, 0.55);
}
.task-detail__content {
  background: rgba(2, 132, 118, 0.06);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.task-detail__content strong,
.task-detail__editor strong {
  font-weight: 700;
}
.task-detail__content em,
.task-detail__editor em {
  font-style: italic;
}
.task-detail__content u,
.task-detail__editor u {
  text-decoration: underline;
}
.task-detail__empty {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(3, 25, 28, 0.55);
}
.task-detail__form {
  display: grid;
  gap: 0.75rem;
}
.task-detail__editor {
  min-height: 6rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(3, 25, 28, 0.15);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.task-detail__editor:focus {
  outline: none;
  border-color: rgba(2, 132, 118, 0.6);
  box-shadow: 0 0 0 2px rgba(2, 132, 118, 0.15);
}
.task-detail__editor[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: rgba(3, 25, 28, 0.45);
}
.task-detail__toolbar {
  display: inline-flex;
  gap: 0.35rem;
}
.task-detail__format {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(3, 25, 28, 0.12);
  background: rgba(3, 25, 28, 0.04);
  color: rgba(3, 25, 28, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.task-detail__format:hover,
.task-detail__format:focus-visible {
  background: rgba(2, 132, 118, 0.12);
  border-color: rgba(2, 132, 118, 0.4);
  color: var(--sage);
  outline: none;
}
.task-detail__format-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}
.task-detail__format-text--italic {
  font-style: italic;
}
.task-detail__format-text--underline {
  text-decoration: underline;
}
.task-detail__upload {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.task-detail__upload input[type="file"] {
  font-size: 0.85rem;
}
.task-detail__upload-label {
  font-weight: 600;
  color: rgba(3, 25, 28, 0.7);
}
.task-detail__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(3, 25, 28, 0.6);
  font-size: 0.85rem;
}
.task-detail__actions {
  display: flex;
  justify-content: flex-end;
}
.task-detail__attachment {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(3, 25, 28, 0.08);
  background: #fff;
}
.task-detail__attachment img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.task-detail__attachment figcaption {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(3, 25, 28, 0.6);
  padding: 0.5rem 0.75rem;
}
.task-detail__attachment--owner img {
  max-height: 240px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.02);
}
