@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap");

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

:root {
  color-scheme: dark;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  background: #05060a url("../resources/background.png") center center / cover no-repeat fixed;
  color: #f9fafc;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 15% 80%, rgba(0, 0, 0, 0.55), transparent 60%);
  transition: background 250ms ease;
}

body.is-inner {
  overflow-y: auto;
  --inner-surface-tint: rgba(38, 14, 20, 0.84);
  --inner-surface-tint-strong: rgba(38, 14, 20, 0.94);
  --inner-surface-divider: rgba(255, 220, 225, 0.08);
}

body.is-inner::before {
  background: var(--inner-surface-tint);
}

body > * {
  position: relative;
  z-index: 1;
}

#menu-slot {
  display: contents;
}

a {
  color: inherit;
}

strong,
b {
  font-weight: 500;
}

button,
input,
textarea {
  font: inherit;
}

.site-nav {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 200;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: #f9fafc;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.icon-button:focus-visible {
  outline: 2px solid rgba(249, 250, 252, 0.6);
  outline-offset: 2px;
}

.icon-button svg {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  stroke-width: 1.5;
}

.back-button[hidden] {
  display: none;
}

.menu-flyout {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0.375rem 0;
  min-width: 17rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-origin: top left;
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-inner .menu-flyout {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--inner-surface-tint);
}

body.is-inner .menu-flyout li + li {
  border-top-color: var(--inner-surface-divider);
}

body.is-inner .menu-flyout a:hover,
body.is-inner .menu-flyout a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

body.is-inner .menu-flyout a.is-active {
  background: rgba(255, 255, 255, 0.14);
}

.menu-flyout.is-open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.menu-flyout li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-flyout a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  color: #f9fafc;
}

.menu-flyout a:hover,
.menu-flyout a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.menu-flyout a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-flyout a:focus-visible {
  outline: 1px solid rgba(249, 250, 252, 0.35);
  outline-offset: -1px;
  border-radius: 2px;
}

.terminal-area {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 5vw;
  padding-bottom: calc(5vw + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.terminal-area[hidden] {
  display: none;
}

.brand {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: lowercase;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.brand-suffix {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.brand-suffix:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.brand-suffix:focus-visible {
  outline: 2px solid rgba(249, 250, 252, 0.7);
  outline-offset: 2px;
  border-radius: 2px;
}

.cursor {
  animation: blink 1600ms step-end infinite;
}

.cursor::after {
  content: "|";
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.page-content {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 5.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-container {
  width: 100%;
  max-width: 640px;
}

.page-tag {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 250, 252, 0.3);
}

.page-title {
  margin: 0 0 4.25rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.section {
  margin-bottom: 1.5rem;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 250, 252, 0.36);
}

.section p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(249, 250, 252, 0.7);
}

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

.divider {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
}

.evelyn-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
  max-width: min(100%, 28rem);
  margin: 0 auto 2.75rem;
  padding: 0 1rem;
  text-align: right;
}

.evelyn-name {
  margin: 0.15rem 0 0;
  align-self: center;
  text-align: center;
  font-family: "Imperial Script", cursive;
  font-size: clamp(3.6rem, 8.4vw, 5.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff3e2;
  text-wrap: balance;
}

.evelyn-dates {
  margin: 0.4rem 0 0;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 250, 252, 0.58);
}

.evelyn-definition {
  max-width: 24rem;
  margin: 0.9rem 0 0;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: clamp(0.84rem, 1.15vw, 0.96rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(249, 250, 252, 0.7);
}

.evelyn-intro {
  margin: 0.5rem 0 1.5rem;
}

.evelyn-intro p {
  margin: 0;
  font-size: clamp(0.975rem, 1.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(249, 250, 252, 0.68);
}

.evelyn-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.evelyn-features li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(249, 250, 252, 0.72);
}

.evelyn-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(249, 250, 252, 0.55);
}

.evelyn-waitlist {
  margin-top: 1.75rem;
  text-align: center;
}

.oss-list,
.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oss-item,
.media-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.oss-item:last-child,
.media-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.oss-link,
.media-link {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #f9fafc;
}

.oss-link:hover,
.media-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.oss-desc,
.media-desc {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(249, 250, 252, 0.5);
}

.oss-more,
.media-more {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(249, 250, 252, 0.48);
}

.oss-more a,
.media-more a {
  color: rgba(249, 250, 252, 0.72);
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.oss-more a:hover,
.media-more a:hover {
  color: #f9fafc;
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 250, 252, 0.58);
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.055);
  color: #f9fafc;
  transition: border-color 150ms ease, background 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(249, 250, 252, 0.22);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.625rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafc;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.form-submit:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.form-submit:focus-visible {
  outline: 2px solid rgba(249, 250, 252, 0.55);
  outline-offset: 2px;
}

.form-submit:disabled,
.form-input:disabled,
.form-textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-submit svg {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 2;
}

.form-feedback {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(249, 250, 252, 0.7);
  font-size: 0.875rem;
  font-weight: 300;
}

.form-feedback[hidden] {
  display: none;
}

.dialog-launch {
  margin-top: 0.5rem;
}

.waitlist-dialog {
  width: min(92vw, 34rem);
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.waitlist-dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dialog-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: var(--inner-surface-tint-strong);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
  padding: 1.25rem;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f9fafc;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dialog-close:focus-visible {
  outline: 2px solid rgba(249, 250, 252, 0.55);
  outline-offset: 2px;
}

.dialog-close svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2;
}

.dialog-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(249, 250, 252, 0.68);
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

@media (max-width: 640.98px) {
  .site-nav {
    top: 1rem;
    left: 1rem;
  }

  .menu-flyout {
    min-width: 15rem;
  }

  body.is-inner .menu-flyout {
    background: var(--inner-surface-tint-strong);
  }

  .page-content {
    padding-top: 4.75rem;
  }

  .terminal-area {
    padding: 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}
