html, body {
    margin: 0;
    padding: 0;
    height: 100%;
  }
h1{
    font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.6rem, 5vw, 4.8rem); 
  color: #fefae0;
  margin: 0;
  padding-left: clamp(1.5rem, 4vw, 3rem); 
  position: relative;
  z-index: 2;
}

body {
    background-color: #606c38;
  }

  .homepage{
    background-image: url("images/homepage.jpg");
    min-height: 85vh;    
    background-size: cover;             
    background-position: center;        
    background-repeat: no-repeat;
    display: flex;                      
    align-items: flex-end;              
    padding: 4rem 2rem; 
    padding-top: 64px;    
    border: none;
    border-radius: 0;
    overflow: hidden;  
    height: 80vh;
    position: relative;           
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(233, 236, 226, 0.55);  
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;     
    height: 64px;             
  }
  
  .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(1rem, 4vw, 3rem); 
    align-items: center;
    justify-content: center;
  }
  
  .nav a {
    font-family: "Inria Serif", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #2f352a;
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
  }
  
  .nav a:hover,
  .nav a:focus {
    background: rgba(0, 0, 0, 0.07);
    outline: none;
  }

    .nav a[aria-current="page"],
    .nav a.active {
    font-weight: 700;
    color: #1b1b1b; 
}

  .info {
    background-color: #606c38; 
    color: #fefae0;            
    padding: 5rem 2rem;        
    display: flex;
    justify-content: center;
  }
  
  .info .text {
    max-width: 800px;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
  }
  
  .info h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .info p {
    margin-bottom: 1.2rem;
  }

  .history {
    background-image: url("images/history.jpg");
    min-height: 85vh;    
    background-size: cover;             
    background-position: center;        
    background-repeat: no-repeat;
    display: flex;                      
    align-items: flex-end;              
    padding: 4rem 2rem;    
    border: none;
    border-radius: 0;
    overflow: hidden;  
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem;
    padding-top: 64px; 
    position: relative; 
  }

