/* 

MARYANA SHNITSER — PORTFOLIO STYLESHEET

*/

:root {

/* ----------------------------------------------------------------
Colors, fonts, spacing
---------------------------------------------------------------- */


  --color-bg:        #efece2;  
  --color-surface:   #F7F5F0;   
  --color-text:      #401a1a;   
  --color-muted:     #6B6B6B;   
  --color-accent:    #3D6B4F;  
  --color-accent-lt: #EAF1EC;   
  --color-border:    #E0DDD6;  

  --font-display: 'Cormorant Garamond', Georgia, serif;  
  --font-body:    'Inter', system-ui, sans-serif;        

  --max-width: 1100px;
  --nav-height: 70px;
}


/* ----------------------------------------------------------------
Reset and base styles
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.banner {
  width: 100%;
  max-height: 200px;     
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 150px;         
  object-fit: cover;   
  object-position: center;  
}

/* ----------------------------------------------------------------
Navigation bar
---------------------------------------------------------------- */
nav {
  position: sticky;        
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  max-width: 100%;
}

.nav-name a {
  color: var(--color-text);
  text-decoration: none;
}

.nav-name a:hover {
  color: var(--color-text);
}

.nav-name {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 1.75rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  /*text-transform: uppercase;*/
}
.nav-name p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: -0.5rem;
}

.nav-name:hover {
  text-decoration: none;
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover,
nav ul a.active {
  color: var(--color-accent);
  text-decoration: none;
}

/* ----------------------------------------------------------------
Main Layout 
---------------------------------------------------------------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

/* ----------------------------------------------------------------
About Section (side by side photo and text)
---------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 350px 1fr;  
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.about-photo img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 2/3;             
  filter: saturate(1);        
  margin-top: 10px;
}

.about-text h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font-size: 1rem;
}

.about-text strong {
  font-weight: 500;
  color: var(--color-accent);
}


.about-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* ----------------------------------------------------------------
Buttons (Contact, Resume, CV)
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: var(--color-accent);
  color: #fff;
  border: 1.5px solid var(--color-accent);
}

.btn:hover {
  background: #2d5239;
  border-color: #2d5239;
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent-lt);
  color: var(--color-accent);
  border-color: var(--color-accent);
}


/* ----------------------------------------------------------------
Personal About Section 
---------------------------------------------------------------- */
.personal {
  border-top: 1px solid var(--color-border);
  /*border-bottom: 1px solid var(--color-border);*/
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
  
  text-align: center
}

.personal p {
  color: var(--color-muted);
  /* font-style: italic; */
  font-size: 1rem;
  line-height: 1.8;
}


/* ----------------------------------------------------------------
Personal Photos 
---------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 columns of photos */
  gap: 1rem;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
  transition: opacity 0.2s;
}

.photo-item img:hover {
  opacity: 0.88;
}


/* ----------------------------------------------------------------
Footer
---------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer a {
  font-size: 0.875rem;
  color: var(--color-muted);
}

footer p {
  font-size: 0.8rem;
  color: var(--color-muted);
}


/* ----------------------------------------------------------------
RESPONSIVE TO SCREEN SIZE 
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;   /* stack photo above text on mobile */
    gap: 2rem;
  }

  .about-photo img {
    max-width: 220px;
    margin: 0 auto;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  nav ul {
    gap: 1rem;
  }
}
