@font-face { font-family: BodoniModa; src: url('../assets/BodoniModa.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: PirataOne; src: url('../assets/PirataOne-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: UncialAntiqua; src: url('../assets/UncialAntiqua-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: PoiretOne; src: url('../assets/PoiretOne-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: PoiretOne; src: url('../assets/PoiretOne-Regular-latin.woff2') format('woff2'); font-display: swap;unicode-range:U+0-24F,U+300-36F,U+1E00-1EFF,U+2000-206F,U+20AC-20AC}
#ring-engraving {
  --cut-line: #d9d5cc;
  --cut-ink: #332f28;
  --cut-paper: #faf8f3;
  color: var(--cut-ink);
}
#ring-engraving .cut-field {
  padding: 0;
  min-width: 0;
  margin: 0 0 20px;
}
.cut-field legend, #cut-upload-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.cut-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.cut-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 59px;
  padding: 5px 3px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--cut-line);
  background: #fff;
  color: var(--cut-ink);
  text-align: center;
  line-height: 1.15;
}
.cut-card:hover { border-color: #938876; }
.cut-card:has(input:checked) {
  border-color: #625540;
  box-shadow: inset 0 0 0 1px #625540;
  background: var(--cut-paper);
}
.cut-card:has(input:checked)::after {
  content: '✓';
  position: absolute;
  top: 3px;
  right: 4px;
  font: 600 10px/1 Arial, sans-serif;
  color: #51432d;
}
.cut-card:has(input:focus-visible) { outline: 2px solid #554935; outline-offset: 2px; }
#ring-engraving .cut-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.cut-caption { font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }
.cut-note {
  color: #625d53;
  font-size: 12px;
  line-height: 1.45;
  margin: 7px 0 0;
}
.cut-source { text-decoration: underline; text-underline-offset: 2px; }
.cut-sizes { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cut-sizes .cut-card { padding:4px; gap:3px; }
.cut-face {
  display:grid;
  place-items:center;
  width:58px;
  height:34px;
  border-radius:49%;
  border:1px solid #bcab88;
  background:linear-gradient(135deg,#f7f1e2,#e7d6af 65%,#f5ebd4);
}
.cut-face .cut-art { width:100%; height:100%; }
#cut-saved-note { margin:0 0 12px; }
.cut-subject {
  display: grid;
  place-items: center;
  width: 58px;
  height: 30px;
}
.cut-subject .cut-art { width: 52px; height: 30px; }
.cut-subject-photo { width: 100%; height: 30px; object-fit: cover; display: block; }
.cut-initials { font: 22px/1 Roman, Georgia, serif; }
.cut-upload { font: 23px/1 Arial, sans-serif; color: #746958; }
.cut-upload::before {
  content: '';
  position: absolute;
  width: 25px; height: 24px;
  border: 1px dashed #a89c87;
  border-radius: 3px;
}
.cut-samples .cut-card { background: var(--cut-paper); }
#cut-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
#cut-grid .cut-card { justify-content:flex-start; padding:5px 3px; gap:5px; }
.cut-template {
  display:grid; place-items:center;
  width:61px; aspect-ratio:1;
  border-radius:22%; overflow:hidden;
  background:linear-gradient(135deg,#e7bd73,#f5e1b8 45%,#d7b06d);
  box-shadow:inset 0 0 0 1px #c2a269;
}
.cut-template-photo, #cut-grid .cut-template .cut-art {
  width:100%; height:100%; object-fit:cover; display:block;
}
#cut-grid .cut-template [hidden] { display:none; }
.cut-glyph {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  font-size: 26px;
  line-height: 32px;
  height: 32px;
}
.cut-glyph[data-variant="italic"] { font-style: italic; }
.cut-glyph[data-variant="outline"] {
  color: transparent;
  -webkit-text-stroke: .65px #473d31;
}
.cut-art { width: 66px; max-width: 100%; height: 33px; object-fit: contain; }
.cut-expand {
  display: block;
  margin-top: 4px;
  min-height: 34px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  font-weight: 600;
}
.cut-motifs { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cut-motifs .cut-card { justify-content: flex-start; padding: 2px 2px 6px; }
.cut-motifs .cut-caption { margin: auto 3px; }
.cut-motifs .cut-thumbnail, .cut-motifs .cut-art {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  background: var(--cut-paper);
}
#cut-file { font-size: 13px; }
#cut-file-name { font-size: 12px; overflow-wrap: anywhere; }
#wax-proof {
  width: 100%;
  margin: 14px 0;
  overflow: hidden;
  background: #f7f5f0;
  border: 1px solid #e5e0d9;
}
#wax-proof img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 18/11;
}
#wax-proof figcaption {
  padding: 8px 12px 10px;
  color: #4f413c;
  font-size: 13px;
  text-align: left;
}
@media(max-width: 800px) {
  #ring-engraving .cut-field { margin-bottom: 16px; }
  .cut-field legend, #cut-upload-field > label { margin-bottom: 6px; }
  .cut-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cut-subjects .cut-card { min-height: 44px; flex-direction: row; justify-content: flex-start; padding: 4px 8px; gap: 8px; }
  .cut-subject { width: 37px; }
  .cut-subject .cut-art { width: 37px; height: 26px; }
  .cut-subjects .cut-caption { text-align: left; }
  .cut-expand { min-height: 40px; }
  .cut-motifs .cut-thumbnail, .cut-motifs .cut-art { height: 53px; }
}
@media(max-width: 360px) {
  .cut-options { gap: 4px; }
  .cut-caption { font-size: 11.5px; }
  .cut-subjects .cut-card { gap: 4px; }

}

#cut-motif-field .cut-expand { min-height: 44px; }

/* Fit actual ink bounds, including calligraphic overhangs. */
.cut-glyph-preview { width:100%; max-width:100%; height:42px; object-fit:contain; }
#cut-monogram-note { margin:4px 0 12px; line-height:1.55; }
