/* 
   ==========================================================================
   AXLE GREASE - STYLESHEET
   Aesthetics: Old, grease-stained physical workshop manual or ledger on a workbench.
   Warm, high-contrast drafting paper and grease-slate. No modern web fluff.
   ========================================================================== 
*/

:root {
  /* System Palette: Warm, rich Karoo earth and drafting paper tones */
  --bg-color: #FAF5EB;          /* Warm aged-paper tint of soft-fawn */
  --text-main: #352208;         /* Rich dark coffee for highly readable prose */
  --text-muted: #7b6b43;        /* Olive wood for specs, dates, and captions */
  --border-color: #e1bb80;      /* Soft fawn mechanical divider lines */
  --accent-color: #806443;      /* Olive wood-2 for active navigation and highlights */
  
  /* Typography */
  --font-header: 'Inter', 'Helvetica', -apple-system, sans-serif;
  --font-body: 'Georgia', Cambria, "Times New Roman", Times, serif; /* Classic editorial */
  --font-mono: 'Fira Code', 'Courier New', Courier, monospace; /* Dimensions, parts, and dates */
  
  /* Layout Constraints */
  --max-width: 720px;           /* Strict single-column focus */
}

/* Base Elements */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 40px 24px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Strict single column layout container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--text-main);
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin-top: 0;
  text-transform: uppercase;
}

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

h3 {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--accent-color);
}

a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-main);
  text-decoration-thickness: 2px;
}

/* Navigation Block */
.nav-menu {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin: 32px 0 48px 0;
  padding: 0;
  list-style: none;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-muted);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--accent-color);
  font-weight: bold;
}

/* Coordinate subtitle */
.sub-coords {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Monospace Status Block */
.status-block {
  background-color: #F3EAD8;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  white-space: pre-wrap;
  margin: 32px 0;
  color: var(--text-main);
  line-height: 1.5;
}

/* Horizontal Rules */
hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 40px 0;
}

.thin-hr {
  border: 0;
  border-top: 1px dashed var(--border-color);
  margin: 16px 0;
}

/* Recent Feed Log List */
.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feed-item {
  margin-bottom: 24px;
}

.feed-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feed-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 6px 0;
}

.feed-title a {
  text-decoration: none;
  color: var(--text-main);
}

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

/* Technical Specification and Maintenance Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 28px 0;
  text-align: left;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

tr:hover td {
  background-color: #F3EAD8;
}

/* Raw Image Treatment */
.image-wrapper {
  margin: 36px 0;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-color);
  filter: grayscale(15%) contrast(102%);
}

.image-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* Footer Philosophy */
footer {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 60px;
  text-align: left;
}

/* Print/Retro adjustments */
@media (max-width: 600px) {
  body {
    padding: 24px 16px;
    font-size: 16px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}

/* Theme Switcher Widget */
.theme-switcher-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -32px;
  margin-bottom: 32px;
  justify-content: flex-end;
}

.theme-switcher-container select {
  background-color: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
}

.theme-switcher-container select:hover {
  border-color: var(--accent-color);
}
