@font-face {
  font-family: "The Seasons Italic";
  src: url("Fonts/the-seasons-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("Fonts/GreatVibes-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans Italic";
  src: url("Fonts/JosefinSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poiret One";
  src: url("Fonts/PoiretOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f1ea;
  --text: #3b2b22;
  --muted: #7b6856;
  --line: rgba(124, 101, 82, 0.14);
  --accent: #c85d6a;
  --button-text: #fff8f8;
  --accent-dark: #8f3043;
  --surface-glass: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "The Seasons Italic", Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
}

body[data-view="home"] {
  background: linear-gradient(rgba(255, 246, 247, 0.10), rgba(250, 234, 236, 0.18)), url("Images/WeddingM1.svg") center top / cover no-repeat;
}

body[data-view="menu"] {
  background: linear-gradient(rgba(255, 244, 245, 0.10), rgba(249, 233, 236, 0.18)), url("Images/WeddingME1.svg") center top / cover no-repeat;
}

body[data-view="layout"] {
  background: linear-gradient(rgba(255, 248, 249, 0.80), rgba(250, 238, 240, 0.90)), url("Images/WeddingL1.svg") center top / cover no-repeat;
}

body[data-view="program"] {
  background: linear-gradient(rgba(247, 241, 232, 0.52), rgba(245, 239, 232, 0.72)), url("Images/WeddingD1.svg") center top / cover no-repeat;
}

button,
input {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100% - 16px, 1120px);
  margin: 0 auto;
  padding: 16px 0 24px;
}

.home-view,
.viewer-view {
  display: grid;
  gap: 14px;
}

.hero-card,
.viewer-card,
.media-stage {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

.hero-card {
  text-align: center;
  padding: 24px 0 2px;
}

.hero-card-actions {
  padding-top: 0;
}

.viewer-card {
  padding: 0;
}

.eyebrow,
.summary-label,
.result-tag {
  margin: 0;
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 12vw, 4rem);
  line-height: 1.00;
  font-weight: 600;
  margin-top: 8px;
}

h2 {
  font-size: 1.3rem;
}

.hero-copy,
.status-message,
.hint {
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy {
  margin: 10px auto 0;
  max-width: 30rem;
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.hero-link,
.primary-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--button-text);
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(79, 57, 47, 0.14);
}

.hero-link {
  min-width: 0;
  width: min(100%, 220px);
  padding: 0 26px;
}

.hero-link-secondary {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(103, 78, 64, 0.16);
  color: var(--accent-dark);
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.search-row-compact {
  margin-top: 12px;
}

input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(93, 68, 52, 0.14);
  background: rgba(255, 255, 255, 0.56);
  padding: 0 14px;
  color: var(--text);
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.status-message {
  margin-top: 10px;
  text-align: center;
}

.home-status-message {
  margin-top: 2px;
  min-height: 28px;
}

.status-message.error {
  color: #a32a2a;
}

.status-message.success {
  color: #5a7d5d;
}

.summary-card {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 6px;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.summary-list p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

#event-date,
#event-location {
  font-family: "Poiret One", Georgia, "Times New Roman", serif;
}

.viewer-copy {
  display: grid;
  gap: 6px;
}

.viewer-copy-center {
  text-align: center;
}

.viewer-copy h1 {
  max-width: none;
  font-family: "Great Vibes", Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 14vw, 4.8rem);
  font-weight: 400;
  line-height: 1.08;
}

.back-button {
  justify-self: start;
  align-self: start;
  width: auto;
  padding: 0 16px;
  position: relative;
  z-index: 3;
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
}

.result-box {
  margin-top: 10px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  display: grid;
  gap: 6px;
  background: transparent;
}

.result-box.success,
.result-box.error {
  background: transparent;
}

.result-box.success .result-tag {
  color: #6a8f62;
}

.result-box.error .result-tag {
  color: #ba6a6a;
}

.media-stage {
  margin-top: 16px;
  padding: 0;
}

.menu-stage {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.menu-text-stage {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 14px 22px;
  background: transparent;
  backdrop-filter: none;
}

.menu-text-body {
  width: min(100%, 32rem);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  text-align: center;
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  line-height: 1.7;
  color: #5f4a3d;
  font-size: clamp(0.96rem, 3.5vw, 1.1rem);
}

.menu-text-body p {
  margin: 0;
}

.menu-entry-list {
  gap: 18px;
}

.menu-entry {
  display: grid;
  gap: 6px;
}

.menu-entry-title {
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 4vw, 1.55rem);
  line-height: 1.15;
  color: var(--text);
}

.menu-entry-food {
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  color: #5f4a3d;
  line-height: 1.7;
  font-size: clamp(1rem, 3.7vw, 1.16rem);
}

.menu-text-placeholder {
  width: min(100%, 26rem);
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.layout-stage {
  min-height: 0;
}

.program-stage {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body[data-view="layout"] .viewer-view {
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 16px);
  padding: 10px 12px 16px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-view="layout"] #layout-viewer {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 10px;
}

body[data-view="layout"] .viewer-copy,
body[data-view="layout"] .viewer-search-row,
body[data-view="layout"] #viewer-search-result {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 0;
}

body[data-view="layout"] .viewer-copy {
  padding-top: clamp(16px, 10vw, 44px);
  gap: 4px;
}

.viewer-copy h1 {
  max-width: none;
  font-size: clamp(2.1rem, 10vw, 3.2rem);
}

body[data-view="layout"] #viewer-search-result {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
}

body[data-view="layout"] #layout-media {
  width: 100%;
  margin: 0 auto 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.table-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

body[data-view="program"] .page-shell {
  width: min(100% - 8px, 1120px);
  padding-top: 8px;
  padding-bottom: 12px;
}

