/* Hi there, and welcome to my stylesheet!  
/* I quite a lot of time writing it from scratch, and I hope you find it interesting!
/* I've spent quite a bit of time on it, and I labeled some of the sections, so you can find them a bit easier.
/*
/* If you hit CTRL+F, you can search it for specific elements.
/*
/* The main sections are:
/*    1. Fonts
/*    2. Responsiveness
/*    3. Elements
/*    4. Classes


/*       */
/* Fonts */
/*        */

@font-face {
  font-display: swap;
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/crimson-text-v19-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap; 
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/work-sans-v24-latin-regular.woff2') format('woff2');
}



/*                */
/* Responsiveness */
/*                */

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

@media (max-width: 768px) {
  article {
    width: 100%;
    margin: none;
    padding: 1rem;
  }

  body {
    max-width: 768px;
  }

  header {
    margin: 0 auto 0 auto;
    width: 100%;
  }

  footer {
    width: 100%;
  }

  main {
    width: 80%;
    margin: auto;
    overflow-x: hidden;
  }

  .button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .card-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .collapsible-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 1rem auto 1rem auto;
  }

  .hero {
    width: 90%;
  }

  .logo {
    padding: auto;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  notice {
    width: 60%;
  }

  .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 1rem auto 1rem auto;
  }

  .review-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto 20px auto;
  }

  .review-metadata {
      text-align: center;
  }

  .textarea {
    overflow-x: wrap;
  }

  .two-column {
    display: flex;
    flex-direction: column; 
    margin: auto;
  }
}

@media (min-width: 768px) {
  article {
    width: 100%;
    max-width: 1024px;
    padding: 2rem 2rem 3rem 2rem;
    margin: auto;
  }

  main {  
    width: 100%;
    max-width: 1024px;
    margin: auto;
    padding: 1rem;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: auto;
  }

  .card-grid-odd {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin: auto;
  }

  .card-grid-odd .card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 400px; 
  }

  .collapsible-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 1rem auto 1rem auto;
  }

  .currently-reviewing img {
    transition: all 0.3s;
  }

  .currently-reviewing img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
  }

  .hero {
    width: 60%;
  }

  .notice {
    width: 40%;
  }

  .notice-group {
  display: flex;
  justify-content: space-around;
}

  .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 1rem auto 1rem auto;
  }

  .review-header {
    align-items: center;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 20px;
  }

  .review-item img {
    opacity: 0.4;
    filter: grayscale(25%);
    transition: 0.7s;
  }

  .review-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
  }

  .review-metadata {
    width: 60%;
    
    h1 {
      text-align: center;
    }
  }

  .two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

/*          */
/* Elements */
/*          */ 
article {
  background-color: white;
  border-radius: 12px;
  border: 2px solid #E2DAC2;

  time {
    color: #6b7c59;
  }

  a {
    color: #2a4d73;
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }
}

body {
  color: #222;
  font-family: "Work Sans";
  line-height: 1.5;
  background-color: #F5F1E8;
  margin: auto;
}

footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.9rem;
  color: #E2DAC2;
  border-top: 1px solid #222;
  background-color: #1e3a5f;
}

header {
  border-bottom: 1px solid #222;
  margin-bottom: 1rem;
  width: 100%;
}

a {
  text-decoration: none;
}

blockquote {
  font-size: 0.9rem;
  border-left: 4px solid #6b7c59;
  border-radius: 6px;
  padding: 0 0.5rem;
}

button {
  display: inline-block;
  background: #6b7c59;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600px;
  transition: all 0.3s;
  margin: 0 0.5rem;
}

button:hover {
  background: #E2DAC2;
  color: #1e3a5f;
  transform: translateY(-2px);
  cursor:pointer;
}

form {
  margin: auto;
}

h1 {
  font-family: "Crimson Text";
  font-size: 2.5rem;
  font-variant: small-caps;
  color: #1e3a5f;
  margin: 0;

  a {
    color: #1e3a5f;
  }
}

h2 {
  font-family: "Crimson Text";
  font-size: 2rem;
  color: #1e3a5f;
  margin: 0 0 1rem 0;
  border-bottom: 2px solid #E2DAC2;
  padding-bottom: 0.5rem;

  a {
    color: #1e3a5f
  }
}

h3 {
  font-family: "Crimson Text";
  font-size: 1.5rem;
  color: #1e3a5f;
  margin: 0;

  a {
    color: #1e3a5f;
  }
}

h4 {
  font-family: "Work Sans";
}

h5 {
  font-family: "Work Sans";
}

h6 {
  font-family: "Work Sans";
}

hgroup {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

hr {
  height: 1px;  
  color: #E2DAC2;
  background: #E2DAC2;
  font-size: 0;
  border: 0;
}

input, textarea {
  background-color: #F5F1E8;
}

p {
  a {
    color: #2a4d73;
    text-decoration: none;
    transition: color 0.3s;
  }

  a:hover {
    color: #6b7c59;
  }
}

ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;

  li {
    margin-bottom: 0.5rem;
  }
}

/*         */
/* Classes */
/*         */

