/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* System Font Stack */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #111111;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
}

header {
  border-bottom: 1px solid #e5e5e5;
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  padding: 6rem 0;
  text-align: center;
  background-color: #f9f9f9;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.work-grid {
  list-style: none;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.work-grid li h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

a {
  color: #1a73e8;
}

footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.875rem;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

/* Responsive Layout */
@media (min-width: 600px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav ul {
    justify-content: flex-end;
  }

  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------------------------------
   Dark Mode (Automatic Preference)
---------------------------------- */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111111;
    color: #eeeeee;
  }

  a {
    color: #8ab4f8;
  }

  .hero {
    background-color: #1a1a1a;
  }

  header,
  footer {
    border-color: #333333;
  }
}

/* ---------------------------------
   Print Styles
---------------------------------- */
@media print {
  header,
  nav,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    width: 100%;
    padding: 0;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .hero {
    padding: 2rem 0;
  }
}
