/* ==========================================================================
   Global Variables & Reset
   ========================================================================== */
:root {
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-primary: #faf9f6;
  --bg-card: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px -5px rgba(0,0,0,0.08);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  padding: 0 1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

header h1 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Homepage Project Grid
   ========================================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Individual Project Pages
   ========================================================================== */
.project-container {
  max-width: 760px;
  margin: 2rem auto 4rem;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.back-link {
  display: inline-block;
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent-gold-hover);
}

.hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 10px;
  margin: 1.5rem 0 2rem;
}

.materials-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2.5rem;
}

.materials-box h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.materials-box ul {
  list-style: none;
}

.materials-box li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.materials-box li:last-child {
  border-bottom: none;
}

.materials-box a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.materials-box a:hover {
  text-decoration: underline;
}