:root {
  /* Arts & Letters Daily inspired color palette */
  --primary-bg: #f9f5e9;       /* Light cream background */
  --secondary-bg: #f2ebd5;     /* Slightly darker cream for content */
  --text-color: #333333;       /* Dark gray for text */
  --text-secondary: #666666;   /* Medium gray for secondary text */
  --accent: #8b0000;           /* Deep red accent (maroon) */
  --white: #fffef7;            /* Off-white */
  --shadow: rgba(0, 0, 0, 0.05);
  
  /* Typography inspired by newspaper/broadsheet */
  --font-main: 'Georgia', 'Times New Roman', serif;
  --h1-size: 2.5rem;
  --h2-size: 1.8rem;
  --h3-size: 1.4rem;
  --text-size: 1rem;
  
  /* Layout dimensions */
  --header-height: 60px;       /* Fixed height for header */
}

body {
  background-color: var(--primary-bg);
  color: var(--text-color);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--h3-size);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #8c7267; /* Darker shade of accent color */
  text-decoration: underline;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

main {
  flex: 1;
  width: 100%;
}

/* Header styles */
.header-content {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--primary-bg); /* Same as body for consistency */
  box-shadow: 0 2px 5px var(--shadow);
  position: relative;
  height: var(--header-height); /* Using CSS variable */
}

.header-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.header-buttons a {
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--secondary-bg);
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.2s;
  width: 100px;
  text-align: center;
}

.header-buttons a:hover {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* Footer styles */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background-color: var(--primary-bg); /* Same as body for consistency */
  color: var(--text-color);
  margin-top: auto;
  box-shadow: 0 -2px 5px var(--shadow);
  height: var(--header-height); /* Using CSS variable */
}

.footer-links {
  display: flex;
  align-items: center;
}

.footer-links a {
  margin-left: 15px;
}

.footer-links img {
  height: 32px;
}

/* Content containers */
.content-container {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 2rem auto;
  padding-bottom: 50px;
  gap: 30px;
}

.single-column .content-container {
  flex-direction: column;
}

.content-column {
  background-color: var(--secondary-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  margin-bottom: 20px;
}

/* Profile picture */
.profile-picture {
  margin: 0 auto;
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-picture img {
  border-radius: 50%;
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-shadow: 0 5px 15px var(--shadow);
  margin: 0 auto;
}

/* Home page specific */
.hero {
  text-align: center;
  padding: 8rem 0 3rem 0; /* Increased top padding to move content lower */
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text {
  margin-top: 1.5rem;
  text-align: center;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.5rem;
}

/* Content sections */
.about, .skills, .featured-projects, .experience, .blog, .interests, .contact-cta {
  margin-bottom: 3rem;
}

.skills-grid, .project-grid, .article-grid, .interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-category, .project-card, .article-card, .interest-item {
  flex: 1;
  min-width: 250px;
  background-color: var(--secondary-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
}

.skill-tag {
  display: inline-block;
  background-color: var(--primary-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin: 0.3rem;
}

.view-all, .cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 5px;
  transition: background-color 0.2s;
}

.view-all:hover, .cta-button:hover {
  background-color: #8c7267; /* Darker shade of accent color */
  color: var(--white);
  text-decoration: none;
}

/* Projects page specific */
.projects .content-column {
  margin-bottom: 1.5rem;
}

.projects .content-column h3 {
  margin-bottom: 0.8rem;
}

.projects .content-column p {
  margin-bottom: 0.5rem;
}

/* Resume page specific */
.resume .experience-item {
  border: 1px solid var(--primary-bg);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: var(--secondary-bg);
  transition: all 0.2s ease;
}

.resume .experience-item:hover {
  box-shadow: 0 5px 15px var(--shadow);
  transform: translateY(-2px);
}

.resume .experience-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.resume .location-date {
  color: var(--text-secondary);
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.resume .certification-images {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.resume .certification-logo {
  width: 100px;
  height: auto;
  transition: transform 0.2s ease;
}

.resume .certification-logo:hover {
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
    width: 90%;
  }
  
  .three-column .content-column,
  .two-column .content-column {
    width: 100%;
    margin-right: 0;
  }
  
  .header-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .profile-picture img {
    width: 200px;
    height: 200px;
  }
  
  .site-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    height: auto;
    padding: 15px 30px;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-links a:first-child {
    margin-left: 0;
  }
}
