

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #f4f1ec;        
  --text: #1f1a1a;      
  --accent: #8a4b4f;    
  --muted: #6b6060;     
  --line: #d9d2c9;      
  --nav-width: 180px;
}

body {
  margin: 0;                                   
  font-family: "Inter", system-ui, sans-serif; 
  font-size: 1rem;                             
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent);
}

h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.25rem; }

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

a { color: var(--accent); }


/* PAGE LAYOUT */

.page {
  display: grid;
  grid-template-columns: 1fr var(--nav-width); 
  min-height: 100vh;                           
}

main {
  padding: 4rem 5vw;
}


/* SIDE NAVIGATION*/

.side-nav {
  position: sticky;   
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;  
  gap: 1.25rem;
  padding: 4rem 2rem;
  border-left: 1px solid var(--line);
}

.side-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1.1rem;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--accent);
}

.side-nav a.active {
  font-weight: 600;
}


/* NAME AND PHOTO */

.hero {
  display: flex;              
  align-items: center;       
  justify-content: space-between;
  gap: 3rem;
  min-height: 80vh;
}

.hero h1 {
  font-size: 8rem;
  line-height: 0.95;
  margin: 0 0 1.5rem;
}

.tagline {
  font-size: 1.2rem;
  margin: 0;
}

.email {
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;  
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;      
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-photo {
  flex: 0 1 380px;   
}

.hero-photo img {
  width: 100%;
  border-radius: 6px;
}




.about {
  max-width: 650px;   
  padding-top: 2rem;
}

.link-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
}

/* PROJECTS PAGE */

.project {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  max-width: 900px;
}

.project img {
  flex: 0 0 300px;     
  width: 300px;
  border-radius: 6px;
}

.project h2 { margin-top: 0; }

.project-meta {
  color: var(--muted);
  font-weight: 600;
  margin-top: 0;
}

.tags {
  color: var(--muted);
  font-size: 0.9rem;
}


/* CONTACT PAGE */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;            
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.contact-form button {
  align-self: flex-start;   
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
}



body.dark {
  --bg: #1c1818;
  --text: #eee6e0;
  --accent: #d9a0a4;
  --muted: #b0a5a5;
  --line: #3a3232;
}

.theme-btn {
  margin-top: auto;   
  align-self: flex-start;
  font: inherit;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: none;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* TRAVELS PAGE */

.travel-intro {
  max-width: 650px;
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   
  gap: 2.5rem;
  max-width: 900px;
  margin-top: 2rem;
}

.travel-card img {
  width: 100%;
  border-radius: 6px;
}

.travel-card h2 {
  margin: 1rem 0 0;
}

.travel-place {
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

@media (max-width: 800px) {
  .page {
    grid-template-columns: 1fr;   
  }

  .side-nav {
    order: -1;                    
    height: auto;
    flex-direction: row;          
    padding: 1rem 5vw;
    border-left: none;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: static;             
  }

  main { padding: 2rem 5vw; }

  .hero h1 { font-size: 4rem; }

  .theme-btn { margin-top: 0; margin-left: auto; }

  .hero {
    flex-direction: column;       
    align-items: flex-start;
    min-height: auto;
  }

  .hero-photo { width: 100%; max-width: 380px; }

  .project { flex-direction: column; }

  .travel-grid { grid-template-columns: 1fr; }
  .project img { width: 100%; flex-basis: auto; }
}
