/* improve.css - make most websites look not shitty */

:root {
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-size-base: 16px;
  --max-line-length: 75ch;
  --line-height: 1.6;
  --background-color: #f9f9fb;
  --text-color: #222;
  --accent-color: #007acc;
}

/* Reset and normalize */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: var(--line-height);
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  padding: 1rem;
  max-width: 90ch; /* or remove this line */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

/* Paragraphs */
p {
  margin: 1rem 0;
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: darken(var(--accent-color), 10%);
}

/* Images */

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem; /* Add space below images */
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

/* Buttons & Inputs */
button,
input,
select,
textarea {
  font: inherit;
  border: 1px solid #ccc;
  padding: 0.5em;
  border-radius: 4px;
  background-color: #fff;
}

button {
  cursor: pointer;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  transition: background 0.2s ease;
}
button:hover {
  background-color: #005ea3;
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
  margin: 1rem 0;
}

/* Code blocks */
pre, code {
  font-family: monospace;
  background-color: #f3f3f3;
  padding: 0.25em 0.5em;
  border-radius: 4px;
}
pre {
  overflow-x: auto;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  padding: 0.5rem;
  border: 1px solid #ccc;
  text-align: left;
}

/* Forms */
label {
  display: block;
  margin: 0.5rem 0 0.25rem;
}

/* Utility classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Smooth shadows and spacing */
.shadow {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.rounded {
  border-radius: 8px;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 600px; /* more generous max width */
}

/* Navbar styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.navbar .navbar-links {
  display: flex;
  gap: 0; /* Remove gap, we'll use borders instead */
}

.navbar .navbar-links a {
  color: var(--text-color);
  text-decoration: none; /* Remove underline */
  font-weight: 500;
  transition: color 0.2s;
  padding: 0 1.5rem;
  border-right: 1px solid #e5e5e5;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar .navbar-links a:last-child {
  border-right: none;
}

.navbar .navbar-links a:hover {
  color: var(--accent-color);
}
