/* Assay Static Site Stylesheet */

:root {
  --bg-dark: #0d1117;
  --bg-light: #ffffff;
  --text-dark: #c9d1d9;
  --text-light: #24292f;
  --accent: #e6662a;
  --accent-hover: #ff7a3d;
  --border: #30363d;
  --code-bg: #161b22;
  --code-text: #79c0ff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #ffffff;
    --bg-light: #f6f8fa;
    --text-dark: #24292f;
    --text-light: #57606a;
    --border: #d0d7de;
    --code-bg: #f6f8fa;
    --code-text: #0550ae;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

/* Header & Navigation */
header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--accent-hover);
}

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

nav a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 200px);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Code & Pre */
code {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.4;
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

th {
  background-color: var(--code-bg);
  color: var(--text-dark);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background-color: var(--code-bg);
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-light);
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--accent);
}

footer a:hover {
  color: var(--accent-hover);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    gap: 1rem;
    width: 100%;
  }

  main {
    padding: 1.5rem 1rem;
  }

  table {
    font-size: 0.9em;
  }

  th, td {
    padding: 0.5rem;
  }
}

/* Utility Classes */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}
