/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:           #080808;
  --text:         #f0f0f0;
  --muted:        rgba(240, 240, 240, 0.5);
  --font:         'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    ui-monospace, 'Courier New', monospace;
  --pad:          1.5rem;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── Canvas Nav (home page) ─────────────────────────────────────────────────
   Full-screen fixed overlay, same structure as the original Codrops demo:
   row 1 → page links (top-right)
   row 2 → large centred site title
   row 3 → empty / reserved
*/
.site-nav--canvas {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  padding: var(--pad);
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Page links sit in the top row, right-aligned */
.site-nav--canvas .site-nav__links {
  grid-row: 1;
  justify-self: end;
  align-self: start;
  display: flex;
  gap: 1.5rem;
  pointer-events: auto;
}

.site-nav--canvas .site-nav__links a {
  color: #fff;
}

.site-nav--canvas .site-nav__links a:hover {
  text-decoration: underline;
}

/* Large centred title in the middle row */
.site-nav__canvas-title {
  grid-row: 2;
  justify-self: center;
  align-self: center;
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
  color: #fff;
  pointer-events: none;
  user-select: none;
}

/* ─── Page Nav (info and other pages) ───────────────────────────────────────── */
.site-nav--page {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--pad);
  color: var(--text);
  border-bottom: 1px solid rgba(240, 240, 240, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav__title {
  font-weight: 400;
}

.site-nav--page .site-nav__links {
  display: flex;
  gap: 1.5rem;
}

.site-nav__link.is-active {
  opacity: 0.4;
  pointer-events: none;
}

/* ─── Canvas Page ───────────────────────────────────────────────────────────── */
.canvas-page #root {
  position: fixed;
  inset: 0;
}

/* ─── Info Page ─────────────────────────────────────────────────────────────── */
.info-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.info-main {
  flex: 1;
  padding: 6rem var(--pad) 4rem;
  width: 100%;
  max-width: 1100px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.info-headline {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.info-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 560px;
}

.info-text p {
  margin: 0 0 1.25rem;
}

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

.info-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact sidebar */
.info-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.5rem;
  align-content: start;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.info-contact dt {
  color: var(--muted);
  white-space: nowrap;
  padding-top: 1px;
}

.info-contact dd {
  margin: 0;
  color: var(--text);
}

.info-contact a {
  color: var(--text);
}

.info-contact a:hover {
  text-decoration: underline;
}

.info-address {
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  padding: var(--pad);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(240, 240, 240, 0.06);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .info-main {
    padding: 8rem calc(var(--pad) * 2) 5rem;
  }

  .info-grid {
    grid-template-columns: 1fr 280px;
    gap: 5rem;
    align-items: start;
  }
}
