@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}

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

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

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

:root {
  --paper: #efe6d2;
  --card: #f8f3e7;
  --ivy: #1f3b2c;
  --oxblood: #7a1f2b;
  --brass: #b08d57;
  --sepia: #3b3127;
  --typed: "IBM Plex Mono", "Courier New", monospace;
  --book: "Spectral", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--sepia);
  font-family: var(--book);
  font-size: 18px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--ivy);
  font-family: var(--book);
  line-height: 1.2;
  margin: 0 0 0.55em;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1.1em;
}

p,
li,
dd {
  max-width: 46em;
}

a {
  color: var(--ivy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--oxblood);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--oxblood);
  outline-offset: 3px;
}

.side :focus-visible,
.foot :focus-visible {
  outline-color: var(--brass);
}

hr {
  border: 0;
  border-top: 1px solid var(--oxblood);
  border-bottom: 1px solid var(--oxblood);
  height: 5px;
  margin: 44px 0;
}

button,
.btn {
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ivy);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  font-family: var(--typed);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
}

button:hover,
.btn:hover {
  background: var(--oxblood);
  color: var(--paper);
}

.side {
  background: var(--ivy);
  color: var(--paper);
  padding: 16px 16px 14px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}

.mark:hover {
  color: var(--paper);
}

.mark img {
  width: 40px;
}

.tagline {
  margin: 4px 0 12px;
  color: #e6dcc4;
  font-family: var(--typed);
  font-size: 16px;
  line-height: 1.4;
}

.side ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: var(--paper);
  text-decoration: none;
}

.side nav a:hover,
.side nav a[aria-current="page"] {
  border-color: var(--brass);
  color: var(--paper);
}

.keyhole {
  display: block;
  width: 26px;
  margin: 12px 0 0 10px;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

@media (min-width: 700px) {
  main {
    padding: 36px 32px 72px;
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 960px) {
  .side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 240px;
    overflow-y: auto;
    padding: 32px 22px;
  }

  .side ul {
    flex-direction: column;
  }

  .keyhole {
    width: 34px;
    margin-top: 26px;
  }

  .page {
    margin-left: 240px;
  }
}

.gate {
  margin-bottom: 28px;
  padding: 18px 18px 8px;
  background: var(--card);
  border: 4px double var(--oxblood);
}

.gate h2 {
  font-size: 1.3rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 12px;
}

.under {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--typed);
  font-size: 16px;
}

.passed:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: none;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--oxblood);
  font-family: var(--typed);
  font-size: 16px;
}

.drawers {
  display: grid;
  gap: 26px;
  margin-bottom: 1.1em;
}

@media (min-width: 760px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.drawer {
  position: relative;
  padding: 34px 20px 22px;
  background: var(--card);
  border: 10px solid var(--ivy);
  transition: transform 0.2s ease;
}

.drawer::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 66px;
  height: 10px;
  margin-left: -33px;
  background: var(--brass);
  border: 1px solid #8a6c3f;
  border-radius: 6px;
}

.drawer:hover {
  transform: translateX(4px);
}

.tag {
  margin-bottom: 10px;
  color: var(--oxblood);
  font-family: var(--typed);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.head img {
  flex: none;
  width: 84px;
  background: var(--paper);
  border: 1px solid var(--brass);
}

.head h2,
.head h3 {
  margin: 0;
}

.by {
  margin: 0;
  font-family: var(--typed);
  font-size: 16px;
}

h1 + .by {
  margin-bottom: 14px;
}

.label {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--brass);
  font-family: var(--typed);
  font-size: 16px;
  line-height: 1.5;
  list-style: none;
}

.label li + li {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dotted var(--brass);
}

.specimen {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--brass);
  font-family: var(--typed);
  font-size: 16px;
  line-height: 1.45;
}

.specimen th,
.specimen td {
  padding: 8px 10px;
  border-bottom: 1px dotted var(--brass);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.specimen th {
  width: 38%;
  color: var(--oxblood);
  font-weight: 500;
}

.rules {
  padding: 0;
  border-bottom: 1px solid var(--brass);
  counter-reset: rule;
  list-style: none;
}

.rules li {
  position: relative;
  padding: 12px 0 12px 64px;
  border-top: 1px solid var(--brass);
  counter-increment: rule;
}

.rules li::before {
  content: "No." counter(rule);
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--oxblood);
  font-family: var(--typed);
  font-size: 16px;
}

.qa dt {
  margin-top: 20px;
  color: var(--ivy);
  font-weight: 700;
}

.qa dd {
  margin: 4px 0 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--typed);
  font-size: 16px;
  list-style: none;
}

.crumbs li {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.crumbs li + li::before {
  content: "›";
  padding: 0 10px;
  color: var(--oxblood);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.frame {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: var(--ivy);
  border: 10px solid var(--ivy);
  box-shadow: 0 0 0 1px var(--brass);
}

.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ivy);
}

.veil:not([hidden]) {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--card);
  font-family: var(--typed);
  font-size: 16px;
  text-align: center;
}

.veil p {
  margin: 0 0 12px;
  max-width: 34em;
}

@media (max-width: 699px) {
  .frame {
    aspect-ratio: 3 / 4;
    min-height: 480px;
  }
}

.note {
  max-width: 1000px;
  margin: 12px 0;
  font-family: var(--typed);
  font-size: 16px;
}

.others {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.others a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--brass);
  text-decoration: none;
}

.reminder {
  margin-top: 36px;
  padding: 14px 18px;
  background: var(--card);
  border-left: 4px solid var(--oxblood);
}

.reminder p {
  margin: 0;
}

code {
  font-family: var(--typed);
  font-size: 16px;
}

.updated {
  color: var(--oxblood);
  font-family: var(--typed);
  font-size: 16px;
}

form {
  max-width: 620px;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-family: var(--typed);
  font-size: 16px;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--sepia);
  border-radius: 0;
  color: var(--sepia);
  font: inherit;
}

form button {
  margin-top: 20px;
}

.notice:not([hidden]) {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 10;
  width: 320px;
  max-width: calc(100% - 24px);
  padding: 16px 18px 14px 46px;
  background: var(--card);
  border: 1px solid var(--brass);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  font-family: var(--typed);
  font-size: 16px;
  line-height: 1.45;
}

.notice::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--paper);
  border: 2px solid var(--brass);
  border-radius: 50%;
}

.notice p {
  margin: 0 0 10px;
}

.foot {
  padding: 40px 16px 28px;
  background: var(--ivy);
  color: var(--paper);
}

.cols {
  display: grid;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .cols {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.foot a {
  color: var(--paper);
}

.foot a:hover {
  color: var(--paper);
  text-decoration-thickness: 2px;
}

.certs {
  padding-left: 1.2em;
}

.certs li + li {
  margin-top: 8px;
}

.links ul {
  padding: 0;
  list-style: none;
}

.links li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.seal {
  display: block;
  width: 72px;
  margin-bottom: 12px;
}

.foot .reset {
  background: var(--paper);
  color: var(--ivy);
}

.foot .reset:hover {
  background: var(--card);
  color: var(--oxblood);
}

.copy {
  margin: 18px 0 0;
  font-family: var(--typed);
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .drawer {
    transition: none;
  }

  .drawer:hover {
    transform: none;
  }
}
