/*Name: Sarah Tokarz
  Project: Personal Resume Website
  File: styles.css*/


/*Color Palette & Base*/


:root {
  --deep-green: #093d1b;    
  --sage: #9bb89f;    
  --earth: #c9a86a;          
  --cream: #f7f3ea;          
  --paper: #fdfbf7;          
  --text-dark: #1f2933;      
  --text-soft: #324436;    
  --text-light: #fdfbf7;    
}


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


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream);
}


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


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


a:hover,
a:focus {
  text-decoration: underline;
}


/*Layout Helpers*/


.container {
  width: min(960px, 100% - 2rem);
  margin-inline: auto;
}


.section {
  padding: 3rem 0;
}


.section h2 {
  margin-top: 0;
}


.section-intro {
  max-width: 44rem;
  color: var(--text-soft);
}


/*Header & Navigation*/


.site-header {
  background-color: var(--deep-green);
  color: var(--text-light);
  padding: 1.5rem 0;
  border-bottom: 4px solid var(--earth);
}


.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.site-title {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
}


.tagline {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #e5efe8;
}


.site-nav {
  font-size: 0.95rem;
}


.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


.nav-list a {
  color: var(--text-light);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: rgba(0, 0, 0, 0.08);
}


.nav-list a:hover,
.nav-list a:focus {
  border-color: var(--earth);
  background-color: rgba(0, 0, 0, 0.18);
}


/*About Section*/


.about-section {
  background-color: var(--paper);
}


.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


.about-text p {
  margin-bottom: 1rem;
}


.about-photo {
  max-width: 260px;
}


.about-photo figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}


/*Skills Section*/


.skills-section {
  background-color: var(--sage);
  color: var(--deep-green);
}


.skills-section h2 {
  color: var(--deep-green);
}


.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}


.skill-group {
  background-color: rgba(253, 251, 247, 0.9);
  border-radius: 0.85rem;
  padding: 1.25rem;
  border: 1px solid rgba(9, 61, 27, 0.1);
}


.skill-group h3 {
  margin-top: 0;
}


.skills-list {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}


/*Projects Section */


.projects-section {
  background-color: var(--paper);
}


.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}


.project-card {
  background-color: var(--cream);
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}


.project-image {
  width: 100%;
  height: auto;
}


.project-content {
  padding: 1.25rem 1.5rem 1.5rem;
}


.project-content h3 {
  margin-top: 0;
}


.project-content p {
  color: var(--text-soft);
}


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


/*Contact Section & Form*/


.contact-section {
  background-color: var(--sage);
}


.contact-text p {
  margin-bottom: 1rem;
}


.contact-form {
  background-color: var(--paper);
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
}


.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}


.contact-form legend {
  font-weight: 600;
  margin-bottom: 1rem;
}


.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}


.form-field label {
  font-weight: 500;
  margin-bottom: 0.35rem;
}


.form-field input,
.form-field textarea {
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid #cbd5e1;
  font: inherit;
}


.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--deep-green);
  outline-offset: 2px;
}


/*Buttons & Footer*/


.button {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  border: none;
  background-color: var(--deep-green);
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
}


.button:hover,
.button:focus {
  background-color: #062713;
}


.site-footer {
  background-color: var(--deep-green);
  color: var(--text-light);
  padding: 1.75rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}


.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.back-to-top {
  align-self: flex-start;
  color: var(--earth);
}


/*Media Queries*/


/*Tablet*/
@media (min-width: 600px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }


  .section-inner {
    flex-direction: row;
    align-items: flex-start;
  }


  .about-text {
    flex: 2;
  }


  .about-photo {
    flex: 1;
  }


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


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


  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/*Desktop*/
@media (min-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


  .site-title {
    font-size: 2.2rem;
  }


  .tagline {
    font-size: 1.05rem;
  }
}
