/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text:        #1a1a1a;
  --muted:       #6b7280;
  --bg:          #ffffff;
  --bg-subtle:   #f5f4f2;
  --border:      #e5e7eb;
  --accent:      #1a1a1a;
  --accent-hover:#444;
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max-w:       1100px;
  --radius:      6px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 2rem;
}

.site-logo {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 1rem;
}

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

/* ─── Section titles ────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* ─── Work cards ────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1100px) {
  .work-grid { grid-template-columns: repeat(4, 1fr); }
}

.work-card {
  display: block;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  background: var(--bg);
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  border-color: #ccc;
  color: inherit;
}

.work-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.work-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.work-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Clients banner ────────────────────────────────────────── */
.section--clients { padding: 2.5rem 0; }

.clients-img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  height: auto;
  opacity: 0.75;
  filter: grayscale(100%);
}

/* ─── Substack origin note ──────────────────────────────────── */
.substack-origin {
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding: 0.5rem 0.75rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ─── Blog highlight ────────────────────────────────────────── */
.post-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 640px) {
  .post-highlight { grid-template-columns: 1fr; gap: 1.5rem; }
}

.post-highlight-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.post-highlight h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.post-highlight p {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-highlight a.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--text);
  padding-bottom: 1px;
}

/* ─── Video placeholder ─────────────────────────────────────── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.video-wrap iframe,
.video-wrap .video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-placeholder svg {
  opacity: 0.3;
  width: 48px;
  height: 48px;
}

/* ─── Page hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a { color: var(--muted); }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 700px;
}

.page-hero p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

/* ─── Prose (markdown content) ─────────────────────────────── */
.prose {
  max-width: 680px;
  font-size: 1rem;
}

.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.prose p  { margin-bottom: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.3rem; }
.prose blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
  font-style: italic;
}

/* ─── Photo grid ────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.photo-item {
  aspect-ratio: 4/3;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Activity cards (sport / music) ───────────────────────── */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.activity-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.activity-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.activity-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Blog list ─────────────────────────────────────────────── */
.post-list { list-style: none; }

.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

.post-list a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.post-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-date {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Contacts ──────────────────────────────────────────────── */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  font-weight: 500;
}

.contact-link:hover { border-color: var(--text); background: var(--bg-subtle); color: inherit; }

.contact-link-label { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  background: var(--bg-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { font-size: 0.9rem; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 1.1rem; }
  .hero { padding: 3rem 0 2rem; }
}
