:root {
  --room: #f7f0df;
  --paper: #fffaf0;
  --paper-deep: #eee3cb;
  --ink: #3d3026;
  --ink-soft: #75685b;
  --gold: #e8ad35;
  --gold-bright: #f2c15f;
  --purple: #6f3fc2;
  --shadow: rgba(78, 57, 33, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--room);
  background-image:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.75), transparent 34%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.11'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

.welcome {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 48px 24px 38px;
  place-items: center;
}

.welcome-card {
  display: flex;
  width: min(100%, 480px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-wrap {
  position: relative;
  display: grid;
  width: clamp(158px, 22vw, 216px);
  aspect-ratio: 1;
  margin-bottom: 30px;
  place-items: center;
}

.icon-wrap::before {
  position: absolute;
  right: 10%;
  bottom: -9%;
  left: 10%;
  height: 20%;
  border-radius: 50%;
  background: rgba(67, 42, 19, 0.22);
  content: "";
  filter: blur(18px);
  transform: scaleX(0.92);
}

.app-icon {
  position: relative;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 27%;
  box-shadow:
    0 26px 48px var(--shadow),
    0 7px 0 rgba(92, 55, 23, 0.13),
    inset 0 0 0 1px rgba(65, 37, 18, 0.08);
  object-fit: cover;
}

.wordmark h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 7vw, 62px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

.wordmark p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.45;
}

.account-actions {
  display: grid;
  width: min(100%, 360px);
  margin-top: 36px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.button-primary {
  border-color: #c58c22;
  color: #3b270d;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow:
    0 6px 0 #a66f18,
    0 12px 24px rgba(119, 76, 18, 0.16);
}

.button-secondary {
  border-color: rgba(61, 48, 38, 0.16);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent),
    var(--paper);
  box-shadow:
    0 6px 0 #d9ccb4,
    0 12px 24px rgba(78, 57, 33, 0.1);
}

.button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }

  .button-primary:hover {
    background: linear-gradient(180deg, #f7ca6d, #ecb442);
    box-shadow:
      0 8px 0 #a66f18,
      0 15px 28px rgba(119, 76, 18, 0.18);
  }

  .button-secondary:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), transparent),
      #fffaf0;
    box-shadow:
      0 8px 0 #d9ccb4,
      0 15px 28px rgba(78, 57, 33, 0.12);
  }

}

@media (max-width: 460px) {
  .welcome {
    padding: 34px 20px 52px;
  }

  .icon-wrap {
    width: min(48vw, 180px);
    margin-bottom: 26px;
  }

  .wordmark p {
    font-size: 16px;
  }

  .account-actions {
    margin-top: 31px;
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
