* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #36271c;
  background: #f4eee5;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}

.doc-page {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

.doc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(63, 48, 36, .18);
}

.doc-brand {
  margin: 0;
  color: #7a1625;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.doc-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #f6f0e7;
  background: #2b1d14;
  border: 1px solid rgba(63, 48, 36, .2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.doc-button.secondary {
  color: #36271c;
  background: transparent;
}

.doc-card {
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 252, 247, .78);
  border: 1px solid rgba(63, 48, 36, .12);
  box-shadow: 0 24px 70px rgba(63, 48, 36, .1);
}

h1 {
  margin: 0 0 26px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 500;
  line-height: .95;
}

h2 {
  margin: 30px 0 12px;
  color: #7a1625;
  font-size: 18px;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

.doc-line {
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .doc-page {
    width: min(100% - 24px, 920px);
    padding: 28px 0 44px;
  }

  .doc-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .doc-button {
    width: 100%;
  }
}
