@font-face {
  font-family: "Newsreader";
  src: url("newsreader.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken";
  src: url("hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #181818;
  --muted: #686868;
  --line: #e5e5e5;
  --soft: #f7f7f5;
  --accent: #5b45f6;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 17px/1.72 "Hanken", Arial, sans-serif;
}

::selection {
  color: var(--white);
  background: var(--accent);
}

main {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 56px 24px;
}

.message-card {
  width: min(100%, 780px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(24, 24, 24, 0.09);
}

.intro,
.commitment {
  padding: clamp(34px, 7vw, 64px);
}

.intro::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 29px;
  background: var(--accent);
  border-radius: 999px;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 450;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(44px, 8vw, 66px);
  line-height: 1.02;
}

h2 {
  margin: 0 0 25px;
  font-size: clamp(34px, 5.5vw, 46px);
  line-height: 1.08;
}

p {
  margin: 0 0 22px;
}

p:last-child {
  margin-bottom: 0;
}

.announcement {
  margin-block: 28px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--soft);
  border-left: 4px solid var(--accent);
}

.announcement strong,
.promise {
  font-weight: 650;
}

.commitment {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.label {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.promise {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #dcdcd8;
}

@media (max-width: 560px) {
  main {
    place-items: start center;
    padding: 24px 14px;
  }

  .message-card {
    border-radius: 16px;
  }

  .intro,
  .commitment {
    padding: 32px 26px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 36px;
  }
}
