/* The themed designs (/designs/...): the drawings in the studio's fine ink lines on paper, gold only where there is gold.
   Line widths are the laser's own, in mm of the card (a drawing shows exactly what is lasered). */
.dz-panel, .dz-open, .dz-photo { display: block; width: 100%; height: auto; }
.dz-paper { fill: #fff; stroke: rgba(30, 24, 16, .16); stroke-width: .3; }
.dz-art path { fill: none; stroke: var(--dz-ink, #1d1814); stroke-linecap: round; stroke-linejoin: round; }
.dz-art path.dz-f { fill: var(--dz-ink, #1d1814); stroke: none; }
.dz-text text { fill: var(--dz-ink, #1d1814); }
.is-gold-finish { --dz-ink: #a8792a; }
.dz-open .dz-cardline { fill: #fff; stroke: rgba(30, 24, 16, .32); stroke-width: .35; }
.dz-open .dz-fold { stroke: rgba(30, 24, 16, .18); stroke-width: .3; }
.dz-case rect { fill: none; stroke: rgba(30, 24, 16, .5); stroke-width: .32; }
.dz-case .dz-soft { stroke: rgba(30, 24, 16, .2); stroke-width: .25; }
.dz-gold { fill: none; stroke: #a8792a; stroke-width: .5; vector-effect: non-scaling-stroke; }
.dz-gold.dz-thin { stroke-width: .35; }
.dz-bar rect.dz-gold:first-child { fill: rgba(232, 196, 112, .16); }
.dz-brand { font: 500 3.2px 'Cormorant Garamond', Georgia, serif; fill: #6d5a3a; }
.dz-brand--s { font: 600 1.7px 'DM Sans', sans-serif; letter-spacing: .5px; }
.dz-brand--gold { fill: #8a6420; }
.dz-onphoto { mix-blend-mode: multiply; --dz-ink: #1a1512; }
.dz-onphoto.is-gold-finish, .is-gold-finish .dz-onphoto { --dz-ink: #b08a3e; }

/* the design page */
.dz-stage { position: relative; background: #fbf8f2; border: 1px solid var(--line); padding: 18px; }
.dz-stage svg[hidden] { display: none; }
.dz-photo { background: #fff; }
.dz-views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dz-views button { min-height: 40px; padding: 0 14px; border: 1px solid var(--gw-line); background: #fff; color: var(--ink); font: 600 14px 'DM Sans', sans-serif; cursor: pointer; }
.dz-views button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dz-views [data-replay] { margin-left: auto; border-color: transparent; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.dz-honest { margin-top: 10px; }
.dz-buy h1 { margin-top: 6px; }
.dz-wordsnote { margin: -10px 0 10px; }
.dz-wordsnote.is-own { color: var(--ink-2); }
.dz-link { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.dz-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.dz-ideas .pd-small { margin: 0 4px 0 0; }
.dz-idea { min-height: 34px; padding: 4px 10px; border: 1px dashed var(--gw-line); background: #fff; color: var(--ink-2); font: 14px 'DM Sans', sans-serif; cursor: pointer; text-align: left; }
.dz-idea:hover { border-color: var(--gold-l); color: var(--ink); }

.pd-engrave textarea[aria-invalid="true"] { border-color: #9a2f1f; }

/* draw-on: each line draws itself (designs.js sets the lengths); words appear after */
.dz-drawing .dz-art path:not(.dz-f) { animation: dz-draw var(--dz-t, 1.4s) cubic-bezier(.55, .06, .3, 1) both; animation-delay: var(--dz-d, 0s); }
.dz-drawing .dz-art path.dz-f, .dz-drawing .dz-text { animation: dz-fade .6s ease both; animation-delay: var(--dz-after, 1.2s); }
@keyframes dz-draw { from { stroke-dashoffset: var(--dz-len); } to { stroke-dashoffset: 0; } }
@keyframes dz-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dz-drawing .dz-art path, .dz-drawing .dz-text { animation: none !important; } }

/* tiles, grids and the hub */
.dz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; margin: 26px 0 10px; }
.dz-grid--more { grid-template-columns: repeat(4, 1fr); }
.dz-tile, .dz-theme { display: block; color: var(--ink); text-decoration: none; }
.dz-panel--tile { background: #fbf8f2; padding: 6%; border: 1px solid var(--line); box-sizing: border-box; transition: transform .3s, box-shadow .3s; }
.dz-tile:hover .dz-panel--tile, .dz-theme:hover .dz-panel--tile { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, .07); }
.dz-tile b, .dz-theme b { display: block; margin-top: 12px; font: 500 19px/1.3 'Bodoni Moda', Georgia, serif; }
.dz-tile span, .dz-theme span { display: block; color: var(--muted); font-size: 15px; }
.dz-theme__k { margin-top: 12px; font: 700 11px/1.4 'DM Sans', sans-serif !important; letter-spacing: .16em; text-transform: uppercase; color: var(--gold) !important; }
.dz-theme__k + b { margin-top: 2px; }
.dz-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; margin-top: 18px; }
.dz-themehead { max-width: 760px; padding-bottom: 6px; }
.dz-copy { max-width: 760px; }
.dz-hub { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.dz-hub h1 { margin: 0 0 16px; }
.dz-steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.dz-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.dz-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border: 1px solid var(--gold-l); border-radius: 50%; display: grid; place-items: center; font: 500 17px 'Bodoni Moda', Georgia, serif; color: var(--gold); }
.dz-steps b { font-weight: 600; }
.dz-steps span { color: var(--muted); font-size: 15px; }
.dz-hub__art { position: relative; margin: 0; }
.dz-hub__art .dz-cycle { display: none; max-width: 340px; margin: 0 auto; }
.dz-hub__art .dz-cycle.is-on { display: block; }
.dz-hub__art .dz-panel { filter: drop-shadow(0 18px 30px rgba(40, 30, 10, .1)); }
.dz-hub__art figcaption { margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.dz-hub__art figcaption span { color: var(--ink); font-weight: 600; margin-right: 6px; }

@media (max-width: 1000px) { .dz-grid, .dz-themes, .dz-grid--more { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .dz-hub { grid-template-columns: 1fr; gap: 26px; } .dz-hub__art { order: -1; } .dz-hub__art .dz-cycle { max-width: 240px; } .dz-stage { padding: 10px; } }
@media (max-width: 640px) { .dz-grid, .dz-themes, .dz-grid--more { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } .dz-tile b, .dz-theme b { font-size: 16px; } .dz-views [data-replay] { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .dz-panel--tile { transition: none; } }
/* SVG groups do not hide themselves with the hidden attribute */
.dz-open [hidden], .dz-photo [hidden] { display: none; }
.dz-weights { gap: 6px; }
.dz-weights .gw-opt span { min-width: 0; padding: 8px 10px; }
.dz-still { margin: 22px 0 6px; }
.dz-still img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
.dz-still figcaption { margin-top: 6px; }

/* photos of the design on the real card (indexable pictures), under the drawing */
.dz-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.dz-photos button { position: relative; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.dz-photos button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dz-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.dz-photos span { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; background: rgba(255, 255, 255, .9); font: 600 12px 'DM Sans', sans-serif; color: var(--ink); }
.dz-stillview { display: block; width: 100%; height: auto; background: #fff; }
.dz-stillview[hidden] { display: none; }
.dz-alltheme { margin-top: 14px; }
/* theme pages: the words beside a photo of the featured design */
.dz-themehead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; max-width: none; }
.dz-themehead__img img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
/* the hub's list of every design */
.dz-every__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 30px; }
.dz-every h3 { font: 500 19px/1.3 'Bodoni Moda', Georgia, serif; margin: 22px 0 6px; }
.dz-every h3 a { color: var(--ink); text-decoration: none; }
.dz-every ul { list-style: none; padding: 0; margin: 0; }
.dz-every li { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dz-every li a { color: var(--ink-2); text-decoration: none; }
.dz-every li a:hover, .dz-every h3 a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 900px) { .dz-themehead { grid-template-columns: 1fr; gap: 20px; } .dz-every__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dz-every__grid { grid-template-columns: 1fr; } }
