/* The first screen of the shop: the sentence, the film, the example and the moments. */
.dgwg-home { max-width: 1040px; }
.dgwg-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 6px 0 30px; }
.dgwg-hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.7rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 16px; }
.dgwg-hero .dgwg-lead { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0; }
.dgwg-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 0; }
.dgwg-hero-cta .dgwg-btn { font-size: 1.1rem; padding: 16px 28px; }
.dgwg-ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-size: .98rem; color: #3B4A42; }
.dgwg-ticks li { position: relative; padding-inline-start: 28px; }
.dgwg-ticks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .34em; width: 11px; height: 6px; transform: rotate(-45deg);
  border-left: 2.5px solid var(--pine); border-bottom: 2.5px solid var(--pine); }

/* the film, upright like the phone it is watched on, with the envelope leaning against it */
.dgwg-hero-show { position: relative; justify-self: center; width: min(100%, 310px); padding-bottom: 34px; }
.dgwg-film { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--pine);
  box-shadow: 0 0 0 8px #1B2019, 0 30px 54px rgba(0, 0, 0, .3); }
.dgwg-film video, .dgwg-film-play { position: absolute; inset: 0; width: 100%; height: 100%; }
.dgwg-film video { object-fit: cover; background: #000; }
/* the button in the last picture of the film: a see-through button over it, there for as long as the picture shows it */
.dgwg-film-cta { position: absolute; left: 24%; top: 54%; width: 52%; height: 10%; border: 0; padding: 0; border-radius: 10px; background: transparent;
  cursor: pointer; }
.dgwg-film-cta:hover, .dgwg-film-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 248, 231, .75); }
.dgwg-film-play { border: 0; padding: 0 16px; cursor: pointer; background-size: cover; background-position: center; color: #FFF8E7;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: inherit; }
.dgwg-film-play::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .18), rgba(0, 0, 0, .55)); }
.dgwg-film-play > * { position: relative; }
.dgwg-play { width: 78px; height: 78px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin: 0 0 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: transform .18s ease; }
.dgwg-play::after { content: ""; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #1B2019;
  margin-inline-start: 6px; }
.dgwg-film-play:hover .dgwg-play, .dgwg-film-play:focus-visible .dgwg-play { transform: scale(1.07); }
.dgwg-film-play b { font: 700 1.3rem/1.15 Fraunces, Georgia, serif; }
.dgwg-film-play small { font-size: .86rem; opacity: .88; }
.dgwg-hero-env { position: absolute; inset-inline-start: -24%; bottom: 0; width: 64%; transform: rotate(-7deg); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; }
/* the film has its own words along the bottom: once it plays the envelope steps aside */
.dgwg-playing .dgwg-hero-env { opacity: 0; transform: translateY(24px) rotate(-7deg); }

/* without a film: three cards fanned out */
.dgwg-show-fan { width: min(100%, 420px); padding-bottom: 60px; }
.dgwg-fan { position: relative; aspect-ratio: 1 / 1.02; }
.dgwg-fan .dgwg-front { position: absolute; width: 56%; top: 4%; left: 22%; font-size: .84rem; }
.dgwg-fan .dgwg-front:nth-child(1) { transform: translateX(-46%) rotate(-9deg); }
.dgwg-fan .dgwg-front:nth-child(2) { z-index: 1; transform: translateY(-3%); }
.dgwg-fan .dgwg-front:nth-child(3) { transform: translateX(46%) rotate(9deg); }
.dgwg-show-fan .dgwg-hero-env { inset-inline-start: -4%; width: 50%; z-index: 2; }

/* the parts under it */
.dgwg-part { margin: 68px 0 0; }
.dgwg-part > h2, .dgwg-close h2 { font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; margin: 0 0 12px; max-width: 24em; }
/* the envelope and the card stand one under the other, the open card beside them over the full height */
.dgwg-trip { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px 44px; align-items: start; margin: 28px 0 0; }
.dgwg-trip figure { margin: 0; }
.dgwg-trip figure:nth-child(2) { width: 62%; justify-self: center; }
.dgwg-trip-open { grid-column: 2; grid-row: 1 / span 2; }
.dgwg-trip figcaption { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; font-size: .95rem; font-weight: 600; }
.dgwg-trip figcaption b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--wine); color: #FBF6EA; display: grid;
  place-items: center; font: 700 .85rem Inter, sans-serif; }
