@charset "UTF-8";
/* Ex Libris typography */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600;700&family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700&family=Great+Vibes&family=IM+Fell+English&family=Lora:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&family=Marcellus&family=Playfair+Display:wght@400;500;600;700&display=swap");
:root {
  --el-ink: #17252e;
  --el-muted: #6f767b;
  --el-paper: #f6f3ed;
  --el-white: #fffdf9;
  --el-line: #ded9d0;
  --el-accent: #a8885d;
  --el-accent-dark: #806746;
  --el-radius: 16px;
  --el-shadow: 0 24px 70px rgba(24, 32, 37, .09);
}

.generator-shell {
  min-height: 100vh;
  color: var(--el-ink);
  background: var(--el-white);
  font-family: Arial, Helvetica, sans-serif;
}

.generator-shell *,
.generator-shell *::before,
.generator-shell *::after {
  box-sizing: border-box;
}

.generator-shell button,
.generator-shell input {
  font: inherit;
}

.generator-shell button {
  cursor: pointer;
}

.el-header {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--el-line);
}

.el-brand {
  color: var(--el-ink);
  text-decoration: none;
  font: 700 14px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
}

.el-step-count {
  color: var(--el-muted);
  font-size: 12px;
  font-weight: 700;
}

.el-progress {
  padding: 16px clamp(20px, 4vw, 54px) 0;
}

.el-progress-track {
  height: 0.35rem;
  overflow: hidden;
  background: #e8e4dc;
}

.el-progress-track span {
  display: block;
  height: 100%;
  width: 16.667%;
  background: var(--primary);
  transition: width 0.35s ease;
}

.el-progress-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 8px;
  color: #aaa49c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;
}

.el-progress-labels span {
  transition: color 0.2s ease;
}

.el-progress-labels span.active {
  color: var(--el-ink);
}

.el-workspace {
  width: min(1380px, 100%);
  min-height: calc(100vh - 135px);
  margin: 0 auto;
  padding: 34px clamp(16px, 3vw, 44px) 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 62px);
}

.el-steps {
  padding-top: 138px;
}

.el-steps-title {
  margin-bottom: 20px;
  color: var(--el-ink);
  font: 700 16px/1.2 Georgia, "Times New Roman", serif;
}

.el-step-nav {
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 7px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #a09b94;
  text-align: left;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.el-step-nav span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.el-step-nav strong {
  font-size: 11px;
  font-weight: 600;
}

.el-step-nav.active {
  border-left-color: var(--el-accent);
  color: var(--el-ink);
  background: #f7f4ef;
}

.el-main {
  position: relative;
  min-width: 0;
  padding-bottom: 30px;
}

.el-panel {
  display: none;
  animation: el-enter 0.28s ease both;
}

.el-panel.active {
  display: block;
}

@keyframes el-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.el-intro {
  max-width: 760px;
  margin: 8px auto 30px;
  padding-inline: 105px;
  text-align: center;
}

.el-eyebrow {
  margin: 0 0 9px;
  color: var(--el-accent-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.generator-shell h1,
.generator-shell h2,
.generator-shell h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--el-ink);
}

.generator-shell h1,
.generator-shell h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.06;
}

.generator-shell h3 {
  margin: 0 0 7px;
  font-size: 21px;
}

.el-intro > p:not(.el-eyebrow),
.el-preview-intro p:not(.el-eyebrow) {
  margin: 0;
  color: var(--el-muted);
  line-height: 1.6;
  font-size: 14px;
}

.el-card-grid {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.el-category-grid,
.el-design-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.el-frame-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.el-font-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.el-option {
  position: relative;
  padding: 8px;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  background: #fff;
  color: var(--el-ink);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.el-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 32, 37, 0.07);
}

.el-option.selected {
  border-color: var(--el-accent);
  box-shadow: 0 0 0 3px rgba(168, 136, 93, 0.16);
}

.el-option.selected::after {
  content: "✓";
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--el-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.el-card-art {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--el-paper);
}

.el-category-grid .el-card-art,
.el-design-grid .el-card-art {
  min-height: 0;
  aspect-ratio: 4/3;
}

