/* Lansing Tech Studio - Team Blog Theme
   Shared by every team site via `remote_theme`. Edit here, not in team repos. */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;

  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  --header-height: 60px;
  --content-max-width: 760px;
  --spacing-unit: 1rem;

  --font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Oxygen", "Ubuntu", sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  line-height: 1.7;
  color: var(--text-color);
  background: var(--bg-color);
}

/* Header */
.site-header {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: var(--header-height);
  padding: 0.5rem var(--spacing-unit);
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-img { height: 40px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  border-bottom-color: white;
  text-decoration: none;
}

/* Content */
.main-content { padding: calc(var(--spacing-unit) * 2) var(--spacing-unit); }

.content {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* Post list */
.post-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.post-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.post-item:last-child { border-bottom: none; }

.post-link {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 0.5rem;
}

.post-excerpt { margin: 0; }

/* Team card grid — used by the robotics hub to link out to team sites */
.team-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  text-align: center;
}

.team-card img {
  max-width: 140px;
  margin-bottom: 0.75rem;
}

.team-card h2 {
  font-size: 1.15rem;
  border: none;
  margin: 0 0 0.25rem;
  padding: 0;
}

.team-card .post-meta { margin: 0; }

.team-card .coming-soon {
  color: var(--text-muted);
  font-style: italic;
}

.empty-state {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--text-muted);
  text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 2rem 0 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
li > ul, li > ol { margin-top: 0.5rem; margin-bottom: 0; }

img, video, iframe {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-tertiary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--primary-dark);
}

pre {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--border-color);
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  display: block;
  overflow-x: auto;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

th { background: var(--bg-secondary); font-weight: 600; }
tr:nth-child(even) { background: var(--bg-secondary); }

blockquote {
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--primary-color);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-style: italic;
}

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

/* Footers */
.page-footer {
  margin-top: 2rem;
  padding-top: var(--spacing-unit);
  border-top: 1px solid var(--border-color);
}

.back-link { color: var(--text-muted); }
.back-link:hover { color: var(--primary-color); }

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: calc(var(--spacing-unit) * 2);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p { margin: 0.25rem 0; }

@media (max-width: 600px) {
  html { font-size: 14px; }
  .header-content { justify-content: center; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
}
