/* === Template 6 — Sport / Running === */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --bg: #fafaf9;
  --bg-white: #ffffff;
  --bg-soft: #f4f4f0;
  --text: #1c1917;
  --text-mid: #44403c;
  --text-muted: #78716c;
  --border: #e7e5e4;
  --accent: #f97316;
  --accent-hover: #ea6c09;
  --accent-light: #fff7ed;
  --accent-dark: #c2410c;
  --header-bg: #1c1917;
  --tag-bg: #f4f4f0;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* === Header — left accent bar === */
#masthead {
  background: var(--header-bg);
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-accent-bar {
  width: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
.site-header-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  min-height: 60px;
  gap: 20px;
}
.site-branding { display: flex; flex-direction: column; gap: 1px; }
.site-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.site-title span { color: var(--accent); }
.site-title:hover { text-decoration: none; opacity: 0.9; }
.site-tagline {
  font-size: 0.65rem;
  color: #78716c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
nav.main-nav ul { list-style: none; display: flex; gap: 2px; }
nav.main-nav a {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: #a8a29e;
  padding: 8px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
nav.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); text-decoration: none; }

/* === Layout: centred narrow column, no sidebar === */
#page { max-width: 820px; margin: 0 auto; padding: 0 24px 72px; }
#page-home { max-width: 960px; margin: 0 auto; padding: 0 24px 72px; }

/* === Breadcrumb === */
.breadcrumb {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 20px 0 0;
  margin-bottom: -16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb .sep { color: var(--border); }

/* === Article header — underline style === */
.entry-header { padding: 40px 0 32px; border-bottom: 3px solid var(--accent); margin-bottom: 36px; }

.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.entry-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
}
.entry-tag.secondary {
  background: var(--tag-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.entry-title {
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.entry-meta .sep { color: var(--border); }
.entry-meta a { color: var(--text-muted); }
.entry-meta a:hover { color: var(--accent); text-decoration: none; }
.reading-pill {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: auto;
}

/* === Content === */
.entry-content {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-mid);
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content > p:first-child { font-size: 1.08rem; color: var(--text); }

.entry-content h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 900;
  margin: 2.5em 0 0.8em;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.entry-content h2::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}
.entry-content h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  margin: 1.8em 0 0.5em;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content strong { font-weight: 700; color: var(--text); font-family: var(--font); }

/* === Fact boxes === */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2em 0;
}
.fact-box {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.fact-box .fact-num {
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.fact-box .fact-label {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === Warning / tip box === */
.warn-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.8em 0;
  font-family: var(--font);
  font-size: 0.9rem;
  color: #7c2d12;
  font-weight: 600;
}
.warn-box strong { color: var(--accent-dark); }

.note-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.8em 0;
  font-family: var(--font);
  font-size: 0.9rem;
  color: #14532d;
  font-weight: 600;
}

/* === Table === */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 0.87rem;
  margin-bottom: 2em;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.entry-content th {
  background: var(--accent);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--bg-soft); }

/* === Entry footer === */
.entry-footer {
  border-top: 2px solid var(--border);
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.entry-footer a {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 2px 4px 2px 0;
}
.entry-footer a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* === Homepage: horizontal cards === */
.posts-section-title {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 36px 0 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 8px;
}

/* Featured card — full width horizontal */
.post-card-featured {
  display: flex;
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.post-card-featured:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.09); }
.post-card-featured .card-accent {
  width: 8px;
  background: var(--accent);
  flex-shrink: 0;
}
.post-card-featured .card-body {
  flex: 1;
  padding: 28px 28px 22px;
}
.post-card-featured .card-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card-tag {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 3px 10px;
}
.card-date {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.post-card-featured .card-title {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.post-card-featured .card-title a { color: inherit; }
.post-card-featured .card-title a:hover { color: var(--accent); text-decoration: none; }
.post-card-featured .card-excerpt {
  font-family: var(--font);
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-read-more {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-read-more::after { content: ' →'; }
.card-read-more:hover { text-decoration: none; color: var(--accent-hover); }

/* Regular cards — 2 column grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.post-card .card-top-bar { height: 4px; background: var(--accent); }
.post-card .card-body { padding: 18px 18px 14px; }
.post-card .card-meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-card .card-title {
  font-family: var(--font);
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.post-card .card-title a { color: inherit; }
.post-card .card-title a:hover { color: var(--accent); text-decoration: none; }
.post-card .card-excerpt {
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.post-card .card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

/* === Footer — minimal single line === */
#colophon {
  background: var(--header-bg);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 0.75rem;
  color: #57534e;
  gap: 20px;
}
#colophon a { color: #57534e; }
#colophon a:hover { color: var(--accent); text-decoration: none; }
.footer-nav { display: flex; gap: 20px; }
.footer-left-bar {
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* === Category page === */
.category-header {
  padding: 36px 0 24px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 28px;
}
.category-header h1 {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}
.category-header p {
  font-family: var(--font);
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 720px) {
  .entry-title { font-size: 1.6rem; }
  .site-header-inner { padding: 0 16px; gap: 10px; }
  nav.main-nav ul { gap: 0; }
  nav.main-nav a { padding: 8px 8px; font-size: 0.72rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .post-card-featured { flex-direction: column; }
  .post-card-featured .card-accent { width: 100%; height: 6px; }
  #masthead { position: static; }
  #colophon { flex-direction: column; text-align: center; gap: 12px; }
  .footer-left-bar { display: none; }
}
