/* Elegant — soft neutrals, botanical line work, romantic whitespace. */
.t-elegant { --radius: 4px; --fs-h2: clamp(2.1rem, 5.5vw, 3.4rem); }
.t-elegant .s-title { font-style: italic; font-weight: 400; color: var(--heading); }
.t-elegant .eyebrow { color: var(--ink-accent); font-weight: 600; letter-spacing: .3em; font-size: .7rem; }
.t-elegant .lede { color: var(--muted); }
.el-sprig { color: var(--accent); }
.el-divider { color: var(--accent); display: flex; justify-content: center; margin: 1.25rem auto 1.5rem; }

/* nav */
.t-elegant .site-menu__mono { font-style: italic; }
.t-elegant .site-nav__mark { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* hero */
.el-hero { padding: 5.5rem 0 3rem; overflow: hidden; }
.el-hero__grid { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; display: grid; gap: 3rem; align-items: center; }
.el-hero__text { position: relative; display: grid; gap: 1.1rem; justify-items: center; text-align: center; order: 2; }
.el-hero__sprig { position: absolute; width: 6rem; top: -2.5rem; right: -.5rem; opacity: .7; transform: rotate(18deg); }
.el-names { font-family: var(--font-display); font-weight: 400; color: var(--heading); font-size: clamp(3.2rem, 13vw, 6.5rem); line-height: .95; display: grid; }
.el-names span:not(.el-names__amp) { font-style: italic; }
.el-names__amp { font-family: var(--font-body); font-size: .8rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-accent); margin: .9rem 0; font-weight: 600; }
.el-hero__line { font-family: var(--font-display); font-size: 1.15rem; color: var(--muted); max-width: 22rem; }
.el-hero__date { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.el-hero__date span + span::before { content: ''; display: inline-block; width: 1.25rem; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 1rem; }
.el-hero__photos { position: relative; width: min(86vw, 30rem); margin-inline: auto; padding-bottom: 3rem; }
.el-hero__main { aspect-ratio: 4 / 5.3; overflow: hidden; border-radius: 999px 999px 4px 4px; }
.el-hero__main img { width: 100%; height: 100%; object-fit: cover; animation: el-in 1.6s var(--ease) both; }
@keyframes el-in { from { transform: scale(1.08); opacity: .4; } }
.el-hero__second { position: absolute; left: -8%; bottom: 0; width: 42%; aspect-ratio: 4 / 5; overflow: hidden; border: 6px solid var(--bg); border-radius: 4px; box-shadow: 0 20px 40px -20px rgba(40, 30, 20, .35); }
.el-hero__second img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 58rem) {
  .el-hero { min-height: 100svh; display: grid; align-items: center; padding: 6rem 0 4rem; }
  .el-hero__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .el-hero__text { order: 0; justify-items: start; text-align: left; }
  .el-hero__date { justify-content: flex-start; }
  .el-hero__sprig { right: 8%; top: -5rem; width: 8rem; }
  .el-hero__photos { width: min(100%, 34rem); }
}

/* welcome */
.t-elegant .welcome__text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 1.75rem); line-height: 1.6; color: var(--heading); }
.t-elegant .welcome__sign { margin-top: 1.75rem; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }

/* story collage */
.el-story { background: var(--soft); }
.el-story__grid { display: grid; gap: 3.5rem; align-items: center; }
.el-story__text .el-divider { justify-content: flex-start; margin-left: 0; }
.el-collage { position: relative; min-height: 26rem; }
.el-collage__a { position: absolute; right: 0; top: 0; width: 72%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 4px 4px; }
.el-collage__b { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; overflow: hidden; border: 8px solid var(--soft); border-radius: 50%; }
.el-collage img { width: 100%; height: 100%; object-fit: cover; }
.el-collage__sprig { position: absolute; left: 6%; top: 2%; width: 5.5rem; opacity: .8; }
@media (min-width: 56rem) { .el-story__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } .el-collage { min-height: 36rem; } }
@media (max-width: 40rem) { .el-collage { min-height: 0; aspect-ratio: 1 / 1.15; } }

/* events: airy offset rhythm */
.el-events__list { display: grid; gap: 3rem; max-width: 62rem; margin-inline: auto; align-items: start; }
.el-event { display: grid; gap: 1.25rem; align-content: start; }
.el-event__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; }
.el-event__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.el-event:hover .el-event__img img { transform: scale(1.04); }
.el-event__body { display: grid; gap: .5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.el-event__when { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.el-event__name { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 2rem; color: var(--heading); line-height: 1.1; }
@media (min-width: 48rem) {
  .el-events__list { grid-template-columns: 1fr 1fr; column-gap: 4rem; row-gap: 4rem; }
  .el-event:nth-child(even) { margin-top: 6rem; }
  .el-event:nth-child(even):last-child { margin-top: 6rem; }
}

/* couple, gallery, others */
.t-elegant .person__photo { border-radius: 999px 999px 4px 4px; width: min(100%, 17rem); }
.t-elegant .person__name { font-style: italic; color: var(--heading); }
.t-elegant .story-photo, .t-elegant .venue__img { border-radius: 999px 999px 4px 4px; }
.t-elegant .gallery__item { border-radius: 3px; }
.t-elegant .s--family, .t-elegant .s--rsvp { background: var(--soft); }
.t-elegant .family__names { font-style: italic; color: var(--heading); }
.t-elegant .rsvp { border: 0; box-shadow: 0 30px 60px -40px rgba(40, 30, 20, .35); }
.t-elegant .site-footer__names { font-style: italic; color: var(--heading); }
.t-elegant .countdown__num { font-style: italic; color: var(--heading); }

/* ---------- events, scroll-stacked (themes/event-stack.js) ----------
   Only while the stack runs (.is-evstack): each event becomes one card of this design,
   laid over the last by the scroll. Without it the layout above is untouched. */
.is-evstack .el-events__list { max-width: 56rem; margin-inline: auto; grid-template-columns: minmax(0, 1fr); }
.is-evstack .el-event, .is-evstack .el-event:nth-child(even), .is-evstack .el-event:nth-child(even):last-child {
  margin-top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.1rem, 2.6vw, 1.75rem); box-shadow: 0 30px 60px -40px rgba(60, 50, 40, .45);
}
@media (min-width: 48rem) {
  .is-evstack .el-event { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.25rem; align-items: center; }
  .is-evstack .el-event__body { border-top: 0; padding-top: 0; }
}
