/* ─────────────────────────────────────────────
   Slytherin · Base
   ───────────────────────────────────────────── */

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

html {
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "ss03";
  font-variant-ligatures: common-ligatures;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding-inline-start: 0; list-style: none; margin: 0; }

/* Selection */
::selection { background: var(--emerald); color: var(--gold-soft); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Containers */
.container {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding-inline: var(--s-5);
}
.container.narrow { max-width: var(--w-narrow); }
.container.content { max-width: var(--w-content); }
.container.bleed { max-width: var(--w-bleed); }

@media (min-width: 768px) {
  .container { padding-inline: var(--s-6); }
}

/* Section rhythm */
section { position: relative; }
.section {
  padding-block: var(--s-10);
}
.section.tight { padding-block: var(--s-9); }
.section.huge { padding-block: var(--s-11); }

@media (max-width: 720px) {
  .section { padding-block: var(--s-9); }
  .section.tight { padding-block: var(--s-8); }
  .section.huge { padding-block: var(--s-10); }
}

/* Hairlines */
.rule {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.rule.gold {
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold-soft) 50%, var(--gold) 60%, transparent);
  height: 1px;
}

/* Utilities */
.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;
}
.no-wrap { white-space: nowrap; }
.italic { font-style: italic; }
