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

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

body {
  background-color: #F2F0EB;
  color: #1A1A1A;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1A1A1A;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* ===== Top bar ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

.top-bar-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: #1A1A1A;
  text-decoration: none;
}

.top-bar-name:hover {
  text-decoration: underline;
}

.top-bar-link {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  background: #E9E6DF;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.top-bar-link:hover {
  background: #D6D3CC;
  color: #1A1A1A;
}

/* ===== Layout ===== */
.page-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

main {
  max-width: 1100px;
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #D6D3CC;
}

.hero p {
  font-size: 1.1rem;
  color: #444;
  max-width: 600px;
}

.hero .subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #888;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

/* ===== Sidebar nav (desktop) ===== */
.sidebar-nav {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  width: 200px;
  flex-shrink: 0;
  padding-top: 6rem;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #E9E6DF;
  color: #1A1A1A;
}

/* ===== Mobile pills nav ===== */
.mobile-pills {
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #D6D3CC;
}

.pill-link {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  background: #E9E6DF;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.pill-link:hover {
  background: #D6D3CC;
  color: #1A1A1A;
}

/* ===== Sections ===== */
section {
  margin-bottom: 3.5rem;
}

.section-intro {
  background: #E9E6DF;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
}

.section-note {
  background: #E9E6DF;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

.section-note strong {
  color: #1A1A1A;
}

/* ===== Tool Cards ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tool-card {
  background: #E9E6DF;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-1px);
}

.tool-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
  line-height: 1.4;
}

.tool-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #D6D3CC;
}

.book-cover {
  width: 48px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  background: #D6D3CC;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tool-content {
  flex: 1;
  min-width: 0;
}

.tool-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.tool-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.tool-name a {
  text-decoration: none;
}

.tool-name a:hover {
  text-decoration: underline;
}

.tool-tag {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
}

.price-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  line-height: 1.4;
  vertical-align: middle;
}

.price-tag--gratis {
  background: #D4EDDA;
  color: #1B5E20;
}

.price-tag--freemium {
  background: #FFF3CD;
  color: #7A5D00;
}

.price-tag--betaald {
  background: #F0E0D0;
  color: #6D4C2A;
}

.tool-desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* ===== Simple list cards (websites, books, templates) ===== */
.simple-card {
  background: #E9E6DF;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.simple-card:hover {
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}

.simple-card .tool-content {
  flex: 1;
}

/* ===== Link lists ===== */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.link-list li {
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
}

.link-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #999;
}

/* ===== Books section ===== */
.book-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.book-list .simple-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
}

.book-list .book-cover {
  width: 100px;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.book-list .tool-header {
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.book-list .tool-name {
  font-size: 0.9rem;
}

.book-list .tool-desc {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #D6D3CC;
  max-width: 820px;
  margin: 0 auto;
}

footer a {
  color: #888;
}

/* ===== Button style ===== */
.btn-outline {
  display: inline-block;
  padding: 0.55rem 1.5rem;
  border: 1.5px solid #1A1A1A;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #1A1A1A;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: #1A1A1A;
  color: #F2F0EB;
}

/* ===== Dark mode ===== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1A1A1A;
    color: #E8E6E1;
  }

  a { color: #E8E6E1; }

  .hero p,
  .tool-desc,
  .section-intro,
  .simple-card .tool-desc { color: #B0ADA6; }

  .hero .subtitle { color: #888; }
  .hero { border-bottom-color: #333; }

  .tool-card,
  .simple-card,
  .section-intro,
  .section-note { background: #252422; }

  .section-note { color: #999; }
  .section-note strong { color: #E8E6E1; }

  .tool-icon,
  .book-cover { background: #333; }

  .tool-tag { color: #777; }

  .price-tag--gratis { background: #1B3A24; color: #81C784; }
  .price-tag--freemium { background: #3A3019; color: #D4A94A; }
  .price-tag--betaald { background: #3A2A1A; color: #C9A67A; }

  .sidebar-nav a { color: #999; }
  .sidebar-nav a:hover,
  .sidebar-nav a.active { background: #252422; color: #E8E6E1; }

  .top-bar-name { color: #E8E6E1; }
  .top-bar-link { background: #252422; color: #999; }
  .top-bar-link:hover { background: #333; color: #E8E6E1; }

  .pill-link { background: #252422; color: #999; }
  .pill-link:hover { background: #333; color: #E8E6E1; }
  .mobile-pills { border-bottom-color: #333; }

  .btn-outline { border-color: #E8E6E1; color: #E8E6E1; }
  .btn-outline:hover { background: #E8E6E1; color: #1A1A1A; }

  footer { border-top-color: #333; color: #666; }
  footer a { color: #666; }

  .link-list li::before { color: #555; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sidebar-nav {
    display: none;
  }

  .hero {
    border-bottom: none;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
  }

  .mobile-pills {
    display: flex;
  }

  .page-wrapper {
    padding: 2rem 1.25rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .book-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .book-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.8rem;
  }

  .tool-card,
  .simple-card {
    padding: 1rem 1.15rem;
  }

  .tool-emoji {
    font-size: 1.3rem;
  }
}
