/* ============================================================
   Certificate of Authenticity — the registry desk
   ============================================================ */
.cert {
  padding: clamp(6rem, 11vh, 8.5rem) clamp(1.1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  max-width: 1040px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}

.cert-head { text-align: center; max-width: 40rem; margin-bottom: clamp(1.8rem, 3.4vw, 2.6rem) }
.cert-title {
  font-family: var(--display); font-weight: 300; letter-spacing: .01em;
  font-size: clamp(2.4rem, 7.5vw, 4.2rem); line-height: 1.02; margin: .4rem 0 1.1rem;
}
.cert-title em { font-style: italic; color: var(--accent-soft) }
.cert-lede {
  color: var(--ink); opacity: .8; line-height: 1.72;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

/* ---------- the desk ---------- */
.cert-form {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  gap: .7rem; width: 100%; max-width: 38rem;
}
.cert-label {
  flex: 0 0 100%; text-align: center;
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--dimmer); margin-bottom: .2rem;
}
.cert-input {
  flex: 1 1 17rem; min-width: 0;
  font-family: var(--display); font-size: 1.5rem; font-weight: 300;
  text-align: center; color: var(--ink);
  background: rgba(236, 230, 218, .04);
  border: 1px solid var(--line); border-radius: 2px;
  padding: .72rem 1rem;
  transition: border-color .35s ease, background .35s ease;
}
.cert-input::placeholder { color: var(--dimmer); font-style: italic }
.cert-input:focus {
  outline: none; border-color: var(--accent); background: rgba(184, 152, 92, .08);
}
.cert-dl {
  flex: 0 0 auto; cursor: pointer; font-family: var(--serif);
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: #140f07; background: var(--ink); border: 1px solid var(--ink);
  padding: .95rem 1.6rem; border-radius: 2px;
  transition: background .4s var(--ease), color .4s, transform .3s var(--ease);
}
.cert-dl:hover { background: transparent; color: var(--ink); transform: translateY(-2px) }

.cert-issue {
  margin-top: 1rem; font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--dimmer); text-align: center;
}
.cert-issue span { color: var(--accent) }

/* ---------- the sheet ---------- */
.cert-stage {
  margin-top: clamp(2rem, 4vw, 3.2rem); width: 100%;
  display: grid; place-items: center;
}
.cert-stage canvas {
  width: 100%; height: auto; max-width: 900px; display: block;
  border: 1px solid var(--line);
  box-shadow: 0 46px 90px -36px rgba(0, 0, 0, .95), 0 0 0 1px rgba(184, 152, 92, .12);
}

@media (max-width: 560px) {
  .cert-form { gap: .6rem }
  .cert-input { flex: 1 1 100%; font-size: 1.3rem }
  .cert-dl { flex: 1 1 100%; text-align: center }
}
