/* ── Fonts ── */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variables ── */
:root {
  --bg: #ffffff;
  --surface: #f4f7fa;
  --border: #dde3ec;
  --accent: #1a9cc9;
  --accent-dim: rgba(49, 183, 233, 0.1);
  --text: #3a3a4a;
  --muted: #8a8aa0;
  --heading: #0a0a0f;
}

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

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 3rem;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 183, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 183, 233, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
}

/* ── Tag ── */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(49, 183, 233, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ── Headings ── */
h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--heading);
  letter-spacing: -0.02em;
}

h1 span {
  color: var(--accent);
}

/* ── Footer nav ── */
.footer {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.footer a {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: var(--accent); }
.footer a.active { color: var(--accent); font-weight: 600; }

.footer-sep {
  font-size: 0.68rem;
  color: var(--border);
}

/* ── Page nav (quadfixr subpages) ── */
.page-nav {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.page-nav-link {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.page-nav-link:hover { color: var(--accent); }
.page-nav-link.active { color: var(--accent); font-weight: 600; }

.page-nav-sep {
  font-size: 0.68rem;
  color: var(--border);
}

/* ── Attribution ── */
.made-by {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
}

.made-by a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
