/* mijneerstewoordje.nl: poster preview (wave + lettering) and the sound choices. Fonts as in the PDF. */
@font-face { font-family: "PK Serif Italic"; src: url(/assets/fonts/P052-Italic.otf) format("opentype"); font-display: block; }
@font-face { font-family: "PK Gothic Book"; src: url(/assets/fonts/URWGothic-Book.otf) format("opentype"); font-display: block; }

.ew-poster { position: absolute; inset: 0; overflow: hidden; }
.ew-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ew-word { font-family: "PK Serif Italic", Georgia, serif; text-anchor: middle; }
.ew-t2 { font-family: "PK Gothic Book", sans-serif; text-anchor: middle; }

.ew-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ew-tabs .pill { justify-content: center; height: 46px; }
.ew-tabs .pill[aria-selected="true"] { background: var(--on); border-color: var(--on); color: var(--slate); }
.ew-src { display: grid; gap: 10px; }
.ew-note { margin: 0; font-size: 13px; color: var(--on-faint); }
.ew-file { position: relative; justify-content: center; font-weight: 650; }
.ew-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ew-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90%; }
.ew-file:focus-within { box-shadow: 0 0 0 3px rgba(244, 242, 238, .35); }
.ew-player { display: grid; gap: 10px; margin-top: 14px; color: var(--on-muted); font-size: 15px; }
.ew-player-row { display: flex; align-items: center; gap: 12px; }
.ew-trim { position: relative; height: 72px; border-radius: 12px; background: rgba(255, 255, 255, .06); touch-action: none; user-select: none; -webkit-user-select: none; }
.ew-trim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ew-h { position: absolute; top: -4px; bottom: -4px; width: 28px; margin-left: -14px; padding: 0; border: 0; background: none; cursor: ew-resize; touch-action: none; }
.ew-h::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--yellow); }
.ew-h::after { content: ""; position: absolute; left: 7px; top: 50%; width: 14px; height: 26px; margin-top: -13px; border-radius: 7px; background: var(--yellow); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ew-h:focus-visible::after { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.ew-head { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ew-zoom { margin-left: auto; height: 34px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; background: none; color: var(--on); font-size: 14px; font-weight: 650; cursor: pointer; }
.ew-zoom:hover { border-color: var(--on); }
.ew-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ew-play { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--slate); font-size: 16px; cursor: pointer; }
.ew-text { display: grid; gap: 12px; }
.ew-themes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ew-swatch { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--on); font-size: 13.5px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.ew-swatch:hover { border-color: rgba(255, 255, 255, .34); }
.ew-swatch[aria-checked="true"] { border-color: var(--on); background: rgba(255, 255, 255, .14); }
.ew-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50%); }
.orient .pill { justify-content: center; }
.sp-explain { grid-template-columns: 1fr; max-width: 760px; }

.ew-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; }
.ew-gallery figure { margin: 0; display: grid; gap: 10px; }
.ew-gallery img { width: 100%; height: auto; display: block; box-shadow: 0 18px 36px -20px rgba(32, 40, 44, .55); }
.ew-gallery figcaption { font-size: 15px; color: var(--muted); }
.page-home { --gift-em: #b25d63; }
@media (max-width: 900px) { .ew-themes { grid-template-columns: 1fr 1fr; } .ew-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