.el-card-art svg {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.el-option h3 {
  margin: 10px 4px 3px;
  font-size: 16px;
  line-height: 1.25;
}

.el-option p {
  margin: 0 4px 5px;
  color: var(--el-muted);
  font-size: 11px;
  line-height: 1.4;
}

.el-frame-option .el-card-art {
  min-height: 0;
  aspect-ratio: 4/3;
}

.el-font-option {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
}

.el-font-sample {
  padding: 15px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.el-font-name {
  position: absolute;
  right: 16px;
  bottom: 12px;
  left: 16px;
  color: var(--el-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.el-text-layout {
  width: min(950px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}

.el-form-card {
  padding: 28px;
  border-radius: var(--el-radius);
  background: var(--el-paper);
}

.el-form-card label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.el-form-card label small {
  color: #9c968d;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.el-form-card input {
  width: 100%;
  margin: 0 0 5px;
  padding: 13px 14px;
  border: 1px solid #d7d2c9;
  border-radius: 9px;
  outline: 0;
  color: var(--el-ink);
  background: #fff;
}

.el-form-card input:focus {
  border-color: var(--el-accent);
  box-shadow: 0 0 0 3px rgba(168, 136, 93, 0.12);
}

.el-count {
  margin-bottom: 23px;
  color: var(--el-muted);
  font-size: 10px;
}

.el-hint {
  margin: 3px 0 0;
  color: var(--el-muted);
  font-size: 11px;
  line-height: 1.5;
}

.image-position-controls {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 37, 46, 0.12);
}

.image-control {
  display: grid;
  gap: 0.55rem;
}

.image-control-header,
.text-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.image-control-header label,
.text-control-header label {
  margin: 0;
}

.image-control-header input[type=number],
.text-control-header input[type=number] {
  width: 64px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(23, 37, 46, 0.18);
  border-radius: 6px;
  background: var(--el-paper);
  color: var(--el-ink);
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.image-control-header input[type=number]:focus,
.text-control-header input[type=number]:focus {
  outline: none;
  border-color: var(--el-ink);
}

/* Ex Libris font selector */
.generator-shell select#fontSelect {
  width: 100%;
  min-height: 48px;
  padding: 0 44px 0 15px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d8cdbd;
  border-radius: 8px;
  background-color: #fffdf9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23806746' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  color: var(--el-ink);
  font-family: Georgia, serif;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.generator-shell select#fontSelect:hover {
  border-color: var(--el-accent);
}

.generator-shell select#fontSelect:focus-visible {
  outline: none;
  border-color: var(--el-accent-dark);
  box-shadow: 0 0 0 3px rgba(168, 136, 93, 0.16);
}

.generator-shell select#fontSelect option {
  padding: 10px;
  background: #fffdf9;
  color: var(--el-ink);
}

.image-control input[type=range] {
  width: 100%;
}

.el-live-preview,
.el-size-preview {
  min-height: 500px;
  padding: 20px;
  display: grid;
  place-items: center;
  border-radius: var(--el-radius);
  background: #eeeae3;
}

.el-live-preview svg,
.el-size-preview svg {
  width: min(100%, 390px);
  height: auto;
}

.el-size-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 27px;
  border-radius: var(--el-radius);
  background: var(--el-paper);
}

.el-size-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
  font-size: 13px;
  font-weight: 700;
}

.el-size-top > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.el-size-top input {
  width: 76px;
  padding: 9px 10px;
  border: 1px solid var(--el-line);
  border-radius: 8px;
  background: #fff;
  color: var(--el-ink);
}

.el-size-control + .el-size-control {
  margin-top: 28px;
}

.image-value-input {
  width: 76px;
  padding: 8px 10px;
  border: 1px solid var(--el-line);
  border-radius: 8px;
  background: #fff;
  color: var(--el-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.image-value-input:focus {
  outline: 0;
  border-color: var(--el-accent);
  box-shadow: 0 0 0 3px rgba(168, 136, 93, 0.12);
}

.generator-shell input[type=range] {
  width: 100%;
  accent-color: var(--el-accent-dark);
}

.el-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--el-muted);
  font-size: 10px;
}

.el-size-preview {
  min-height: 440px;
  margin-top: 25px;
}

.el-preview-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  text-align: left;
}

.el-final-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 285px;
  gap: 22px;
  align-items: start;
}

