/* Counterflow — river surfing journal, Switzerland */

:root {
  --bg: #eef2f3;
  --surface: #ffffff;
  --ink: #1b2a30;
  --muted: #55666e;
  --line: #d7dfe2;
  --accent: #2f7dab;      /* glacier blue */
  --accent-dark: #1f5c80;
  --accent2: #a63c2e;     /* alpine red */
  --accent2-soft: #f3e2de;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand .mark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: inline-block;
  transform: translateY(1px);
}

.brand h1 {
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 700;
}

.brand .tagline {
  color: var(--muted);
  font-size: 13px;
}

nav.site {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

nav.site a {
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.site a:hover,
nav.site a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent2);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 46px 0 30px;
  border-bottom: 1px solid var(--line);
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 14px;
  max-width: 620px;
}

.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

/* Content grid */

main { padding: 40px 0 60px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 26px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card:nth-child(even) { border-left-color: var(--accent2); }

.card .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.card h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.card h4 a { color: var(--ink); }
.card h4 a:hover { color: var(--accent-dark); }

.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.card .read-more {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-dark);
}

/* Post page */

.post-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
}

.post-header .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 10px;
}

.post-header h2 { font-size: 30px; margin: 0 0 10px; line-height: 1.25; }
.post-header .sub { color: var(--muted); font-size: 15px; }

.post-body { padding: 30px 0 10px; max-width: 700px; }
.post-body h3 { font-size: 19px; margin: 30px 0 10px; }
.post-body p { margin: 0 0 16px; font-size: 16px; }
.post-body ul { padding-left: 20px; }
.post-body li { margin-bottom: 8px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 8px;
}

@media (max-width: 640px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}

.stat .num { font-size: 18px; font-weight: 700; color: var(--accent-dark); }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.pull {
  border-left: 3px solid var(--accent2);
  background: var(--accent2-soft);
  padding: 14px 18px;
  font-size: 15.5px;
  color: #4a2018;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
}

/* Simple pages */

.page-body { max-width: 680px; padding: 40px 0 60px; }
.page-body h2 { font-size: 26px; margin-top: 0; }
.page-body p { margin: 0 0 16px; font-size: 16px; }

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-list li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 14px 18px;
}

.link-list .name { font-weight: 700; font-size: 15.5px; }
.link-list .name a { color: var(--accent-dark); }
.link-list .desc { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Footer */

footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
