/* Repair × Kitchen L3 Palette */
:root {
  --rk-rust: #B85A2A;
  --rk-terra: #A85C4A;
  --rk-warm-bg: #FEF5F0;
  --rk-dark: #2C2C2C;
  --rk-light: #FAFAF8;
  --rk-accent: #D97E3A;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: var(--rk-light);
  color: var(--rk-dark);
  line-height: 1.6;
}

/* Hero Section */
.rk-hero {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--rk-rust) 0%, var(--rk-terra) 100%);
  color: white;
  text-align: center;
}

.rk-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.rk-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Top 5 Cards */
.rk-top5 {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rk-top5 h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--rk-dark);
}

.rk-top5-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.rk-card {
  background: white;
  border-left: 4px solid var(--rk-rust);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.rk-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.rk-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.rk-card a {
  color: var(--rk-rust);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--rk-rust);
}

.rk-card a:hover {
  color: var(--rk-accent);
  border-bottom-color: var(--rk-accent);
}

.rk-card p {
  font-size: 0.95rem;
  color: #666;
}

/* Search Section */
.rk-search {
  background: var(--rk-warm-bg);
  padding: 3rem 2rem;
  text-align: center;
}

.rk-search h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--rk-dark);
}

.rk-search p {
  color: #666;
  margin-bottom: 1.5rem;
}

.rk-search-input {
  max-width: 500px;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--rk-rust);
  border-radius: 4px;
  background: white;
  transition: border-color 0.3s ease;
}

.rk-search-input:focus {
  outline: none;
  border-color: var(--rk-accent);
  box-shadow: 0 0 0 3px rgba(217, 126, 58, 0.1);
}

/* Contributors */
.rk-contributors {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rk-contributors h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--rk-dark);
}

.rk-contrib-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.rk-contrib-card {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  border-top: 3px solid var(--rk-terra);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rk-contrib-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--rk-dark);
}

.rk-contrib-role {
  font-size: 0.85rem;
  color: var(--rk-rust);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.rk-contrib-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Toolkit */
.rk-toolkit {
  background: var(--rk-warm-bg);
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rk-toolkit h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--rk-dark);
}

.rk-toolkit ul {
  list-style: none;
}

.rk-toolkit li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #666;
}

.rk-toolkit li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rk-rust);
}

.rk-toolkit strong {
  color: var(--rk-dark);
}

/* Mistakes */
.rk-mistakes {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rk-mistakes h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--rk-dark);
}

.rk-mistakes ol {
  margin-left: 1rem;
  color: #666;
}

.rk-mistakes li {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.rk-mistakes strong {
  color: var(--rk-dark);
}

/* Sisters / Related Links */
.rk-sisters {
  background: var(--rk-warm-bg);
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rk-sisters h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--rk-dark);
}

.rk-sisters p {
  margin-bottom: 1rem;
  color: #666;
}

.rk-sisters a {
  color: var(--rk-rust);
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5rem;
}

.rk-sisters a:hover {
  color: var(--rk-accent);
  text-decoration: underline;
}

/* Colophon */
.rk-colophon {
  padding: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid #E0E0E0;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .rk-hero {
    padding: 2rem 1rem;
  }

  .rk-hero h1 {
    font-size: 1.8rem;
  }

  .rk-hero p {
    font-size: 1rem;
  }

  .rk-top5,
  .rk-contributors,
  .rk-toolkit,
  .rk-mistakes,
  .rk-sisters {
    padding: 2rem 1rem;
  }

  .rk-top5 h2,
  .rk-contributors h2,
  .rk-toolkit h2,
  .rk-mistakes h2,
  .rk-sisters h2 {
    font-size: 1.4rem;
  }

  .rk-top5-cards,
  .rk-contrib-cards {
    grid-template-columns: 1fr;
  }
}
