/* runninyeti.com — design system */

:root {
  --bg:           #1c1917;     /* warm dark brown — not black */
  --bg-surface:   #262220;     /* slightly lifted */
  --text:         #e0dbd5;     /* brighter warm white */
  --text-muted:   #8a8279;     /* warmer, more readable muted */
  --accent:       #e05297;     /* hot pink */
  --accent-hover: #f472b6;     /* brighter pink on hover */
  --rule:         #3d3631;     /* visible but subtle */
  --code-bg:      #211e1b;     /* code blocks */
  --link:         #e05297;     /* pink links */
  --link-hover:   #f472b6;     /* brighter pink hover */
}

/* --- reset --- */

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

/* --- base --- */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- layout --- */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* --- typography --- */

h1, h2, h3 {
  color: var(--text);
  font-weight: 400;
  text-transform: lowercase;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

code {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.8em;
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- mono (metadata, stats) --- */

.mono {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.8em;
  letter-spacing: 0.03em;
}

/* --- header --- */

.site-header {
  padding: 2rem 0 1rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 2.5rem;
}

.site-title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--text);
}

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

.site-tagline {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.site-nav {
  margin-top: 1rem;
}

.site-nav a {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.8em;
  color: var(--text-muted);
  margin-right: 1.5rem;
  text-transform: lowercase;
}

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

/* --- footer --- */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.75em;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

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

/* --- post list --- */

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 1.75rem;
}

.post-list .post-title {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: lowercase;
}

.post-list .post-title a {
  color: var(--text);
}

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

.post-list .post-meta {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.7em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.post-list .post-caption {
  font-size: 0.95em;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

/* --- single post --- */

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.meta-line {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.75em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.post-body {
  margin-bottom: 2rem;
}

.post-body p:first-child {
  font-size: 1.05em;
}

/* --- utility --- */

.accent { color: var(--accent); }
.muted { color: var(--text-muted); }

/* --- hero --- */

.hero {
  margin-bottom: 2rem;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--accent);
}

.hero-text p {
  margin-bottom: 0.4rem;
  font-size: 0.95em;
}

/* --- stats widgets --- */

.stats-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.widget {
  text-align: center;
}

.widget-value {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.widget-label {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.65em;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* --- year section --- */

.year-section {
  margin-bottom: 2.5rem;
}

.year-header {
  margin-bottom: 0.75rem;
}

/* --- chart --- */

.chart-container {
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 0.5rem 0.5rem;
  margin-top: 1rem;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem 0.5rem;
  font-size: 0.7em;
}

.year-chart {
  width: 100%;
  height: auto;
}

/* --- clickable images --- */

.img-link {
  display: block;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.img-link:hover {
  opacity: 0.85;
}

/* --- route map --- */

.route-map {
  margin: 1.5rem 0;
}

.route-map img {
  width: 100%;
  height: auto;
}

/* --- stats card --- */

.stats-card {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.8em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
  padding: 1rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats-card .stat {
  display: flex;
  justify-content: space-between;
}

.stats-card .stat-label {
  color: var(--text-muted);
}

.stats-card .stat-value {
  color: var(--text);
}

/* highlight PRs and notable stats */
.stats-card .stat-value.highlight {
  color: var(--accent);
}

/* --- activity photos --- */

.activity-photos {
  margin: 1.5rem 0;
}

.activity-photo {
  margin-bottom: 1rem;
}

.activity-photo img {
  width: 100%;
  height: auto;
}

/* --- weather line --- */

.weather-line {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- section headers (list pages) --- */

.section-header {
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: 1.8rem;
}

/* --- 404 --- */

.four-oh-four {
  text-align: center;
  padding: 6rem 1.5rem;
}

.four-oh-four h1 {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.four-oh-four p {
  color: var(--text-muted);
  font-style: italic;
}

/* --- responsive --- */

@media (max-width: 600px) {
  .container {
    padding: 2rem 1rem 3rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .stats-card {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
  }

  .hero-photo img {
    width: 100px;
    height: 100px;
  }

  .stats-widgets {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
  }

  .widget-value {
    font-size: 1.2rem;
  }

  .site-nav a {
    margin-right: 1rem;
  }
}
