@font-face {
  font-family: "Tilda Sans";
  src: url("/assets/TildaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tilda Sans";
  src: url("/assets/TildaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --background: #020817;
  --surface: #0b1220;
  --border: #232c3e;
  --text: #fff;
  --link: #91a9f9;
  --focus: #bdcdfe;
  --primary: linear-gradient(84deg, #2c55de, #5243ad);
  --primary-hover: linear-gradient(84deg, #2c55de, #7072f6);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--text);
  background: radial-gradient(85% 70% at 0% 0%, #142751, transparent 68%),
    radial-gradient(65% 60% at 100% 100%, #0d1532, transparent 70%), var(--background);
  font: 400 16px/1.5 "Tilda Sans", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(to right, #94a8e00f 1px, transparent 1px),
    linear-gradient(to bottom, #94a8e00f 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(75% 65% at 10% 5%, #000, transparent);
}

.site-header, .account {
  position: relative;
  width: min(100% - 2 * clamp(24px, 6vw, 80px), 1080px);
  margin-inline: auto;
}

.site-header {
  padding-block: clamp(28px, 5vw, 56px);
}

.site-header img {
  display: block;
  width: auto;
  height: clamp(34px, 4vw, 43px);
}

main {
  display: grid;
  align-items: center;
  padding-block: 36px clamp(60px, 13vh, 136px);
}

.account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: clamp(40px, 8vw, 104px);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5.8vw, 78px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.actions {
  display: grid;
  justify-items: stretch;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 70px -30px #000a, 0 2px 10px #0006;
}

button {
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: var(--primary);
  box-shadow: 0 8px 22px -10px #2c55decc;
  font: 500 16px/1.4 "Tilda Sans", system-ui, sans-serif;
  cursor: pointer;
}

button:hover {
  background: var(--primary-hover);
}

a {
  justify-self: center;
  color: var(--link);
  text-underline-offset: 3px;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.notice.changed {
  background: #1dc37d19;
  border-color: #1dc37d61;
  color: #9bf0cc;
}

.error {
  background: #c539241a;
  border-color: #c5392461;
  color: #ff9481;
}

@media (max-width: 760px) {
  main {
    align-items: start;
    padding-top: clamp(32px, 12vh, 100px);
  }

  .account {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
}