.tourism {
    display: flex;
    flex-direction: row;      
    align-items: stretch;     
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
  }
  
  .tourism-text {
    background-color: #FEFAE0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: flex-start;   
    text-align: left;          
    padding: 0 6rem;           
    color: #283618;
    max-width: 800px;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
  }
  
  .tourism-text h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .tourism-text p {
    max-width: 40ch;
    margin-bottom: 1rem;
  }
  
  .tourism-image {
    flex: 1.5;                   
    background-image: url("images/tourism.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .geo {
    background-image: url("images/geography.jpg");
    min-height: 85vh;    
    background-size: cover;             
    background-position: center;        
    background-repeat: no-repeat;
    display: flex;                      
    align-items: flex-end;              
    padding: 4rem 2rem;    
    border: none;
    border-radius: 0;
    overflow: hidden;  
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem;
    padding-top: 64px; 
    position: relative; 
  }

  .habitats {
    background-image: url("images/habitats.jpg");
    min-height: 85vh;    
    background-size: cover;             
    background-position: center;        
    background-repeat: no-repeat;
    display: flex;                      
    align-items: flex-end;              
    padding: 4rem 2rem;    
    border: none;
    border-radius: 0;
    overflow: hidden;  
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem;
    padding-top: 64px; 
    position: relative; 
  }

  .activities {
    background-image: url("images/activities.jpg");
    min-height: 85vh;    
    background-size: cover;             
    background-position: center;        
    background-repeat: no-repeat;
    display: flex;                      
    align-items: flex-end;              
    padding: 4rem 2rem;    
    border: none;
    border-radius: 0;
    overflow: hidden;  
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem;
    padding-top: 64px; 
    position: relative; 
  }

  .rocks {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }
  
  .rocks-text {
    background-color: #FEFAE0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: flex-start;   
    text-align: left;          
    padding: 0 6rem;           
    color: #283618;
    max-width: 800px;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
  }
  
  .rocks-text h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .rocks-text p {
    max-width: 40ch;
    margin-bottom: 1rem;
  }
  
  .rocks-image {
    flex: 1.5;                   
    background-image: url("images/rocks.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .ice {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    width: 100%;
    min-height: 100vh; 
    margin: 0;
    padding: 0;
  }
  
  .ice-text {
    order: 2;
    background-color: #FEFAE0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: flex-start;   
    text-align: left;          
    padding: 0 6rem;           
    color: #283618;
    max-width: 800px;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
  }

  .ice-text h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .ice-text p {
    max-width: 40ch;
    margin-bottom: 1rem;
  }
  
  .ice-image {
    order: 1;
    flex: 1.5;                   
    background-image: url("images/ice.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .wildlife {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    width: 100%;
    min-height: 100vh; 
    margin: 0;
    padding: 0;
  }
  
  .wildlife-text {
    background-color: #FEFAE0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: flex-start;   
    text-align: left;          
    padding: 0 6rem;           
    color: #283618;
    max-width: 800px;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
  }
  
  .wildlife-text h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .wildlife-text p {
    max-width: 40ch;
    margin-bottom: 1rem;
  }
  
  .wildlife-image {
    flex: 1.5;                   
    background-image: url("images/wildlife.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hiking {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    width: 100%;
    min-height: 100vh; 
    margin: 0;
    padding: 0;
  }
  
  .hiking-text {
    background-color: #FEFAE0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: flex-start;   
    text-align: left;          
    padding: 0 6rem;           
    color: #283618;
    max-width: 800px;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
  }
  
  .hiking-text h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .hiking-text p {
    max-width: 40ch;
    margin-bottom: 1rem;
  }
  
  .hiking-image {
    flex: 1.5;                   
    background-image: url("images/hiking.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .yosemite-image {
    width: 100%;
    height: 95vh; 
    background-image: url("images/yosemite.jpg"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
  }

  .climate {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    width: 100%;
    min-height: 100vh; 
    margin: 0;
    padding: 0;
  }
  
  .climate-text {
    background-color: #FEFAE0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: flex-start;   
    text-align: left;          
    padding: 0 6rem;           
    color: #283618;
    max-width: 800px;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
  }
  
  .climate-text h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .climate-text p {
    max-width: 40ch;
    margin-bottom: 1rem;
  }
  
  .climate-image {
    flex: 1.5;                   
    background-image: url("images/rocks.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

.sources {
    background-color: #606c38;     
    padding: 4rem 2rem;
    text-align: center;            
    color: #FEFAE0;               
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
  }
  
  
  .sources h2 {
    font-family: "Instrument Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1.5rem;
    color: #FEFAE0;
  }
  
  .sources ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;              
    display: flex;
    flex-direction: column;
    gap: 1rem;                     
  }
  
  .sources ul li a {
    text-decoration: none;
    color: #FEFAE0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    border-bottom: 1px solid rgba(40,54,24,0.2);
    padding-bottom: 0.3rem;
    transition: 0.2s ease;
  }
  
  .sources ul li a:hover {
    color: #606C38;
    border-bottom-color: #606C38;
  }

  @media (max-width: 768px) { 
    .sources {          
      padding-left: 1.4rem;
      padding-right: 1.4rem;
    }
  }

@media (max-width: 900px) {

    .topbar {
      height: auto;
      padding: 0.25rem 0;
    }
  
    .nav {
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.6rem 1.2rem;
      padding: 0.5rem 1rem;
    }
  
    .nav a {
      font-size: 0.85rem;
      padding: 0.25rem 0.4rem;
    }
  
    .homepage,
    .history,
    .geo,
    .habitats,
    .activities {
      min-height: 60vh;
      height: auto;
      align-items: center;
      padding: 4rem 1.5rem 2.5rem;
    }
  
    .info {
      padding: 3.5rem 1.5rem;
    }
  
    .info .text {
      max-width: 100%;
    }
  
    .tourism,
    .rocks,
    .ice,
    .wildlife,
    .hiking,
    .climate {
      display: block;                    
      height: auto;
    }
  
    .tourism-text,
    .rocks-text,
    .ice-text,
    .wildlife-text,
    .hiking-text,
    .climate-text {
      max-width: 100%;
      padding: 2.5rem 1.8rem;             
    }
  
    .tourism-image,
    .rocks-image,
    .ice-image,
    .wildlife-image,
    .hiking-image,
    .climate-image {
      width: 100%;
      height: 45vh;
    }
  
    .yosemite-image {
      height: 60vh;
    }
  }
  
  @media (max-width: 600px) {
  
    .nav {
      gap: 0.4rem 0.8rem;
    }
  
    .nav a {
      font-size: 0.78rem;
    }
  
    h1 {
      font-size: clamp(2.2rem, 7vw, 3.2rem);
      padding-left: 1.25rem;
    }
  
    .tourism-text,
    .rocks-text,
    .ice-text,
    .wildlife-text,
    .hiking-text,
    .climate-text,
    .info .text {
      padding: 2rem 1.4rem;
    }
  
    .tourism-text h2,
    .rocks-text h2,
    .ice-text h2,
    .wildlife-text h2,
    .hiking-text h2,
    .climate-text h2,
    .info h2 {
      font-size: 1.3rem;
    }
  
    .yosemite-image {
      height: 50vh;
    }
  
    .sources {
      padding: 3rem 1.4rem;
    }
  }

  @media (max-width: 900px) {
    .tourism,
    .rocks,
    .ice,
    .wildlife,
    .hiking,
    .climate {
      display: block;
      min-height: auto;
    }
  
    .tourism-text,
    .rocks-text,
    .ice-text,
    .wildlife-text,
    .hiking-text,
    .climate-text {
      max-width: 100%;
      padding: 2.5rem 1.5rem;
    }
  
    .tourism-image,
    .rocks-image,
    .ice-image,
    .wildlife-image,
    .hiking-image,
    .climate-image {
      width: 100%;
      height: 40vh;
    }
  }

  @media (max-width: 900px) {
    .rocks {
      display: block;       
    }
  
    .rocks-text {
      padding: 2.5rem 1.5rem 3rem; 
    }
  
    .rocks-image {
      width: 100%;
      height: 45vh;
      margin: 0;             
    }
  }
