:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #eef3ef;
  color: #14201d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #071714 0, #0c2a24 315px, transparent 315px),
    linear-gradient(rgba(52, 130, 121, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 130, 121, 0.08) 1px, transparent 1px),
    #eef3ef;
  background-size: auto, 72px 72px, 72px 72px, auto;
}

main {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #f5fbf8;
}

header img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.05;
}

h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  color: #14201d;
}

p,
li {
  color: #45534f;
  line-height: 1.65;
}

a {
  color: #0c766f;
  font-weight: 800;
  text-decoration-color: rgba(12, 118, 111, 0.28);
  text-underline-offset: 4px;
}

a:hover {
  color: #075b55;
}

.document,
.panel {
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px rgba(7, 23, 20, 0.16);
}

.document > :first-child,
.panel > :first-child {
  margin-top: 0;
}

.updated {
  margin-top: 0;
  color: #6d7d78;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 24px 0 4px;
}

.link-card {
  display: block;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #f7faf8;
  color: #14201d;
  text-decoration: none;
}

.link-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.link-card span {
  color: #5f706b;
  font-weight: 600;
  line-height: 1.45;
}

.credit-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 2px;
}

.credit-group {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.credit-group h3 {
  margin: 0;
  color: #21312d;
  font-size: 17px;
}

.credit-entry {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #f7faf8;
}

.credit-entry strong {
  color: #14201d;
  font-size: 17px;
}

.credit-entry span {
  color: #5f706b;
  font-weight: 600;
  line-height: 1.5;
}

.credit-entry a {
  justify-self: start;
}

label {
  display: block;
  margin: 18px 0 7px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #b9c8c3;
  border-radius: 8px;
  background: #f9fbfa;
  color: #14201d;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(20, 158, 148, 0.2);
  border-color: #149e94;
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: #d95748;
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.status {
  min-height: 24px;
  margin-top: 16px;
  font-weight: 800;
}

.danger {
  color: #b13227;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 820px);
    padding-top: 26px;
  }

  header {
    gap: 12px;
    margin-bottom: 20px;
  }

  header img {
    width: 52px;
    height: 52px;
  }

  .document,
  .panel {
    padding: 22px;
  }
}
