/* Peach's page (Figma Vx0VG5MtLpWx9sKuJxKR5U, "Webpage" 80:805: frames 40, 41 and 42). */

@font-face {
  font-family: 'Fraunces';
  src: url('/peach/assets/Fraunces.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --card: #191919;
  --hairline: rgba(255, 255, 255, 0.13);
  --ink: #ececec;
  --display-ink: #e6e6e6;
  --faint: rgba(236, 236, 236, 0.11);
  --register: #82372e;
  --invite: #222;
  --download: #222928;
  --field: #2b2b2b;
  --placeholder: #595959;
  --warning: rgba(255, 60, 11, 0.22);
  --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', Inter, 'Segoe UI', system-ui, sans-serif;
  --medium: 510;
  --thin: 110;
  /* The admin's slide (Animation.akSlide). */
  --ak-slide: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Without WebGL: the design's mesh, roughly, from its four coloured points. */
  background:
    radial-gradient(42% 34% at 67% 33%, rgb(230 115 115 / 0.95), transparent 100%),
    radial-gradient(30% 26% at 33% 33%, rgb(60 53 53 / 0.9), transparent 100%),
    radial-gradient(28% 30% at 100% 67%, rgb(97 97 97 / 0.9), transparent 100%),
    radial-gradient(34% 30% at 33% 100%, rgb(38 74 6 / 0.95), transparent 100%),
    #000;
  background-attachment: fixed;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  color: var(--ink);
  font-family: var(--sf);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

p,
h1 {
  margin: 0;
  font-weight: inherit;
}

#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Frame 46: the card. */
.card {
  position: relative;
  display: grid;
  width: 453px;
  max-width: 100%;
  min-height: 535px;
  padding: 0 41px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  filter: drop-shadow(0 10px 11.65px rgba(0, 0, 0, 0.12));
  overflow: hidden;
}

/* Panes share the card's one cell, so one can slide out over the next coming in. */
.pane {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 48px 0;
  min-width: 0;
}

.pane[hidden],
.actions[hidden] {
  display: none;
}

.pane-welcome {
  gap: 26px;
}

/* Frame 41: the title. */
.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: center;
  color: var(--display-ink);
  overflow-wrap: break-word;
}

.display,
.tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 248;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  color: var(--display-ink);
  text-align: center;
  width: 100%;
}

.display {
  font-size: 48px;
  line-height: normal;
}

.tagline {
  font-size: 24px;
  line-height: 2;
}

/* (A phone: smaller, so it stays on one line rather than wrapping at its double line height.) */
@media (max-width: 420px) {
  .tagline { font-size: 20px; }
}

/* Frames 42 and 43: what's under the title. */
.group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

/* Frames 14 and 44: the buttons. */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 0.5px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  font: var(--medium) 18px/normal var(--sf);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Pressed: a little darker (PressedGround's black at 12%), its opacity driven by the spring. */
.button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: var(--press, 0);
  pointer-events: none;
}

.button:focus {
  outline: none;
}

.button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.button-register {
  height: 39px;
  background: var(--register);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.19), inset 0 4px 4px rgba(105, 105, 105, 0.25);
}

.button-invite {
  height: 32px;
  background: var(--invite);
  font-size: 13px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.19), inset 0 4px 4px rgba(105, 105, 105, 0.25);
}

.button-download {
  height: 42px;
  min-width: 229px;
  background: var(--download);
  color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.19), inset 0 4px 4px rgba(255, 255, 255, 0.25);
}

/* Frame 30: the invite code. */
.code-field {
  display: block;
  width: 125px;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: 400 12px/normal var(--sf);
  outline: none;
  caret-color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.code-field::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

/* Frame 43: today's requirements. */
.requirements {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}

.requirements-label {
  margin-bottom: -1px;
  color: var(--faint);
  font-weight: var(--medium);
}

.requirements-list {
  color: var(--ink);
  font-weight: var(--thin);
}

/* Frame 45. */
.peach {
  font-size: 14px;
  line-height: normal;
  font-weight: var(--thin);
}

/* Frame 47: pre-alpha. */
.warning {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 283px;
  max-width: 100%;
  padding: 23px 21px;
  border-radius: 11px;
  background: var(--warning);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.warning-icons {
  font-size: 32px;
  line-height: normal;
  font-weight: 900;
  white-space: nowrap;
}

.warning-line {
  max-width: 100%;
  font-size: 10px;
  line-height: normal;
  font-weight: var(--medium);
}

.w113 { width: 113px; }
.w135 { width: 135px; }
.w163 { width: 163px; }

.credit {
  position: absolute;
  left: 50%;
  bottom: 21px;
  transform: translate(-50%, 50%);
  font-size: 10px;
  line-height: normal;
  font-weight: var(--thin);
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
}

/* Coming in. */
.card.entering {
  animation: card-in 0.5s var(--ak-slide) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* A phone: the card fills the width, inside 16px gutters. */
@media (max-width: 520px) {
  .card {
    width: 100%;
    padding: 0 20px;
  }
}

@media (max-height: 600px) {
  .stage {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card.entering {
    animation: card-fade 0.15s linear both;
  }
  @keyframes card-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
