/* Global dark theme */
:root {
  font-family: system-ui, Arial, sans-serif;
  color-scheme: dark;
}
/* Make body take full screen height and stack content vertically */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

/* Main area grows to push footer to bottom */
.wrapper, main {
    flex: 1;
}

body {
  margin: 0;
  line-height: 1.6;
  background: #1a1a1a;   /* Dark background */
  color: #e0e0e0;         /* Light text */
  text-align: left;     /* Left align most text */
}

/* Navigation bar */
.site-header {
  padding: 1rem;
  border-bottom: 1px solid #333;
  background: #111;
}

.nav {
  display: flex;
  gap: 1rem;
  justify-content: center;   /* Center nav links */
}

.nav a {
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: .5rem;
  color: #e0e0e0;
}

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

.nav a.active {
  background: #333;
}

/* Main content area */
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  padding-left: 20rem;
  padding-right: 20rem;
}

/* Cards on Projects page */
.card-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1rem;
}

.card {
  border: 1px solid #333;
  border-radius: .75rem;
  padding: 1rem;
  background: #222;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  padding-left: 20rem;
  padding-right: 20rem;
  color: #666;
}

/* Wrapper */
.wrapper {
  padding-left: 3rem;   /* ← Change this distance as you like (50px, 80px, etc.) */
  padding-right: 3rem;
  text-align: left;     /* Ensures text stays left-aligned */
  max-width: 50%;     /* Optional: keeps content from stretching too wide */
  margin: 0 auto;       /* Centers wrapper on the page */
}

/* Table layout */
.work-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;        /* consistent column widths */
}

.work-table td {
  padding: .6rem .25rem;
  border-bottom: 1px solid #2a2a2a; /* dark divider */
  vertical-align: top;
}

/* Dates column */
.work-date {
  width: 220px;               /* fixed column; adjust as you like */
  color: #99a2b2;             /* different color than titles */
  white-space: nowrap;        /* keep dates on one line */
  font-variant-numeric: tabular-nums; /* aligns digits neatly */
}

/* Titles column */
.work-title a {
  display: block;             /* make the whole cell clickable */
  text-decoration: none;
  color: inherit;
  padding: .25rem .5rem;
  border-radius: .5rem;
}

.work-title a:hover,
.work-title a:focus-visible {
  background: #2a2a2a;
  outline: none;
}

/* Optional: subtle row hover */
.work-table tr:hover td {
  background: #1f1f1f;
}

/* Responsive tweak: shrink date column on small screens */
@media (max-width: 600px) {
  .work-date { width: 150px; font-size: .95rem; }
}
