*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4ede2;
  color: #322920;
  font-family: "Work Sans", sans-serif;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ceremony-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  max-width: 1380px;
  margin: 0 auto;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(50, 41, 32, 0.18);
  font-size: 0.92rem;
}

.ceremony-ribbon span {
  text-align: center;
  color: rgba(50, 41, 32, 0.68);
}

.ceremony-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.4rem;
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 4rem;
}

.ceremony-title,
.ceremony-framehall,
.ceremony-measures,
.ceremony-section,
.ceremony-order,
.ceremony-note {
  background: #fbf7f0;
  border: 1px solid rgba(50, 41, 32, 0.16);
}

.ceremony-title {
  grid-column: 1 / -1;
  padding: 2rem 2rem 1.7rem;
  text-align: center;
}

.ceremony-overline {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(50, 41, 32, 0.62);
}

.ceremony-title h1,
.ceremony-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.92;
}

.ceremony-title h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.ceremony-lead,
.memorial-offer__copy p,
.folio-card__meta span,
.ceremony-stat span,
.ceremony-line__info span,
.ceremony-note li,
.empty-state {
  font-family: "Literata", serif;
  line-height: 1.85;
  color: rgba(50, 41, 32, 0.75);
}

.ceremony-lead {
  max-width: 58ch;
  margin: 1rem auto 0;
  font-size: 1.02rem;
}

.ceremony-framehall {
  padding: 1rem;
  border: 1px solid rgba(50, 41, 32, 0.16);
}

.ceremony-hero-media {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 0.8rem;
}

.memory-frame {
  margin: 0;
  padding: 0.75rem;
  background: #f0e5d7;
  border: 1px solid rgba(50, 41, 32, 0.18);
}

.memory-frame--large {
  grid-row: span 2;
}

.memory-frame img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  border: 10px solid #faf7f1;
}

.memory-frame figcaption {
  padding-top: 0.65rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}

.ceremony-measures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.ceremony-measures div {
  padding: 1.25rem 1rem;
  text-align: center;
  border-left: 1px solid rgba(50, 41, 32, 0.1);
}

.ceremony-measures div:first-child {
  border-left: 0;
}

.ceremony-measures span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(50, 41, 32, 0.58);
}

.ceremony-measures strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.ceremony-section,
.ceremony-note,
.ceremony-order {
  padding: 1.35rem;
}

.ceremony-section__head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.ceremony-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.ceremony-editions {
  display: grid;
  gap: 0.9rem;
}

.memorial-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(50, 41, 32, 0.14);
  background: #fffdf9;
}

.memorial-offer__copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.memorial-offer__copy p {
  margin: 0.35rem 0 0;
}

.memorial-offer__copy ul,
.ceremony-note ul {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.memorial-offer__field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.memorial-offer__field select,
.ceremony-form input,
.ceremony-form textarea {
  width: 100%;
  border: 1px solid rgba(50, 41, 32, 0.24);
  background: #faf7f1;
  color: #322920;
  padding: 0.78rem 0.85rem;
}

.memorial-offer__buy {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.75rem;
}

.memorial-offer__buy strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.ceremony-button,
.ceremony-form button,
.ceremony-line__actions button {
  border: 1px solid #6a5840;
  background: #6a5840;
  color: #faf5eb;
  padding: 0.72rem 1rem;
}

.ceremony-button--ghost,
.ceremony-line__actions button {
  background: transparent;
  color: #6a5840;
}

.ceremony-order {
  position: sticky;
  top: 1rem;
}

.ceremony-summary {
  display: grid;
  gap: 0.7rem;
}

.ceremony-stat {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(50, 41, 32, 0.14);
}

.ceremony-stat:first-child {
  border-top: 0;
  padding-top: 0;
}

.ceremony-stat strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
}

.ceremony-stat a {
  text-decoration: underline;
}

.ceremony-cart {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
}

.ceremony-line {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(50, 41, 32, 0.14);
}

.ceremony-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.ceremony-line__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.ceremony-line__info strong {
  display: block;
  margin-bottom: 0.2rem;
}

.ceremony-line__actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.65rem;
}

.ceremony-form {
  display: grid;
  gap: 0.8rem;
}

.ceremony-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.ceremony-form textarea {
  min-height: 7.3rem;
  resize: vertical;
}

.ceremony-status {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
}

.ceremony-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.folio-card {
  border: 1px solid rgba(50, 41, 32, 0.14);
  background: #fffdf9;
}

.folio-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.folio-card__body {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
}

.folio-card__meta strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}

.photo-fallback {
  position: relative;
  min-height: 12rem;
}

.photo-fallback::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(106, 88, 64, 0.12), rgba(244, 237, 226, 0.82));
  color: #322920;
}

@media (max-width: 1140px) {
  .ceremony-layout {
    grid-template-columns: 1fr;
  }

  .ceremony-order {
    position: static;
  }
}

@media (max-width: 860px) {
  .ceremony-ribbon,
  .ceremony-hero-media,
  .ceremony-gallery,
  .ceremony-measures {
    grid-template-columns: 1fr;
  }

  .memory-frame--large {
    grid-row: auto;
  }

  .memorial-offer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ceremony-layout,
  .ceremony-ribbon {
    padding-inline: 1rem;
  }

  .ceremony-title h1,
  .ceremony-section h2 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .ceremony-line__row {
    flex-direction: column;
  }
}
