/*
Theme Name: Rachel Portfolio
Theme URI: https://example.com
Author: Rachel Gillespie
Author URI: https://example.com
Description: Custom portfolio theme built from scratch for Rachel Gillespie's personal site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rachel-portfolio
*/

/* ==========================================================================
   1. Reset / base
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #fdfdfd;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a1a1a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   2. Layout
   ========================================================================== */

.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 32px 0;
  border-bottom: 1px solid #e5e5e5;
}

.site-header .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  font-size: 1.4rem;
  font-weight: 700;
}

.main-navigation ul {
  display: flex;
  gap: 24px;
}

.main-navigation a {
  font-weight: 500;
}

.site-footer {
  padding: 32px 0;
  margin-top: 64px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.9rem;
  color: #666;
}

/* ==========================================================================
   3. Front page / hero
   ========================================================================== */

.hero {
  padding: 80px 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   4. Projects grid
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  padding: 48px 0;
}

.project-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

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

.project-card .project-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-card .project-content {
  padding: 16px;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

/* ==========================================================================
   5. Single project
   ========================================================================== */

.single-project .project-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.single-project .project-content {
  max-width: 700px;
}

.project-live-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 12px 0 24px;
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.project-live-link:hover {
  background-color: #333;
  text-decoration: none;
}

/* ==========================================================================
   6. GitHub repos grid
   ========================================================================== */

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.repo-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
}

.repo-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.repo-description {
  color: #444;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.repo-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #666;
}

.repo-language {
  background-color: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.repos-footer {
  margin-top: 8px;
}
