/* Global variables for colors, fonts, and layout */
:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.75);
  /* 👈 this is the key */
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #2563eb;
  --max-width: 1100px;

  /* Fonts */
  --pt-serif: 'PT Serif', serif;
  --mono: 'JetBrains Mono', monospace;
}

/* Global resets and base layout styles */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--pt-serif);
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 1.25rem auto;
  padding: 1rem;
}

main#content {
  padding-top: 1rem;
  flex: 1;
}

/* Brand (used globally, not navbar-specific) */
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

/* Common image containers and animations */
.square {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.square img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* fadeInUp animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeInUp 450ms ease both;
}

/* Monospace elements */
code,
pre,
.mono {
  font-family: var(--mono);
}

/* Background overlay tweak */
main.container {
  position: relative;
  z-index: 2;
}