/* A greeting-card website, around 2001, at its best. */
:root {
  --ui: Verdana, Geneva, Tahoma, "DejaVu Sans", sans-serif;
  --head: "Trebuchet MS", "Lucida Grande", Verdana, sans-serif;
  --round: "Fredoka", "Arial Rounded MT Bold", "VAG Rounded", "Trebuchet MS", sans-serif;
  --hand: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  --link: #2323c8;
  --purple: #5b3db0;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 12px/1.45 var(--ui); color: #222;
  background-color: #dcd3f2;
  /* the tiled wallpaper: little stars and dots on lavender */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M18 8l2.2 4.8 5.2.6-3.9 3.5 1.1 5.1L18 19.4l-4.6 2.6 1.1-5.1-3.9-3.5 5.2-.6z' fill='%23ffffff' fill-opacity='.55'/%3E%3Cpath d='M54 44l1.5 3.3 3.6.4-2.7 2.4.8 3.5-3.2-1.8-3.2 1.8.8-3.5-2.7-2.4 3.6-.4z' fill='%23fff7b0' fill-opacity='.8'/%3E%3Ccircle cx='52' cy='14' r='2' fill='%23f6b8d6' fill-opacity='.8'/%3E%3Ccircle cx='14' cy='52' r='1.6' fill='%23a9d4f5'/%3E%3Ccircle cx='36' cy='34' r='1.1' fill='%23ffffff' fill-opacity='.7'/%3E%3C/svg%3E");
}
a { color: var(--link); }
a:hover { color: #d0330f; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px dotted #5b3db0; outline-offset: 2px; }
[hidden] { display: none !important; }

#page { max-width: 1240px; margin: 14px auto 18px; background: #fff; border: 1px solid #8a7cc2; box-shadow: 0 0 0 4px rgba(255,255,255,.55), 0 6px 22px rgba(70,40,140,.22); }

/* ---------- header: the three steps and the search box (no logo) */
#top { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: linear-gradient(#9a7fe2 0%, #7a5cd0 52%, #6a4bc2 53%, #6142b8 100%); border-bottom: 3px solid #f6c945; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; min-width: 0; }
.steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 15px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); color: #efe9ff; font-weight: bold; font-size: 12px; white-space: nowrap; }
.steps li b { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #fff; color: #6a4bc2; font: 600 13px/1 var(--round); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.steps li + li::before { content: "\25B8"; color: #d9ccff; margin: 0 4px 0 -2px; display: none; }
.steps li.on { background: linear-gradient(#fff2a0, #ffd23f); border-color: #fff8cf; color: #46289a; box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.steps li.on b { background: #5b3db0; color: #ffe46e; }
.steps button { all: unset; display: inline-flex; align-items: center; gap: inherit; cursor: pointer; }
.steps button:focus-visible { outline: 2px dotted #fff; outline-offset: 2px; }
#find { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; font-weight: bold; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
#find input { width: 170px; padding: 3px 5px; border: 2px inset #d6d0e6; background: #fff; font-size: 12px; border-radius: 0; }
.btn-go, .w98 { cursor: pointer; }
.btn-go { padding: 3px 10px; font: bold 11px var(--ui); color: #5a3d00; background: linear-gradient(#fff2a8, #f7c21b); border: 1px solid #a8770a; border-radius: 3px; box-shadow: inset 0 1px 0 #fffbe0, 0 1px 0 rgba(0,0,0,.2); }
.btn-go:active { transform: translateY(1px); }

/* ---------- columns */
#cols { display: flex; align-items: stretch; }
#side { flex: 0 0 200px; padding: 12px 9px 16px; background: #f4f0ff; border-right: 1px solid #d6cbf3; }
#main { flex: 1 1 auto; min-width: 0; padding: 14px 18px 26px; }
.box { border: 1px solid #b4a5e6; background: #fff; margin: 0 0 12px; }
.bar { margin: 0; padding: 5px 9px; font: bold 11px/1.3 var(--ui); letter-spacing: .02em; color: #fff; text-shadow: 0 1px 0 rgba(40,10,90,.35); background: linear-gradient(#ad97f2, #8467d6 55%, #7a5cd0); border-bottom: 1px solid #5d43b0; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

.occ { list-style: none; margin: 0; padding: 4px 0 6px; }
.occ a { display: flex; align-items: center; gap: 7px; padding: 3px 8px; color: #2b2399; text-decoration: none; font-size: 12px; }
.occ a:hover { background: #fff3bf; text-decoration: underline; color: #2b2399; }
.occ a[aria-current] { background: linear-gradient(#fff1a6, #ffe170); font-weight: bold; color: #1d1666; box-shadow: inset 0 0 0 1px #ecc94b; }
.occ .grp { margin: 6px 6px 2px; padding: 6px 2px 1px; border-top: 1px dotted #cfc3ef; font: bold 10px var(--ui); text-transform: uppercase; letter-spacing: .06em; color: #8b7bc4; }
.ic { flex: 0 0 auto; display: block; }

#phone-occ { display: none; }

/* ---------- the catalog */
.vt { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0 0 8px; font: bold 21px/1.2 var(--head); color: var(--purple); border-bottom: 2px dotted #d8ccf5; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px 16px; }
.loading, .none { color: #777; font-style: italic; }
.cell { display: block; text-decoration: none; color: inherit; min-width: 0; }
.mat { position: relative; padding: 13px 13px 0; border-radius: 8px; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--mat) 62%); border: 1px solid var(--matb); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 1px 0 rgba(0,0,0,.04); }
.cf { position: relative; aspect-ratio: 2 / 3; background: #fff; padding: 3px; box-shadow: 1px 2px 0 rgba(0,0,0,.16), 0 4px 10px rgba(60,40,120,.16); transition: transform .3s cubic-bezier(.3,1.7,.5,1); }
.cf img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f2eff8; opacity: 0; transition: opacity .35s; }
.cf.in img { opacity: 1; }
.greet { height: 27px; display: grid; place-items: center; font: 600 13px/1 var(--round); color: var(--ink); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #fff, 0 0 6px #fff; }
.mot { position: absolute; width: 10px; height: 10px; color: var(--ink); opacity: .5; animation: tw 3.6s ease-in-out infinite; pointer-events: none; }
.mot.l { left: 1.5px; } .mot.r { right: 1.5px; }
.mot.t { top: 1.5px; } .mot.m { top: 38%; } .mot.m2 { top: 62%; } .mot.b { bottom: 30px; }
.mot.d1 { animation-delay: -.6s; } .mot.d2 { animation-delay: -1.2s; } .mot.d3 { animation-delay: -1.8s; } .mot.d4 { animation-delay: -2.4s; } .mot.d5 { animation-delay: -3s; }
@keyframes tw { 0%, 100% { transform: scale(.7) rotate(-12deg); opacity: .35; } 50% { transform: scale(1.12) rotate(12deg); opacity: .9; } }
.cell .name { display: block; margin: 7px 2px 0; font-weight: bold; font-size: 12px; color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.cell .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 1px 2px 0; }
.cell .client { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; letter-spacing: .05em; color: #8a8a8a; text-transform: uppercase; }
.cell .pv { flex: 0 0 auto; font-size: 10px; font-weight: bold; color: #e8590c; }
.cell:hover .pv { text-decoration: underline; }
.cell:hover .name { color: #d0330f; }
.cell:hover .cf, .cell:focus-visible .cf { transform: translateY(-5px) rotate(-1.2deg); }
.cell:hover .mot, .cell:focus-visible .mot { animation-duration: .9s; opacity: .95; }
.cell:hover .greet { animation: wig .7s ease-in-out; }
.cell.hello .cf.in { animation: hop .7s cubic-bezier(.3,1.6,.5,1) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes hop { 0% { transform: translateY(6px) scale(.97); } 60% { transform: translateY(-4px) rotate(-1deg); } 100% { transform: none; } }
@keyframes wig { 0%, 100% { transform: none; } 25% { transform: rotate(-3deg) scale(1.06); } 60% { transform: rotate(2deg) scale(1.04); } }

/* ---------- one card */
.crumbs { margin: 0 0 10px; font-size: 11px; color: #777; }
.c-row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.player { border: 1px solid #9f92cf; background: #fff; padding: 4px; box-shadow: 0 2px 0 rgba(0,0,0,.05); min-width: 0; }
.stage { position: relative; overflow: hidden; min-height: 240px; background: radial-gradient(130% 100% at 50% 0%, var(--bg1, #fff) 0%, var(--bg2, #eee) 100%); outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.stage.run { cursor: pointer; }
#fx { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }

/* envelope */
.e-back, .e-pocket, .e-flap { position: absolute; left: var(--ex); top: var(--ey); width: var(--ew); pointer-events: none; }
.e-back { height: var(--eh); z-index: 2; border-radius: 3px; background: linear-gradient(#0000 0%, rgba(0,0,0,.08) 100%), var(--env); filter: brightness(.86); box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.e-pocket { height: var(--eh); z-index: 4; }
.e-pocket svg, .f-face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.p-side { fill: var(--env); }
.p-bottom { fill: var(--env); filter: brightness(1.04); }
.p-edge, .f-edge { fill: none; stroke: rgba(70,50,30,.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.e-flap { height: calc(var(--eh) * .6); z-index: 6; }
.f-rot { position: absolute; inset: 0; transform-origin: 50% 0; transform-style: preserve-3d; }
.f-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.f-paper { fill: var(--env); filter: brightness(1.03); }
.f-in { transform: rotateX(180deg); }
.f-liner { fill: var(--liner); }
.seal { position: absolute; left: 50%; top: 78%; width: calc(var(--ew) * .13); height: calc(var(--ew) * .13); margin: calc(var(--ew) * -.065) 0 0 calc(var(--ew) * -.065); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff 0 18%, #fff7d6 19% 60%, #f0d77a 100%); border: 2px solid #d8a93a; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.seal .ic { width: 64%; height: 64%; }
.stage.open .e-back, .stage.open .e-pocket, .stage.open .e-flap { visibility: hidden; }
.stage:not(.run):not(.open) .c-wrap, .stage:not(.run):not(.open) .e-back, .stage:not(.run):not(.open) .e-pocket, .stage:not(.run):not(.open) .e-flap { visibility: hidden; }

/* the card */
.c-wrap { position: absolute; left: var(--cl); top: var(--ct); width: var(--cw); height: var(--ch); z-index: 3; transform-origin: 50% 50%; }
.stage.open .c-wrap { transform: translate(calc(var(--cw) / 2), 0); }
.c-shadow { position: absolute; top: 0; left: -100%; width: 200%; height: 100%; box-shadow: 0 14px 28px rgba(0,0,0,.32), 0 3px 6px rgba(0,0,0,.18); opacity: 0; }
.stage.open .c-shadow { opacity: 1; }
.c-cover { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; z-index: 2; }
.stage.open .c-cover { transform: perspective(1800px) rotateY(-180deg); }
.cv { position: absolute; inset: 0; margin: 0; padding: calc(var(--cw) * .025); border: 0; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.cv img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f1eef6; }
.cv-back { transform: rotateY(180deg); cursor: zoom-in; background: linear-gradient(90deg, #fff 92%, #ece8f2 100%); }
.cv-front { box-shadow: 0 6px 16px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.06); }
.c-inside { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 1.3em 1.2em 1.1em; overflow: hidden; font-size: var(--fs, 13px); line-height: 1.42;
  background: linear-gradient(90deg, #e9e4ef 0%, #fffdf6 7%, #fffdf6 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); color: #3a3340; }
.in-greet { display: flex; align-items: center; gap: .45em; font: 700 1.6em/1.05 var(--round); color: var(--ink); letter-spacing: .01em; text-shadow: 0 1px 0 #fff, 0 2px 0 rgba(0,0,0,.08); }
.in-greet .ic { width: 1.25em; height: 1.25em; }
.in-line { margin: .8em 0 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: #4a4250; }
.in-line[data-len="s"] { font-size: 1.3em; }
.in-line[data-len="m"] { font-size: 1.1em; }
.in-orn { display: flex; justify-content: center; align-items: center; gap: .9em; margin: auto 0 0; padding-top: .6em; color: var(--ink); }
.in-orn .orn { width: .95em; height: .95em; opacity: .55; }
.in-orn .orn.o1 { width: 1.35em; height: 1.35em; opacity: .8; }
.c-inside.written .in-orn { display: none; }
.in-msg { margin-top: auto; padding-top: .9em; display: grid; gap: .35em; }
.in-to, .in-from { display: flex; gap: .4em; align-items: baseline; border-bottom: 1px dotted #c9bfd9; min-height: 1.6em; }
.lbl { font: bold .78em var(--ui); color: #9a8fb0; text-transform: uppercase; letter-spacing: .06em; }
.hand { font-family: var(--hand); font-weight: 700; color: #2546b8; font-size: 1.12em; overflow-wrap: anywhere; }
.in-body { font-weight: 400; color: #2546b8; white-space: pre-wrap; }
.in-body:empty { display: none; }

/* the Flash player's button strip */
.ctrl { display: flex; align-items: center; gap: 6px; padding: 5px 4px 1px; font: 11px Tahoma, var(--ui); flex-wrap: wrap; }
.w98 { padding: 3px 9px; font: 11px Tahoma, var(--ui); color: #000; background: #d4d0c8; border: 2px solid; border-color: #fff #808080 #808080 #fff; box-shadow: 1px 1px 0 #404040; border-radius: 0; }
.w98:active, .w98[aria-pressed="true"] { border-color: #808080 #fff #fff #808080; box-shadow: none; background: #c9c5bd; }
.tune { margin-left: auto; padding: 2px 4px; border: 0; background: none; color: #6b6488; font: italic 11px Tahoma, var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.tune:hover { color: #d0330f; }

/* personalize */
.pers > summary { list-style: none; cursor: pointer; }
.pers > summary::-webkit-details-marker { display: none; }
.pers.fixed > summary { cursor: default; }
.pf { display: grid; gap: 9px; padding: 11px 11px 12px; background: linear-gradient(#fbf9ff, #f3effd); }
.pf label { display: grid; gap: 3px; font-weight: bold; font-size: 11px; color: #4a3a99; }
.pf input, .pf textarea { width: 100%; padding: 4px 5px; font: 13px var(--ui); color: #222; background: #fff; border: 1px solid #7f9db9; border-radius: 0; box-shadow: inset 1px 1px 0 #e3e3e3; }
.pf textarea { resize: vertical; min-height: 74px; font-family: var(--hand); font-size: 14px; color: #2546b8; }
.pf input:focus, .pf textarea:focus { outline: 2px solid #ffd23f; outline-offset: 0; }
.send { display: block; margin-top: 4px; padding: 11px 8px; text-align: center; text-decoration: none; font: bold 15px var(--ui); color: #fff !important; text-shadow: 0 -1px 0 rgba(120,40,0,.45);
  background: linear-gradient(#ffb15c 0%, #ff8a1f 50%, #f2700a 51%, #e45f05 100%); border: 1px solid #a8470a; border-radius: 6px; box-shadow: inset 0 1px 0 #ffd9b0, 0 2px 0 #b24e0b, 0 3px 6px rgba(0,0,0,.18); }
.send:hover { filter: brightness(1.06); }
.send:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffd9b0, 0 0 0 #b24e0b; }
.another { text-align: center; font-size: 11px; }

/* about this card: the real work, by the media kit */
.about-card { margin-top: 16px; }
.ac-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px 0; }
.ac-head h1 { margin: 0; font: bold 22px/1.2 var(--head); color: #3b2a8f; }
.c-client { font-size: 10px; letter-spacing: .07em; color: #888; text-transform: uppercase; }
.work { --ab-fg: #262230; --ab-muted: #6b6578; --ab-accent: #6a4bc2; --ab-chrome: 40px; padding: 12px 14px 16px; font: 13px/1.55 var(--ui); }
.work .ab-heading { padding-bottom: 4px; border-bottom: 1px dotted #cfc3ef; font: bold 14px var(--head); color: var(--purple); }
.work .ab-text { color: #3a3545; }
.work .ab-film figcaption, .work .ab-audio figcaption { font-size: 11px; color: #6b6578; }
.work .ab-frame { box-shadow: 0 0 0 1px #b4a5e6, 0 3px 10px rgba(60,40,120,.18); }
.work .ab-image img { box-shadow: 0 0 0 1px #ddd6ee, 0 3px 10px rgba(60,40,120,.12); }
.work .ab-credits { padding-top: 10px; border-top: 1px dotted #cfc3ef; font-size: 11px; }
.more-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px; }
.cell.small { width: 98px; }
.cell.small .mat { padding: 7px; }
.cell.small .name { font-size: 11px; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 12px; font-weight: bold; }

/* about us, help */
.about { max-width: 640px; padding: 16px 18px; border: 1px solid #d8ccf5; background: linear-gradient(#fffdf6, #fff); }
.a-name { margin: 0; font: 700 26px/1.1 var(--round); color: var(--purple); }
.a-title { margin: 4px 0 10px; font-weight: bold; color: #555; }
.a-bio { font-size: 13px; }
.a-exp { margin: 14px 0 0; padding: 12px 0 0 18px; border-top: 1px dotted #cfc3ef; }
.a-exp li { margin: 0 0 8px; }
.a-exp span { display: block; color: #666; font-size: 11px; }
.faq { max-width: 640px; margin: 0; }
.faq dt { margin: 14px 0 3px; font: bold 13px var(--ui); color: var(--purple); }
.faq dt::before { content: "Q. "; color: #e8590c; }
.faq dd { margin: 0 0 0 22px; font-size: 12px; }

#foot { padding: 12px 10px 14px; border-top: 1px solid #d6cbf3; background: #f4f0ff; text-align: center; font-size: 11px; color: #777; }
#foot p { margin: 4px 0 0; }

/* ---------- smaller screens */
@media (max-width: 1100px) { .c-row { grid-template-columns: minmax(0, 1fr) 250px; } }
@media (max-width: 900px) { #side { flex-basis: 178px; } .c-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  body { font-size: 13px; }
  #page { margin: 0; border-left: 0; border-right: 0; box-shadow: none; }
  #top { padding: 8px 8px; gap: 8px; }
  .steps { gap: 4px; width: 100%; justify-content: space-between; }
  .steps li { padding: 3px 9px 3px 3px; font-size: 11px; gap: 5px; }
  .steps li b { width: 19px; height: 19px; font-size: 12px; }
  #find { display: none; }
  #side { display: none; }
  #main { padding: 10px 10px 20px; }
  body[data-view="card"] #phone-occ { display: none; }
  #phone-occ { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 9px; border: 1px solid #b4a5e6; background: #f4f0ff; font-weight: bold; font-size: 12px; color: #4a3a99; }
  #phone-occ select { flex: 1; min-width: 0; padding: 4px; font-size: 14px; border: 1px solid #7f9db9; background: #fff; }
  .vt { font-size: 18px; margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .mat { padding: 11px 11px 0; }
  .mot { width: 9px; height: 9px; }
  .mot.l { left: 1px; } .mot.r { right: 1px; } .mot.b { bottom: 28px; }
  .greet { font-size: 12.5px; height: 26px; }
  .player { padding: 3px; }
  .pers > summary { padding: 10px 12px; font-size: 13px; }
  .pers > summary::after { content: " \25BE"; }
  .pers[open] > summary::after { content: " \25B4"; }
  .ac-head h1 { font-size: 19px; }
  .ac-head, .work { padding-left: 10px; padding-right: 10px; }
  .tune { flex-basis: 100%; margin-left: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .mot, .cell.hello .cf, .cell:hover .greet { animation: none !important; }
  .cf, .cf img { transition: none; }
}
