/* North Pixel - Main Stylesheet */
:root {
  --bg-color: #f9fafb;
  --surface-color: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --max-width: 840px;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 48px;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-color);
}

main {
  flex: 1;
  padding-bottom: 80px;
}

.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.4;
}

.hero {
  text-align: left;
  margin-bottom: 40px;
  overflow: hidden;
  padding: 0 !important;
}

.hero-image {
  width: 100%;
  height: 120px;
  display: block;
}

.hero-content {
  padding: 24px 32px 32px;
}

.hero-content h1 {
  margin-bottom: 12px;
}

.hero-content .subtitle {
  margin-bottom: 0;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .subtitle {
  margin-bottom: 0;
  max-width: 600px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-card {
  padding: 24px;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-icon {
  margin-bottom: 16px;
}

.service-icon img {
  display: block;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  font-size: 15px;
  margin-bottom: 0;
}

.focus-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.focus-tag {
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
}

.insights-preview {
  margin-top: 40px;
}

.insights-preview h2 {
  margin-bottom: 20px;
}

.insight-card {
  padding: 16px;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  text-decoration: none;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: border-color 0.2s;
}

.insight-card:hover {
  border-color: var(--accent-color);
}

.insight-card:hover h3 {
  color: var(--accent-color);
}

.insight-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.insight-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
}

.insight-content {
  flex: 1;
}

.insight-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.insight-card h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.insight-card p {
  font-size: 15px;
  margin-bottom: 0;
}

.view-all {
  text-align: center;
  margin-top: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

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

.btn-outline {
  display: inline-block;
  padding: 10px 22px;
  background-color: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
  border: 1px solid var(--accent-color);
  font-size: 15px;
  font-weight: 500;
}

.btn-outline:hover {
  background-color: var(--accent-light);
}

/* Article styles */
.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: 36px;
  margin-bottom: 12px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 15px;
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 24px;
  margin: 32px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.article-content p {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Insights list */
.insights-list h1 {
  margin-bottom: 8px;
}

.insights-list .subtitle {
  margin-bottom: 32px;
}

/* Work page */
.work-item {
  margin-bottom: 36px;
}

.work-item:last-child {
  margin-bottom: 0;
}

.work-item h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.work-item p {
  font-size: 16px;
}

/* About page */
.story-block {
  margin-bottom: 28px;
}

.story-block:last-child {
  margin-bottom: 0;
}

.about-illustration {
  width: 100%;
  height: 200px;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.about-illustration img {
  width: 100%;
  height: 100%;
  display: block;
}

.work-item {
  margin-bottom: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.work-item:last-child {
  margin-bottom: 0;
}

.work-item-icon {
  flex-shrink: 0;
}

.work-item-content {
  flex: 1;
}

@media (max-width: 600px) {
  .work-item {
    flex-direction: column;
    gap: 16px;
  }
}

/* Contact info */
.contact-info {
  font-size: 16px;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* 404 page */
.not-found {
  text-align: center;
  padding: 60px 20px;
}

.not-found h1 {
  font-size: 72px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.not-found h2 {
  margin-bottom: 16px;
}

footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: auto;
}

footer p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}

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

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

@media (max-width: 600px) {
  header {
    padding: 16px 0;
    position: relative;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .logo {
    font-size: 18px;
  }

  h1 {
    font-size: 32px;
  }

  .article-title {
    font-size: 28px;
  }

  .card {
    padding: 24px 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    gap: 16px;
  }
}
