/* ANW Consulting - Clean, minimal, content-focused */

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #5a4a8a;
  --accent-hover: #7a6aaa;
  --bg: #fafafa;
  --bg-card: #fff;
  --border: #e0e0e0;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 800px;
  --nav-max-width: 1000px;
}

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

html {
  font-size: 18px;
  line-height: 1.6;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
}

/* Sticky wrapper for header + nav */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
}

/* Header */
header {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.site-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Navigation */
nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-scroll {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.75rem 0;
  flex: 1;
  scroll-behavior: smooth;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

/* Nav scroll buttons */
.nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-container.has-overflow .nav-btn {
  display: flex;
}

nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

nav a:hover {
  color: var(--accent);
  background: rgba(90, 74, 138, 0.08);
}

nav a.active {
  color: var(--accent);
  font-weight: 500;
}

/* Overflow indicator */
.nav-container::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bg-card));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-container.has-overflow::after {
  opacity: 1;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Page title */
h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs and text */
p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Blockquotes - for tweets and quotes */
blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

blockquote p {
  color: inherit;
}

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

li {
  margin-bottom: 0.5rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

/* About page - links list */
.links-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.links-list li {
  margin-bottom: 0.75rem;
}

.links-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.link-favicon {
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 2px;
}

/* Article meta */
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Consulting sections */
.service-section {
  margin-bottom: 2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  
  header {
    padding: 2rem 1rem 1rem;
  }
  
  .site-title {
    font-size: 1.5rem;
  }
  
  main {
    padding: 2rem 1rem 3rem;
  }
  
  h1 {
    font-size: 1.4rem;
  }
}

/* Print styles */
@media print {
  nav, footer {
    display: none;
  }
  
  main {
    max-width: 100%;
    padding: 0;
  }
}