body[data-view="program"] .viewer-view {
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 16px);
  padding: 12px 12px 20px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-view="program"] #program-viewer {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 12px;
}

body[data-view="program"] .viewer-copy,
body[data-view="program"] #program-content {
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
}

body[data-view="program"] .viewer-copy {
  padding-top: clamp(18px, 12vw, 62px);
  gap: 4px;
}

.program-placeholder,
.program-list {
  width: 100%;
}

.program-placeholder {
  padding: 18px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.30);
  color: var(--text);
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.program-list {
  display: grid;
  gap: 12px;
}

.program-item {
  display: grid;
  gap: 6px;
  padding: 10px 0 14px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(143, 48, 67, 0.14);
}

.program-time {
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  color: #a2142f;
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
}

.program-description {
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.55;
}

.table-layout-card {
  width: 100%;
  border: 2px solid #a2142f;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #a2142f;
  padding: 10px 10px 12px;
}

.table-layout-title,
.table-layout-label,
.table-layout-list {
  color: #a2142f;
}

.table-layout-title {
  margin: 0;
  text-align: center;
  font-family: "Great Vibes", Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 5vw, 1.45rem);
  line-height: 1.08;
}

.table-layout-label {
  margin-top: 8px;
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  line-height: 1.35;
}

.table-layout-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-family: "Josefin Sans Italic", Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
  line-height: 1.25;
  word-break: break-word;
}

.table-layout-list li {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(162, 20, 47, 0.16);
}

.table-layout-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body[data-view="menu"] .viewer-view {
  min-height: calc(100vh - 16px);
  padding: 0 0 16px;
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

body[data-view="menu"] #menu-viewer {
  gap: 8px;
  margin-top: 0;
}

body[data-view="menu"] .viewer-copy {
  width: 100%;
  padding-top: 8px;
  padding-inline: 14px;
}

body[data-view="menu"] #menu-content {
  min-height: 0;
  padding: 8px 14px 22px;
}

body[data-view="layout"] .page-shell {
  width: min(100% - 8px, 1120px);
  padding-top: 8px;
  padding-bottom: 12px;
}

@media (min-width: 760px) {
  .page-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .home-view,
  .viewer-view {
    gap: 18px;
  }

  .hero-card {
    padding: 70px 24px 18px;
  }

  h1 {
    font-size: clamp(3.2rem, 7.2vw, 5.1rem);
    margin-top: 10px;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-copy {
    margin: 14px auto 0;
    max-width: 38rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
  }

  .hero-link {
    min-width: 220px;
    width: 220px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .search-row-compact {
    margin-top: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .primary-button,
  .back-button {
    width: auto;
    padding: 0 18px;
  }

  .menu-stage {
    width: min(100%, 840px);
  }

  .menu-text-stage {
    padding: 28px 26px 32px;
  }

  .menu-text-body {
    width: min(100%, 36rem);
    gap: 14px;
    line-height: 1.9;
    font-size: clamp(1.08rem, 2vw, 1.24rem);
  }

  .menu-entry-list {
    gap: 22px;
  }

  .menu-entry {
    gap: 8px;
  }

  body[data-view="menu"] .viewer-view {
    min-height: auto;
    border-radius: 0;
  }

  body[data-view="menu"] #menu-viewer {
    gap: 5px;
    margin-top: 0;
  }

  body[data-view="menu"] #menu-content {
    padding: 8px 14px 24px;
  }

  body[data-view="layout"] .page-shell {
    width: min(100% - 16px, 1120px);
    padding-top: 14px;
    padding-bottom: 18px;
  }

  body[data-view="program"] .page-shell {
    width: min(100% - 16px, 1120px);
    padding-top: 14px;
    padding-bottom: 18px;
  }

  body[data-view="layout"] .viewer-view {
    width: min(100%, 980px);
    min-height: calc(100vh - 56px);
    padding: 14px 22px 24px;
    background: transparent;
  }

  body[data-view="layout"] .viewer-copy,
  body[data-view="layout"] .viewer-search-row,
  body[data-view="layout"] #viewer-search-result {
    width: min(100%, 760px);
  }

  body[data-view="layout"] .viewer-copy {
    padding-top: clamp(42px, 8vw, 88px);
    gap: 6px;
  }

  body[data-view="layout"] #layout-media {
    width: min(100%, 920px);
  }

  body[data-view="program"] .viewer-view {
    width: min(100%, 980px);
    min-height: calc(100vh - 56px);
    padding: 18px 22px 28px;
    background: transparent;
  }

  body[data-view="menu"] .page-shell {
    width: min(100% - 16px, 1120px);
    padding-top: 14px;
    padding-bottom: 18px;
  }

  body[data-view="program"] .viewer-copy {
    width: min(100%, 760px);
    padding-top: clamp(42px, 8vw, 96px);
  }

  body[data-view="program"] #program-content {
    width: min(100%, 760px);
  }

  .program-list {
    gap: 14px;
  }

  .program-item {
    padding: 12px 0 16px;
    border-radius: 0;
  }

  .table-layout-card {
    padding: 24px 28px 28px;
    border-radius: 46px;
  }

  .table-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }

  .table-layout-title {
    font-size: clamp(2rem, 4vw, 2.9rem);
  }

  .table-layout-label,
  .table-layout-list {
    font-size: 1.08rem;
  }

}

@media (min-width: 1180px) {
  .page-shell {
    width: min(100% - 56px, 1240px);
  }

  body[data-view="layout"] .viewer-view {
    padding-inline: 28px;
  }

  body[data-view="program"] .viewer-view {
    padding-inline: 28px;
  }
}