:root {
  --navy: #101d2e;
  --navy-deep: #09131f;
  --gold: #b89255;
  --paper: #f4f0e8;
  --ink: #17202b;
  --muted: #6c7480;
  --serif: "Noto Serif KR", Georgia, serif;
  --sans: "Pretendard", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

.certificate-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  color: #fff;
  background: var(--navy-deep);
}

.certificate-page-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
}

.certificate-page-brand > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #d7bc85;
  border: 1px solid #b89255;
  font-family: Georgia, serif;
  font-size: 14px;
}

.back-link {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.certificate-page-hero {
  padding: 92px max(24px, calc((100% - 1240px) / 2)) 72px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 19, 31, 0.97), rgba(9, 19, 31, 0.72)),
    url("assets/ko-young-nam.jpg") center 40% / cover;
}

.certificate-page-hero p {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.certificate-page-hero h1 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600;
}

.certificate-page-hero > span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.certificate-documents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0;
}

.certificate-document {
  padding: 30px;
  border: 1px solid #cdbf9f;
  background: #eae4d8;
}

.document-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}

.document-heading > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.document-heading div {
  text-align: right;
}

.document-heading small {
  color: var(--muted);
  font-size: 10px;
}

.document-heading h2 {
  margin: 2px 0;
  font-family: var(--serif);
  font-size: 28px;
}

.document-heading p {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
}

.document-description {
  min-height: 66px;
  margin: -4px 0 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.certificate-document > a {
  display: block;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 29, 46, 0.12);
}

.certificate-document img {
  display: block;
  width: 100%;
  height: auto;
}

.certificate-page-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px max(24px, calc((100% - 1120px) / 2));
  color: rgba(255, 255, 255, 0.62);
  background: var(--navy);
  font-size: 12px;
}

.certificate-page-note a {
  color: #d7bc85;
  font-weight: 700;
}

@media (max-width: 760px) {
  .certificate-page-header {
    min-height: 68px;
  }

  .certificate-page-brand strong {
    font-size: 14px;
  }

  .certificate-page-hero {
    padding-top: 70px;
    padding-bottom: 58px;
  }

  .certificate-documents {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 32px);
    padding: 55px 0;
  }

  .certificate-document {
    padding: 18px;
  }

  .document-heading h2 {
    font-size: 24px;
  }

  .document-description {
    min-height: 0;
  }

  .certificate-page-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
