@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --column-width: 72px;
  --gutter-width: 24px;
  --container-width: calc((var(--column-width) * 12) + (var(--gutter-width) * 11));
}

.container {
  width: 75vw; /* Set a reasonable max width for readability */
  margin: 0;
  padding: 2rem;
  display: block; /* Remove grid to allow content to use full width */
  border: #E2E8F0 1px solid;
  background: white;
}

html, body {
  font-family: 'Inter', sans-serif;
  color: var(--color-cold-night) !important;
  background: #FAFAFA;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-bar {
  background: white;
  border-radius: 0;
  padding: 2rem;
  margin: 0;
  border: none;
  width: 100%;
  min-width: auto;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: #E2E8F0 1px solid;
}

.header-bar-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.header-bar-nav {
  padding: 0;
  margin: 0;
  margin-top: 1rem;
}

.header-bar-nav ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.header-bar-nav ul li a {
  position: relative;
  padding-bottom: 4px;
}

.header-bar-nav ul li.active a,
.header-bar-nav ul li a.active {
  border-bottom: 3px solid #6F4DFA;
}

.header-bar-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.header-bar-logo img {
  height: 32px;
  margin: 0;
  padding: 0;
  display: block;
}

h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--color-cold-night) !important;
}

h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--color-cold-night) !important;
}

h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--color-cold-night) !important;
}

a {
  color: var(--color-cold-purple) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

.prose pre,
.prose code {
  white-space: pre-wrap;      /* wrap instead of only on line breaks */
  word-wrap: break-word;      /* break long words/URLs */
  overflow-wrap: anywhere;    /* newer spec, breaks at any opportunity */
}

main {
  flex: 1 0 auto;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  max-width: 65vw;
  margin-left: auto;
  margin-right: auto;
}

.cold-footer {
  height: 25vh;
  border: none;
  background: #0F0035;
  color: #fff;
  width: 100%;
  min-width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.cold-footer-content {
  margin-left: 17.5vw;;
  margin-right: auto;
  padding: 2rem 0;
}

.cold-footer-title {
  font-weight: 700;
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.cold-footer-funding {
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .html,
  body {
    font-size: 16px !important; /* Adjust font size for mobile */
    padding: 0 !important; /* Remove padding for mobile */
    margin: 0 !important; /* Remove margin for mobile */
    height: auto !important; /* Allow content to dictate height */
  }

  .container {
    width: 95vw !important;
    margin: 0 !important;
    padding: 1rem !important;
    display: block !important; /* Ensure full width on mobile */
  }

  main {
    max-width: 100vw !important;
    padding: 1rem !important;
  }

  .header-bar {
    padding: 2rem !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
  }

  .header-bar-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .header-bar-nav ul {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .header-bar-logo {
    margin-bottom: 1rem !important;
  }

  .cold-footer {
    height: auto !important;
    padding: 2rem 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .cold-footer-content {
    width: 95vw !important;
    padding: 1rem 0 !important;
  }
}
