/* base.css */

/* Import Schibsted Grotesk from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..900;1,400..900&display=swap');

/* Color variables */
:root {
  --color-bg: #000;
  --color-fg: #fff;
  --color-fg-muted: #ccc;
  --color-fg-secondary: #888;
  --color-accent: #fff;
  --color-border: #444;
}


/* Body & container */
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: 'Schibsted Grotesk', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;  /* prevent horizontal overflow */
}

.site-container {
  max-width: 1450px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0 1em;
  box-sizing: border-box;

  overflow-x: hidden; /* clip any horizontal overflow */
}

/* Ensure layout children don't exceed container width */
.layout,
.sidebar,
main {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}


/* Header */
header {
  background: var(--color-bg);
  padding: 1rem 0 8rem 0;
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;      /* fluid width */
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;      /* allow wrapping on small screens */
  gap: 1em;
}

.header-left {
  text-align: left;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-left .name {
  color: var(--color-fg);
  font-weight: 500;
}

.header-left .role {
  color: var(--color-fg-secondary);
  font-weight: 400;
  font-size: 1.4rem;
  margin-top: 0.1em;
}

.header-right {
  text-align: right;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  display: flex;
  flex-wrap: wrap;      /* allow links to wrap on small screens */
  gap: 0em;
}

/* Footer */
footer {
  background: transparent;
  font-size: 1rem;
  letter-spacing: 1px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}

/* Navigation links */
.compass-link {
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.2em 0.5em;
  border-radius: 0px;
  transition: color 0.2s, background 0.2s;
}

.compass-link:hover,
.compass-link:focus {
  color: var(--color-bg);
  background: var(--color-fg);
  text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-left {
    font-size: 1.5rem;
  }
  .header-left .role {
    font-size: 1.2rem;
  }
  .header-right {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding-bottom: 4rem;
  }
  .header-left {
    font-size: 1.2rem;
  }
  .header-left .role {
    font-size: 1rem;
  }
  .header-right {
    font-size: 0.9rem;
  }
}


