
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #f4f1ea;
  color: #181818;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.4;
}

a {
  color: #174f74;
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 24px 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0;
}

.panel {
  background: #fffdfa;
  border: 1px solid #cfc6b6;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span,
.label {
  display: block;
  margin-bottom: 6px;
  color: #545047;
  font-size: 15px;
}

input[type="text"],
input[type="url"],
input[type="file"],
.keyInput {
  width: 100%;
  border: 1px solid #aaa292;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  padding: 12px;
}

.keyInput {
  max-width: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 34px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
}

button,
.primary,
.secondary,
.navlink,
.downloadLink {
  appearance: none;
  border: 1px solid #1d5e75;
  border-radius: 6px;
  background: #1d5e75;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  min-height: 44px;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
}

.secondary,
.navlink {
  background: #ffffff;
  color: #1d5e75;
}

button:focus,
a:focus,
input:focus {
  outline: 3px solid #d08b25;
  outline-offset: 2px;
}

.primary {
  width: 100%;
  font-size: 18px;
}

.meta {
  color: #5e5a50;
  min-height: 24px;
  margin-top: 12px;
}

.status {
  min-height: 24px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  display: none;
}

.status.pending,
.status.success,
.status.error {
  display: block;
}

.status.pending {
  background: #eef3f5;
  border: 1px solid #b6ccd6;
}

.status.success {
  background: #edf6ec;
  border: 1px solid #9fc99a;
}

.status.error {
  background: #fbefec;
  border: 1px solid #d49b90;
}

.reader .shell {
  max-width: 620px;
}

.readerPanel {
  text-align: center;
}

.keyOutput {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(54px, 16vw, 96px);
  line-height: 1;
  margin: 12px 0 8px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.downloads {
  margin-top: 14px;
}

.downloadLink {
  width: 100%;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.foot {
  margin-top: 18px;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .shell {
    padding: 16px 12px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .navlink,
  .secondary {
    width: 100%;
  }
}
