/* ============================================================
   timowen.me — Shared Design System
   Harmonizes across /index.html, /saxophone/, /it/
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&family=Source+Code+Pro:wght@400;600&display=swap');

/* ── Tokens ── */
:root {
  --navy:       #1b2a4a;
  --navy-mid:   #243358;
  --navy-light: #2e4070;
  --gold:       #c4973e;
  --gold-light: #ddb96a;
  --cream:      #f9f6f0;
  --warm-white: #fdfbf8;
  --text:       #1e1e1e;
  --text-muted: #5a5a5a;
  --rule:       #ddd4c0;
  --shadow:     0 2px 16px rgba(27,42,74,.10);
  --shadow-lg:  0 6px 32px rgba(27,42,74,.16);
  --radius:     6px;
  --max-w:      860px;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Source Sans 3', system-ui, sans-serif;
  --mono:       'Source Code Pro', 'Courier New', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Site Header ── */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.025) 40px,
    rgba(255,255,255,.025) 41px
  );
  pointer-events: none;
}
.site-header .eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.site-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.site-header .subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin: 0 auto 18px;
}
.site-header .contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
}
.site-header .contact-bar a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color .2s;
}
.site-header .contact-bar a:hover { color: #fff; }
.site-header .contact-bar span { color: rgba(255,255,255,.3); }

/* ── Nav strip ── */
.nav-strip {
  background: var(--navy-mid);
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 24px;
}
.nav-strip a {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 10px 18px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-strip a:hover { color: #fff; }
.nav-strip a.active { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ── Content sections ── */
.section {
  margin-top: 44px;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 22px;
}

/* ── Experience entries ── */
.entry { margin-bottom: 28px; }
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}
.entry-role {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}
.entry-dates {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.entry-org {
  font-style: italic;
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 6px;
}
.entry ul {
  padding-left: 1.3em;
  font-size: .93rem;
}
.entry li { margin-bottom: 4px; }
.entry li a { color: var(--navy-light); }

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.skill-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.skill-card h4 {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.skill-card ul {
  list-style: none;
  font-size: .85rem;
  color: var(--text-muted);
}
.skill-card li::before { content: '– '; }

/* ── Tags ── */
.tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: .72rem;
  padding: 2px 9px;
  border-radius: 3px;
  margin: 2px 3px 2px 0;
  letter-spacing: .05em;
}

/* ── Education ── */
.edu-entry { margin-bottom: 20px; }
.edu-degree { font-weight: 600; color: var(--navy); }
.edu-school { font-style: italic; color: var(--text-muted); font-size: .92rem; }
.edu-note { font-size: .88rem; color: var(--text-muted); margin-top: 2px; }

/* ── Project cards ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 4px;
}
.project-card {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--cream);
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.project-card h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.project-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 10px; }
.project-card a {
  font-size: .85rem;
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: none;
}
.project-card a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--rule);
  padding: 24px 24px 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.site-footer a { color: var(--navy-light); }

/* ── Utilities ── */
a { color: var(--navy-light); }
p { margin-bottom: .8em; }

@media (max-width: 600px) {
  .skills-grid, .project-grid { grid-template-columns: 1fr; }
  .entry-header { flex-direction: column; }
  .nav-strip { flex-wrap: wrap; }
}