/* ============================================================
   PORTAL ALMA — Base & Reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Selection ── */
::selection {
  background: rgba(130,84,206,.18);
  color: var(--purple-deep);
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-smooth);
}

/* ── Lists ── */
ul, ol { list-style: none; }

/* ── Buttons ── */
button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--purple-ghost); }
::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── Typography Scale ── */
.t-display {
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: .02em;
}
.t-serif {
  font-family: var(--font-serif);
  font-weight: 300;
}
.t-label {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.t-italic { font-style: italic; }

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}
