/*
 * thoughtworks.css — Migrated from elizaga.dev/pay design system
 * Navy header bar, card shadows, Lora + Open Sans, responsive
 */

:root {
  --navy: #070D4A;
  --pink: #ef5ba1;
  --text: #303633;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --max-w: 720px;
}

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400;1,700&family=Open+Sans:wght@400;600;700&display=swap');

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

body {
  font-family: 'Lora', serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header bar (from pay) --- */
.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--pink);
  padding: 1rem 1.5rem;
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header a {
  color: white;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}
.site-header .site-name {
  font-size: 1.25rem;
  font-weight: 400;
}
.site-header .site-name:hover { color: var(--pink); }
.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}
.site-header nav a {
  font-size: 0.85rem;
  opacity: 0.8;
}
.site-header nav a:hover { opacity: 1; color: var(--pink); }

/* --- Main content --- */
.site-main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* --- Section headings --- */
.section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

/* --- Book cards --- */
.book-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.book-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-1px);
}
.book-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.book-meta {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.6rem;
}
.book-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.75rem;
}
.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.book-tag {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: lowercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
}

/* --- Series callout --- */
.series-callout {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--pink);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}
.series-callout h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.series-callout p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}
.series-callout a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
}
.series-callout a:hover {
  color: var(--pink);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #aaa;
  font-family: 'Open Sans', sans-serif;
}
.site-footer a { color: #888; text-decoration: none; }
.site-footer a:hover { color: var(--navy); }

/* --- Mobile --- */
@media (max-width: 600px) {
  .site-main { padding: 1.5rem 1rem; }
  .page-title { font-size: 1.4rem; }
  .site-header nav ul { gap: 0.75rem; }
  .site-header nav a { font-size: 0.75rem; }
  .book-card { padding: 1.25rem; }
}
