:root {
  --cream: #fff6dc;
  --paper: #fffdf4;
  --sunny: #ffd84d;
  --coral: #ff6b5b;
  --pink: #ff7eb6;
  --ink: #4a2118;
  --line: 3px solid var(--ink);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
.brand,
.button,
.sticker,
.code {
  font-family: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 400;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.card {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 26px 22px;
  margin-bottom: 26px;
}

.hero {
  text-align: center;
  background: var(--sunny);
}

.hero .chick {
  width: 190px;
  height: 190px;
  margin: -6px auto 2px;
  display: block;
}

.invite .chick {
  width: 170px;
  height: 170px;
  margin: 6px auto 4px;
  display: block;
}

h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 8px 0 10px;
}

h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 6px;
}

p {
  margin: 0 0 12px;
}

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

.lead {
  font-size: 18px;
}

.center {
  text-align: center;
}

.sticker {
  display: inline-block;
  background: var(--pink);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  padding: 2px 16px;
  font-size: 16px;
  transform: rotate(-3deg);
}

.sticker.sunny {
  background: var(--sunny);
}

.sticker.coral {
  background: var(--coral);
  color: #fff;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 20px 22px 22px;
  margin-bottom: 22px;
}

.steps .sticker {
  margin-bottom: 10px;
}

.button {
  display: block;
  width: 100%;
  background: var(--coral);
  color: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  padding: 14px 20px;
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.note {
  background: var(--cream);
  border: 2px dashed var(--ink);
  border-radius: 20px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 16px;
}

.alert {
  background: var(--pink);
  border: var(--line);
  border-radius: 20px;
  padding: 12px 16px;
  margin-top: 18px;
}

.code {
  display: inline-block;
  background: #fff;
  border: var(--line);
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 28px;
  letter-spacing: 0.12em;
  margin: 4px 0 14px;
}

[hidden] {
  display: none !important;
}

.foot {
  padding: 8px 4px 0;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

.foot a {
  margin: 0 6px;
  white-space: nowrap;
}

.legal h1 {
  font-size: 28px;
}

.legal h2 {
  font-size: 20px;
  margin: 26px 0 8px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal {
  font-size: 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding-top: 40px;
  }
}

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

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

.foot .foot-name {
  font-family: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  margin-bottom: 4px;
}

.foot nav {
  margin-bottom: 6px;
}
