/* -------------------------------------------------
   Global reset / sanity
------------------------------------------------- */

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

/* -------------------------------------------------
   Body & page frame
------------------------------------------------- */

body {
  margin: 0;
  padding: 2.5rem 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: #2b2f36;
  color: #222;
}

.site {
  max-width: min(90ch, 1100px);
  margin: 0 auto;
}

/* -------------------------------------------------
   Header image + nav overlay
------------------------------------------------- */

.site-header {
  margin-bottom: 1.5rem;
}

.header-image {
  position: relative;
  height: 260px;
  border-radius: 1rem;
  background-image: url("header.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.7) contrast(0.9);
  overflow: hidden;
}

/* Nav anchored to bottom of image */
.nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;

  padding: 0.6rem 0.8rem;

  background: rgba(240, 241, 244, 0.75);
  border-top: 1px solid rgba(180, 185, 195, 0.6);

  white-space: nowrap;
}

/* Nav links */
.nav a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: #222;
}

.nav a:hover {
  background: #e7ebf0;
}

.nav a.active {
  background: #dfe4ea;
  font-weight: 500;
}

/* -------------------------------------------------
   Main content card
------------------------------------------------- */

.card {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------
   Typography
------------------------------------------------- */

h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Links inside content */
.card a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.card a:hover {
  text-decoration-thickness: 2px;
}

/* -------------------------------------------------
   Mobile adjustments (minimal, no heroics)
------------------------------------------------- */

@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }

  .header-image {
    height: 140px;
    border-radius: 0.8rem;
  }

  .nav {
    overflow-x: auto;
  }

  .card {
    padding: 1.25rem;
    border-radius: 1rem;
  }
}

