@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #0f172a;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.5;
}

.example-banner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 18px 20px;
  border-bottom: 4px solid #fecaca;
  background: #991b1b;
  color: #ffffff;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-transform: uppercase;
}

.certificate-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.certificate-card {
  position: relative;
  width: 100%;
  max-width: 1024px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  padding: 32px;
  box-shadow:
    0 0 0 1px #e2e8f0,
    0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

.certificate-content {
  position: relative;
  z-index: 1;
}

.certificate-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 130%;
  transform: translate(-50%, -50%) rotate(-18deg);
  color: #991b1b;
  font-size: clamp(48px, 8vw, 106px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.065;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.wordmark-wrap,
.seal-wrap {
  display: flex;
  justify-content: center;
}

.wordmark {
  display: block;
  width: 340px;
  max-width: 100%;
  height: 180px;
  object-fit: contain;
}

h1 {
  margin: 24px 0 0;
  color: #0369a1;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
}

.certificate-copy,
.certificate-status {
  margin: 24px 0 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.625;
}

.certificate-status p {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #d1fae5;
  padding: 4px 12px;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: middle;
}

.seal-wrap {
  margin-top: 24px;
}

.seal {
  display: block;
  width: 136px;
  height: 85px;
}

.example-footnote {
  margin: 20px 0 0;
  color: #991b1b;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

footer {
  margin-top: 40px;
  color: #64748b;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

footer p {
  margin: 0;
}

footer .copyright {
  margin-bottom: 4px;
}

footer a {
  color: #0369a1;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: #075985;
  text-decoration: underline;
}

.footer-dot {
  margin: 0 7px;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .example-banner {
    padding: 14px 16px;
    font-size: 19px;
  }

  .certificate-main {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .certificate-card {
    border-radius: 20px;
    padding: 24px;
  }

  .wordmark {
    height: auto;
    aspect-ratio: 340 / 180;
  }

  h1 {
    font-size: 27px;
    line-height: 33px;
  }

  .certificate-copy,
  .certificate-status {
    font-size: 17px;
    line-height: 1.6;
  }

  .certificate-watermark {
    font-size: 52px;
  }
}

@media print {
  .example-banner {
    background: #ffffff;
    color: #991b1b;
    border: 4px solid #991b1b;
  }

  .certificate-card {
    box-shadow: 0 0 0 1px #cbd5e1;
  }

  .certificate-watermark {
    opacity: 0.13;
  }
}