.button {
  display: inline-block;
  background: #6b7c59;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600px;
  transition: all 0.3s;
  margin: 0 0.5rem;
}

.button:hover {
  background: #E2DAC2;
  color: #1e3a5f;
  transform: translateY(-2px);
}

.card {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  border-left: 4px solid #6b7c59;
  transition: all 0.3s;
  margin-bottom: 1rem;

    a {
      color: #1e3a5f;
    }
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.card-grid {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.card-grid-odd {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.card-secondary {
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border-left: 4px solid #E2DAC2;
  transition: all 0.3s;
  margin-bottom: 1rem;
  font-style: italic;
}

.card-secondary:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.collapsible-content.collapsed {
  display: none;
}

.currently-reviewing {
  display: block;
  height: auto;
  width: 120px;
  margin: 0;
}

.currently-reviewing img {
  display: block;
  height: auto;
  width: 120px;
}

.description {
  font-style: italic;
  color: #6b7c59;
  margin-top: -0.25rem;
}

.hero {
  display: block;
  background: linear-gradient(135deg, #1e3a5f 0%, #2a4d73 100%);
  margin: 2rem auto; 
  padding: 2rem 2rem;
  border-radius: 12px;
  text-align: center;

  h1 {
    font-size: 2rem;
    font-variant: small-caps;
    letter-spacing: 0.03em;
    color: white;
  }

  h2 {
    font-size: 1.7rem;
    font-variant: small-caps;
    letter-spacing: 0.03em;
    color: white;
    border-bottom: none;
  }

  p {
    font-size: 1.3rem;
    color: #E2DAC2;
    margin-bottom: 2rem;
  }
}

.icon-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;

    h3 {
      display: block;
      font-size: 1.5rem;
    }

    img {
    display: block;
    margin: 0;
    width: 60px;
    height: 60px;
  }
}

.job-entry {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: all 0.3s;
  border-left: 4px solid #1e3a5f;

  .job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0;
  }

  .job-org {
    font-size: 1.1rem;
    color: #6b7c59;
    font-style: italic;
    margin-top: -1rem;
  }

  .job-date {
    font-size: 0.95rem;
    color: #6b7c59;
    margin-top: -1rem;
  }
}

.job-entry:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.logo {
  background-color: #1e3a5f;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 0 auto 0 auto;

  #logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    #logo-image {
      height: 60px;
      width: 60px;
    }

    #logo-title {
      font-size: 1.5rem;
      font-variant: small-caps;
      letter-spacing: 0.05em;
      color: white;
    }
  }
}

.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
  font-size: 0.9rem;
  gap: 1rem;
  margin: 0 auto 1rem auto;

  a {
    color: #E2DAC2;
    transition: color 0.3s;
  }

  a:hover {
    color: #F5F1E8;
  }
}

.notice {
  background-color: #E2DAC2;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem auto 2rem auto;
  border-left: 4px solid #6b7c59;
  text-align: center;

  p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

.notice-header {
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    width: 20px;
    align-items: center;
    margin-bottom: 0;
  }

  h3 { 
    padding: 0 1rem 0 1rem;
  }
}

.post-description {
  margin-bottom: 1rem;
}

.post-meta {
  color: #6b7c59;
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 0;
}

.review-header {
  align-items: center;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  margin-bottom: 20px;
    
  h2 {
    text-align: center;
    border: none;
    color: #2a4d73;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0;
  }
}

.review-header img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  max-width: 250px;
}

.review-item {
  display: block;
  height: auto;
  width: 120px;
  margin: 0;
}

.review-item img {
  display: block;
  height: auto;
  width: 120px;
}

.reviews {
  a {
    color: #2a4d73;
  }
}

.required {
  color: red;
}

.resource {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #6b7c59;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: #1e3a5f;
  display: block;

  h3 {
    margin-top: 0;
    color: #1e3a5f;
  }

  a {
    text-transform: none;
  }

  a:hover {
    color: #1e3a5f;
  }
}

.resource:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-left: 4px solid #1e3a5f;
}


.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.simple-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #E2DAC2;
  margin-bottom: 1rem;

  h3 {
    color: #6b7c59;
  }
}

.skill-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #E2DAC2;
  margin-bottom: 1rem;

  a {
    color: #2a4d73;
  }

  h3 {
    color: #6b7c59;
  }

  li {
    margin-bottom: 0.5rem;
  }

  li::before {
    content: "→ ";
    color: #6b7c59;
  }

  ul {
    text-indent: -2.5rem;  
    margin-left: 1rem;
    list-style: none;
  }
}

.tab-button {
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #2a4d73;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 8px;
  position: relative;
  margin-top: 0.25rem;
}

.tab-button.active {
    background-color: #F5F1E8;
    border: 1px solid #E2DAC2;
    cursor: default;
    font-weight: bold;
    z-index: 1; 
}

.tab-button:hover {
  transform: translateY(0);
}

.tab-button:hover:not(.active) {
  color: #6b7c59;
}

.tab-content {
  margin: 1rem;
  display: none;
}

.tab-content.active {
  display: block;
}

.testimonial {
  text-align: right;
  color: #6b7c59;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}