.dgwg-ex { position: relative; }
.dgwg-ex .dgwg-open { position: relative; }
.dgwg-ex .dgwg-right { padding-bottom: 70px; }
.dgwg-ex .dgwg-open::after { content: ""; position: absolute; inset: auto 0 0 0; height: 130px;
  background: linear-gradient(to bottom, rgba(251, 246, 234, 0), #FBF6EA 72%); }
.dgwg-ex-tag { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; font: 600 .64rem Inter, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; background: var(--gold); color: #1B2019; padding: 4px 10px; border-radius: 999px; }
.dgwg-ex-on { position: absolute; inset: auto 0 16px 0; z-index: 1; margin: 0; padding: 0 18px; text-align: center; font-weight: 600; font-size: .9rem;
  color: var(--wine); }
/* the way to the demo under the example: a question and one large gold button with a soft glow, under a thin line */
.dgwg-demo-go { margin: 52px 0 0; padding: 34px 0 0; border-top: 1px solid var(--line); text-align: center; }
.dgwg-demo-go h3 { font: 700 clamp(1.35rem, 3vw, 1.7rem)/1.2 Fraunces, Georgia, serif; color: var(--pine); margin: 0 0 20px; }
.dgwg-demo-go .dgwg-btn { font-size: 1.2rem; padding: 19px 38px; box-shadow: 0 0 0 8px rgba(232, 184, 75, .22), 0 14px 28px rgba(0, 0, 0, .14); }
.dgwg-demo-go svg { vertical-align: -3px; margin-inline-start: 8px; }
.dgwg-moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; margin: 22px 0 28px; }
.dgwg-moment { display: block; text-decoration: none; color: inherit; }
.dgwg-moment .dgwg-front { transition: transform .18s ease; font-size: .92rem; }
.dgwg-moment:hover .dgwg-front, .dgwg-moment:focus-visible .dgwg-front { transform: translateY(-5px) rotate(-1deg); }
.dgwg-moment span { display: block; margin: 12px 0 0; font-weight: 700; }
.dgwg-moments-go { margin: 0; text-align: center; }
.dgwg-moments-go .dgwg-btn { font-size: 1.15rem; padding: 17px 34px; }
/* why: what half of the price does. The counted line stands large on wine red, so the green block of the last word under it keeps
   standing out; under it three things the money keeps going */
.dgwg-why .dgwg-lead { margin: 0 0 10px; text-wrap: balance; }
.dgwg-why-count { margin: 22px 0 16px; padding: 28px 30px; border-radius: 14px; background: var(--wine); color: #FBF6EA;
  font: 700 clamp(1.35rem, 3vw, 1.9rem)/1.25 Fraunces, Georgia, serif; }
.dgwg-why-count p { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); text-wrap: balance; }
.dgwg-why-count b { color: var(--gold); font-weight: inherit; }
.dgwg-why-count small { display: block; margin: 12px 0 0; font: 400 1rem/1.5 Inter, system-ui, sans-serif; color: #EFE3D3; }
.dgwg-why-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 16px 0 0; }
.dgwg-why-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.dgwg-why-list strong { display: block; font: 700 1.15rem/1.25 Fraunces, Georgia, serif; color: var(--pine); margin: 0 0 8px; }
.dgwg-why-list span { display: block; font-size: 1rem; line-height: 1.6; color: #3B4A42; }
/* the button that starts a card from the middle of the page: wine red with a gold arrow, unlike the gold buttons that show more */
.dgwg-cta { margin: 34px 0 0; text-align: center; }
.dgwg-cta-go { display: inline-flex; align-items: center; gap: 16px; font: 700 1.2rem/1.2 Inter, system-ui, sans-serif; text-align: start;
  padding: 12px 12px 12px 34px; border: 0; border-radius: 999px; background: var(--wine); color: #FBF6EA; cursor: pointer;
  box-shadow: 0 12px 26px rgba(107, 42, 53, .28); transition: transform .15s ease, box-shadow .15s ease; }
.dgwg-cta-go:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(107, 42, 53, .34); }
.dgwg-cta-go:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dgwg-cta-go i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #1B2019; }
.dgwg-cta small { display: block; margin: 12px 0 0; font: 500 .95rem/1.4 Inter, system-ui, sans-serif; color: var(--soft); }
.dgwg-close { margin: 68px 0 0; padding: 46px 28px; border-radius: 16px; background: var(--pine); color: #FBF6EA; text-align: center; }
.dgwg-close h2 { margin: 0 auto 20px; color: #FBF6EA; }
.dgwg-close p { margin: 0; }
.dgwg-close .dgwg-half { color: #D9D3C2; margin-top: 20px; }

@media (max-width: 760px) {
  .dgwg-hero { grid-template-columns: 1fr; gap: 36px; }
  .dgwg-hero-show { width: min(70vw, 290px); }
  .dgwg-hero-env { inset-inline-start: -14%; }
  .dgwg-show-fan { width: min(86vw, 360px); }
  .dgwg-part { margin-top: 52px; }
  .dgwg-trip { grid-template-columns: 1.15fr .85fr; gap: 24px 16px; align-items: center; }
  .dgwg-trip figure:nth-child(2) { width: auto; justify-self: stretch; }
  .dgwg-trip-open { grid-column: 1 / -1; grid-row: auto; }
  .dgwg-trip figcaption { font-size: .86rem; align-items: flex-start; }
  .dgwg-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .dgwg-demo-go { margin-top: 40px; padding-top: 28px; }
  .dgwg-demo-go .dgwg-btn { font-size: 1.05rem; padding: 16px 24px; }
  .dgwg-why-count { padding: 22px 20px; }
  .dgwg-why-list { grid-template-columns: 1fr; }
  .dgwg-close { margin-top: 52px; padding: 38px 20px; }
  .dgwg-cta-go { font-size: 1.08rem; gap: 12px; padding: 10px 10px 10px 24px; }
  .dgwg-cta-go i { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .dgwg-play, .dgwg-moment .dgwg-front, .dgwg-hero-env { transition: none; }
}

a.dgwg-cta-go { text-decoration: none; }
/* the page of one moment (moment.php): the way back, the heading and the button beside the first card, every card of the moment
   with its verse, and the other moments in their groups; the list of all moments closes the first screen too */
.dgwg-crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; font-size: .9rem; color: var(--soft); }
.dgwg-crumbs a { color: var(--pine); }
.dgwg-mom-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 0 0 12px; }
.dgwg-mom-top h1 { margin: 0 0 14px; }
.dgwg-mom-show { max-width: 300px; justify-self: center; width: 100%; transform: rotate(2deg); }
.dgwg-mom-go { margin: 22px 0 10px; }
.dgwg-mom-go .dgwg-btn { font-size: 1.15rem; padding: 15px 30px; }
.dgwg-mom-price { margin: 0; font-size: .92rem; color: var(--soft); }
.dgwg-mom-cards { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.dgwg-mom-cards a { display: block; text-decoration: none; color: inherit; }
.dgwg-mom-cards .dgwg-front { font-size: .84rem; transition: transform .18s ease; }
.dgwg-mom-cards a:hover .dgwg-front, .dgwg-mom-cards a:focus-visible .dgwg-front { transform: translateY(-5px) rotate(-1deg); }
.dgwg-mom-cards span { display: block; margin: 12px 0 0; font-weight: 700; color: var(--wine); }
.dgwg-mom-cards small { display: block; margin: 4px 0 0; font-size: .85rem; color: var(--soft); line-height: 1.4; }
.dgwg-mom-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 18px 0 0; }
.dgwg-mom-groups h3 { font: 700 1rem/1.3 Fraunces, Georgia, serif; color: var(--pine); margin: 0 0 8px; }
.dgwg-mom-groups ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dgwg-mom-groups a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dgwg-mom-groups a:hover { color: var(--wine); }
@media (max-width: 760px) {
  .dgwg-mom-top { grid-template-columns: 1fr; gap: 26px; }
  .dgwg-mom-show { max-width: 220px; order: -1; }
  .dgwg-mom-go, .dgwg-mom-price { text-align: center; }
  .dgwg-mom-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .dgwg-mom-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .dgwg-mom-cards .dgwg-front { transition: none; }
}
