/* Practical Auto - Clean mechanic-adjacent custom CSS */

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

:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --steel: #455A64;
  --steel-light: #607D8B;
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --text: #212121;
  --text-light: #616161;
  --border: #E0E0E0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Header */
.site-header {
  background: var(--text);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}

.site-name {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  color: var(--red);
  text-decoration: none;
}

.site-name:hover {
  color: #EF5350;
}

.site-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Cabin', sans-serif;
  font-size: 0.85em;
  font-weight: 500;
  margin-left: 1.25em;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
}

/* Main content */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2em 1.5em 3em;
}

h1 {
  font-family: 'Cabin', sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75em;
  line-height: 1.25;
}

h2 {
  font-family: 'Cabin', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text);
  margin: 1.75em 0 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--red);
}

h3 {
  font-family: 'Cabin', sans-serif;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--steel);
  margin: 1.5em 0 0.4em;
}

p {
  margin-bottom: 1.25em;
}

a {
  color: var(--red);
  text-decoration: none;
}

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

strong {
  font-weight: 600;
}

ul, ol {
  margin: 0 0 1.25em 1.5em;
}

li {
  margin-bottom: 0.4em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5em 0;
  display: block;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* Callout box */
.callout-box {
  background: var(--surface);
  border-left: 4px solid var(--red);
  padding: 1.25em 1.5em;
  margin: 1.75em 0;
  border-radius: 0 4px 4px 0;
}

.callout-box h3 {
  margin-top: 0;
  font-size: 1em;
  color: var(--red-dark);
  border-bottom: none;
  padding-bottom: 0;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Homepage hub grid */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25em;
  margin: 2em 0;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25em 1.5em;
}

.hub-card h2 {
  font-size: 1.1em;
  margin: 0 0 0.4em;
  border-bottom: none;
  padding-bottom: 0;
}

.hub-card h2 a {
  color: var(--text);
}

.hub-card h2 a:hover {
  color: var(--red);
}

.hub-card p {
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.homepage-cta {
  background: var(--surface);
  border-left: 4px solid var(--red);
  padding: 1.25em 1.5em;
  margin: 2em 0;
  border-radius: 0 4px 4px 0;
}

.homepage-cta h2 {
  font-size: 1.1em;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 600px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* Part/resource card */
.part-card {
  background: var(--surface);
  border-left: 4px solid var(--steel);
  padding: 1.25em 1.5em;
  margin: 1.75em 0;
  border-radius: 0 4px 4px 0;
}

.part-card h3 {
  margin-top: 0;
  color: var(--steel);
  border-bottom: none;
  padding-bottom: 0;
}

/* Hub page article list */
.hub-list {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.hub-list li {
  padding: 0.75em 0;
  border-bottom: 1px solid var(--border);
}

.hub-list li:last-child {
  border-bottom: none;
}

.hub-list a {
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
  font-size: 1.05em;
}

.hub-list .desc {
  display: block;
  font-size: 0.9em;
  color: var(--text-light);
  margin-top: 0.2em;
}

/* Footer */
.site-footer {
  background: var(--text);
  padding: 2em 0;
  margin-top: 3em;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5em;
  text-align: center;
}

.footer-links {
  margin-bottom: 1em;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: 'Cabin', sans-serif;
  font-size: 0.85em;
  margin: 0 0.75em;
}

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

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8em;
}

/* Responsive */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav a {
    margin-left: 0;
    margin-right: 1em;
    font-size: 0.8em;
  }
  h1 { font-size: 1.6em; }
  .article-content { padding: 1.5em 1em 2em; }
}
