:root {
  --oyp-ink: #17243a;
  --oyp-blue: #295d9d;
  --oyp-sky: #dcecf7;
  --oyp-cream: #fffdf8;
  --oyp-coral: #f07f63;
}

@font-face {
  font-family: "OYP Text Regular";
  src: url("../fonts/Vera.ttf") format("truetype");
}

@font-face {
  font-family: "OYP Text Bold";
  src: url("../fonts/VeraBd.ttf") format("truetype");
}

@font-face {
  font-family: "OYP Text Italic";
  src: url("../fonts/VeraIt.ttf") format("truetype");
}

body {
  background: var(--oyp-cream);
  color: var(--oyp-ink);
}

.navbar-brand,
h1,
.h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero {
  background: linear-gradient(
    155deg,
    var(--oyp-sky) 0 55%,
    var(--oyp-cream) 55%
  );
}

.py-lg-7 {
  padding-bottom: 7rem;
  padding-top: 7rem;
}

.eyebrow {
  color: var(--oyp-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.display-2 {
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.coming-soon-card {
  background: var(--oyp-cream);
  border: 1px solid rgb(23 36 58 / 14%);
  border-radius: 1.25rem;
  box-shadow: 8px 9px 0 var(--oyp-coral);
}

.btn-primary {
  --bs-btn-bg: var(--oyp-blue);
  --bs-btn-border-color: var(--oyp-blue);
  --bs-btn-hover-bg: #1f4b80;
  --bs-btn-hover-border-color: #1f4b80;
}

.upload-card,
.preview-stage,
.order-card,
.order-proof,
.project-card,
.empty-projects,
.account-card {
  background: #fff;
  border: 1px solid rgb(23 36 58 / 14%);
  border-radius: 1.25rem;
  box-shadow: 8px 9px 0 var(--oyp-coral);
}

.account-card {
  max-width: 36rem;
}

.account-card ul {
  padding-left: 1.25rem;
}

.account-card input[type="email"],
.account-card input[type="password"],
.account-card input[type="text"] {
  display: block;
  width: 100%;
}

.project-thumbnail {
  align-items: center;
  background: var(--oyp-sky);
  display: flex;
  height: 14rem;
  justify-content: center;
  overflow: hidden;
}

.project-thumbnail img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.order-proof img {
  display: block;
  margin-inline: auto;
}

.confirmation-card {
  max-width: 46rem;
}

.order-reference {
  overflow-wrap: anywhere;
}

.calibration-note {
  background: var(--oyp-sky);
  border-left: 4px solid var(--oyp-blue);
  border-radius: 0.4rem;
}

.preview-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 22rem;
}

.preview-image {
  max-height: 65vh;
  object-fit: contain;
}

.layout-choice {
  border: 1px solid rgb(23 36 58 / 18%);
  border-radius: 0.6rem;
}

.side-editor {
  background: #fff;
  border: 1px solid rgb(23 36 58 / 14%);
  border-radius: 1rem;
}

.side-editor .badge {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-preview-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(10rem, 0.8fr);
}

.editor-frame {
  aspect-ratio: var(--editor-aspect);
  background: #fff;
  border: 2px solid var(--oyp-ink);
  cursor: grab;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.editor-frame.is-dragging {
  cursor: grabbing;
}

.artwork-layer {
  clip-path: inset(
    0 var(--print-clip-right) 0 var(--print-clip-left)
  );
  inset: 0;
  position: absolute;
}

.editor-frame::before,
.editor-frame::after {
  background: repeating-linear-gradient(
    135deg,
    rgb(23 36 58 / 10%) 0 5px,
    rgb(255 255 255 / 72%) 5px 10px
  );
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 2;
}

.editor-frame::before {
  left: 0;
  width: var(--print-clip-left);
}

.editor-frame::after {
  right: 0;
  width: var(--print-clip-right);
}

.print-boundary {
  border: 2px dashed var(--oyp-blue);
  bottom: 0;
  left: var(--print-clip-left);
  pointer-events: none;
  position: absolute;
  right: var(--print-clip-right);
  top: 0;
  z-index: 3;
}

.editor-frame img {
  left: 50%;
  max-width: none;
  pointer-events: none;
  position: absolute;
  top: 50%;
}

.artwork-text {
  left: 50%;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.scale-entry {
  width: 6.25rem;
}

.size-input {
  text-align: right;
}

.move-photo {
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.scale-up,
.scale-down,
.fill-side {
  min-height: 2.5rem;
}

.quality-good {
  color: #16713d;
}

.quality-warning {
  color: #a53b22;
}

.mug-preview-stage {
  background: #f7f8f8;
  border-radius: 1rem;
  overflow: hidden;
  padding: 0.5rem;
}

.mug-preview-shell {
  aspect-ratio: 1;
  margin-inline: auto;
  position: relative;
  width: min(100%, 13rem);
}

.mug-preview-label {
  color: var(--oyp-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mug-canvas {
  display: block;
  height: 100%;
  width: 100%;
}

@media (max-width: 991.98px) {
  .py-lg-7 {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }
}

@media (max-width: 575.98px) {
  .side-preview-grid {
    grid-template-columns: 1fr;
  }

  .mug-preview-group {
    margin-inline: auto;
    max-width: 15rem;
    width: 72%;
  }

  .mug-preview-note {
    line-height: 1.25;
  }
}