.el-final-art {
  min-height: 620px;
  padding: 25px;
  display: grid;
  place-items: center;
  border-radius: var(--el-radius);
  background: #eeeae3;
}

.el-final-art svg {
  width: min(100%, 500px);
  height: auto;
}

.el-edit-card {
  padding: 20px;
  border-radius: var(--el-radius);
  background: var(--el-paper);
}

.el-edit-row {
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--el-line);
  background: transparent;
  color: var(--el-muted);
  text-align: left;
  font-size: 11px;
}

.el-edit-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--el-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-edit-row i {
  font-size: 19px;
  font-style: normal;
}

.el-download-card,
.el-custom-cta {
  width: min(1080px, 100%);
  margin: 18px auto 0;
  padding: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
}

.el-download-card p,
.el-custom-cta p {
  margin: 0;
  color: var(--el-muted);
  font-size: 12px;
  line-height: 1.55;
}

.el-download-buttons {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.el-primary,
.el-secondary,
.el-ghost-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 17px;
  border-radius: 8px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.el-primary {
  color: #fff;
  background: var(--el-accent-dark);
}

.el-secondary {
  color: var(--el-ink);
  background: #e9e5dd;
}

.el-ghost-button {
  padding: 4px 0;
  color: var(--el-muted);
  background: transparent;
  text-decoration: underline;
}

.el-primary:hover,
.el-secondary:hover {
  transform: translateY(-1px);
}

.el-custom-cta {
  border: 0;
  color: #fff;
  background: var(--el-ink);
}

.el-custom-cta h3 {
  color: #fff;
}

.el-custom-cta .el-eyebrow {
  color: #d1b985;
}

.el-custom-cta p {
  max-width: 700px;
  color: #c6cdd1;
}

.el-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  margin: 0;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 15rem;
  background: rgba(255, 253, 249, 0.94);
  border-top: 1px solid var(--el-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.el-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: 0 -8px 30px rgba(23, 37, 46, 0.08);
}

.el-main {
  padding-bottom: 100px;
}

.el-controls button {
  pointer-events: auto;
}

.el-controls #backButton {
  justify-self: start;
}

.el-controls #nextButton {
  justify-self: end;
}

.el-controls.preview-mode {
  display: none;
}

@media (max-width: 1000px) {
  .el-workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .el-steps {
    display: none;
  }
  .el-main {
    width: min(960px, 100%);
    margin: 0 auto;
  }
}
@media (max-width: 760px) {
  .el-header {
    height: 64px;
  }
  .el-progress-labels {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  .el-workspace {
    padding-top: 24px;
  }
  .el-category-grid,
  .el-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .el-frame-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .el-font-grid,
  .el-text-layout,
  .el-final-layout {
    grid-template-columns: 1fr;
  }
  .el-card-art,
  .el-frame-option .el-card-art {
    min-height: 0;
  }
  .el-category-grid .el-card-art,
  .el-design-grid .el-card-art {
    aspect-ratio: 1/1;
  }
  .el-category-grid,
  .el-design-grid,
  .el-frame-grid {
    gap: 10px;
  }
  .el-category-grid .el-option,
  .el-design-grid .el-option,
  .el-frame-grid .el-option {
    padding: 6px;
  }
  .el-category-grid .el-option.selected::after,
  .el-design-grid .el-option.selected::after,
  .el-frame-grid .el-option.selected::after {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .el-live-preview {
    min-height: 430px;
  }
  .el-final-art {
    min-height: auto;
  }
  .el-download-card,
  .el-custom-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .el-download-buttons {
    width: 100%;
  }
  .el-download-buttons button {
    flex: 1;
  }
  .el-intro {
    padding-inline: 72px;
  }
  .el-controls {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }
  .el-controls button {
    flex: 1;
    min-width: 0;
  }
  .el-controls .el-primary,
  .el-controls .el-secondary {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .generator-shell select#fontSelect {
    min-height: 46px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .el-progress {
    padding-inline: 14px;
  }
  .el-workspace {
    padding-inline: 14px;
  }
  .el-controls {
    padding-inline: 14px;
  }
  .el-progress-labels {
    font-size: 7px;
  }
  .el-form-card,
  .el-size-card {
    padding: 20px;
  }
  .el-final-art {
    padding: 12px;
  }
}

/*# sourceMappingURL=ex-libris-generator.css.map */
