/* ==========================================================================
   Base — Reset, body defaults, typography
   ========================================================================== */

/* --- Reset --- */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: #EEEEF2;
  background-color: #0D0D12;
  min-height: 0;
}

html {
  color-scheme: only dark;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

a:hover {
  opacity: 0.8;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* --- Typography --- */

h1, .h1 {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
}

h2, .h2 {
  font-size: var(--font-size-subhead);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--text-secondary);
}

p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

small, .caption {
  font-size: var(--font-size-caption);
  color: var(--text-secondary);
}

/* --- Form Elements --- */

input[type="email"],
input[type="text"] {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-16);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

input::placeholder {
  color: var(--text-placeholder);
}

input:focus {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: transparent;
}

/* --- Utility --- */

.page-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding-x);
}

/* --- Selection --- */

::selection {
  background-color: var(--accent);
  color: var(--bg-primary);
}
