:root{
  --bg: #efe8d8; /* beige */
  --card-bg: #fffdf6;
  --accent: #2f6b45; /* earthy green */
  --muted: #7a6f56;
  --text: #07120f; /* near-black */
}

/* Font: Aptos narrow requested by user. If not available on host, browsers will use the fallbacks. */
body{
  font-family: 'Aptos', 'Aptos Narrow', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: keep nav at top and center main content */
body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero / profile card */
.hero-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1 0 auto; /* expand to fill available space between nav and footer */
}

/* Shared centered container used for profile and quick-links to align edges */
.site-container{
  max-width:1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

.profile-card{
  width:100%;
  background: linear-gradient(180deg, var(--card-bg) 0%, #f7f4ea 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2/3 details, 1/3 photo */
  gap: 1rem;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.profile-details h1{
  margin: 0 0 0.4rem 0;
  font-size: 2.2rem;
  color: var(--text);
}
.profile-details .lead{
  margin: 0 0 0.8rem 0;
  color: var(--accent);
  font-weight: 600;
}

/* Social links (LinkedIn, GitHub) in the profile card */
.social-links{
  display:flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:8px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  transition: background 160ms, color 160ms, transform 140ms;
}
.social-link svg{ width:20px; height:20px; min-width: 20px; min-height: 20px;}
.social-link:hover{ background: rgba(47,107,69,0.08); color: var(--accent); transform: translateY(-3px); }
.social-link:focus{ outline: 3px solid rgba(47,107,69,0.12); outline-offset: 2px; }


.profile-photo{
  display:flex;
  align-items:center;
  justify-content:center;
}
.profile-photo img{
  width:100%;
  height:100%;
  max-height:360px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

@media (max-width:820px){
  .profile-card{ grid-template-columns: 1fr; }
  .profile-photo img{ max-height:260px; }
}

.site-nav{
  width: 100%;
  background: linear-gradient(180deg, rgba(47,107,69,0.06), rgba(47,107,69,0.03));
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-inner{
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0.8rem 1rem;
}

.brand{
  color: var(--text);
  text-decoration:none;
  font-weight:700;
}

/* Make the brand highlight like nav links on hover */
.brand{
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition: background 160ms, color 160ms;
}
.brand:hover{
  background: rgba(47,107,69,0.08);
  color: var(--accent);
}
.brand:focus{
  outline: 3px solid rgba(47,107,69,0.12);
  outline-offset: 2px;
}

.nav-links{ list-style: none; margin: 0; padding: 0; display:flex; gap: 1rem; }
.nav-links a{
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition: background 160ms, color 160ms;
}
.nav-links a:hover{ background: rgba(47,107,69,0.08); color: var(--accent); }

/* Email styling similar to previous but matching theme */
.email{ color: var(--text); font-weight:600; }

/* Provide a CSS hook where users can set a background image for the photo */
#photo{
  /* Example: uncomment and set to your photo path
     background-image: url('/images/me.jpg'); */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Responsive content centering for inner content */
main{ display: block; }

/* Utility: center elements */
.mx-auto{ margin-left:auto; margin-right:auto; }

/* Fun page grid */
.fun-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.fun-card{ padding: 1rem; border-radius: 10px; background: var(--card-bg); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }

/* small screens: keep nav on one row; allow horizontal scroll for links if needed */
@media (max-width:520px){
  .nav-inner{ flex-wrap: nowrap; gap: 0.4rem; align-items: center; }
  .brand{ flex: 0 0 auto; }
  .nav-links{ display:flex; gap:0.6rem; flex: 1 1 auto; justify-content: flex-end; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-links a{ padding: 0.4rem 0.5rem; white-space: nowrap; }
}
/* hide visible scrollbars on small devices but keep touch scroll */
@media (max-width:520px){
  .nav-links{ scrollbar-width: none; -ms-overflow-style: none; }
  .nav-links::-webkit-scrollbar{ width: 0; height: 0; }
}

/* Quick links on home page */
.quick-links{
  /* Use the shared .site-container to align edges; quick-links itself only defines the grid */
  margin: 1.5rem auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* increased whitespace between cards */
}
.quick-card{
  display:block;
  background: var(--card-bg);
  color: var(--text);
  padding: 1.15rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
.quick-card{ width:100%; box-sizing: border-box; }
.quick-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.09);
  /* stronger earthy green tint on hover to signal interactivity */
  background: linear-gradient(180deg, rgba(47,107,69,0.12), rgba(47,107,69,0.08)), var(--card-bg);
  border: 1px solid rgba(47,107,69,0.12);
}

/* keyboard focus styling */
.quick-card:focus{
  outline: 3px solid rgba(47,107,69,0.12);
  outline-offset: 2px;
}
.quick-card h3{ margin:0 0 0.4rem 0; }
.quick-card p{ margin:0; color: var(--muted); }

@media (max-width:820px){
  .quick-links{ grid-template-columns: 1fr; }
}
