/* =========================================
   THE THINGS WE WISH WE'D KNOWN

   Visual direction:
   Editorial / archive / restrained
   Black / grey / off-white
   Sans-serif throughout
   ========================================= */


:root {

  --background: #f8f8f5;
  --paper: #ffffff;

  --text: #151515;
  --muted: #777777;

  --line: #d4d4d0;
  --line-dark: #a9a9a4;

  --black: #111111;
  --white: #ffffff;

  --font-main:
    Arial,
    Helvetica,
    sans-serif;

  --page-padding: 4vw;
}


/* =========================================
   GENERAL
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  margin: 0;

  background: var(--background);

  color: var(--text);

  font-family: var(--font-main);

  font-size: 16px;

  line-height: 1.4;
}

a {

  color: inherit;

  text-decoration: none;
}

button {

  font: inherit;
}


/* =========================================
   TOP NAVIGATION
   ========================================= */

.top-nav {

  position: relative;

  z-index: 10;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding:
    1rem
    var(--page-padding);

  border-bottom:
    1px solid var(--line);

  background:
    var(--background);

  font-size: 0.68rem;

  font-weight: 700;

  letter-spacing: 0.06em;

  text-transform: uppercase;
}

.nav-title {

  white-space: nowrap;
}

.nav-links {

  display: flex;

  gap: 2rem;
}

.nav-links a {

  position: relative;
}

.nav-links a::after {

  content: "";

  position: absolute;

  left: 0;

  bottom: -4px;

  width: 0;

  height: 1px;

  background: var(--text);

  transition: width 0.2s ease;
}

.nav-links a:hover::after {

  width: 100%;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {

  min-height: 82vh;

  padding:
    7vw
    var(--page-padding)
    6vw;

  display: grid;

  grid-template-columns:
    1.55fr
    1fr;

  gap: 7vw;

  align-items: end;

  border-bottom:
    1px solid var(--line);
}

.site-title {

  max-width: 1200px;

  font-size:
    clamp(4rem, 9vw, 10rem);

  font-weight: 700;

  line-height: 0.88;

  letter-spacing: -0.075em;
}

.site-intro {

  max-width: 480px;

  padding-bottom: 0.5vw;

  font-size: 1.2rem;

  line-height: 1.35;
}

.site-intro p {

  margin:
    0 0 1rem;
}


/* =========================================
   BUTTONS
   ========================================= */

.header-buttons {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 2rem;
}

.button {

  display: inline-block;

  padding:
    13px
    17px;

  border:
    1px solid var(--text);

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.button-dark {

  background: var(--black);

  color: var(--white);
}

.button-dark:hover {

  background: #444444;

  border-color: #444444;
}

.button-outline {

  background: transparent;
}

.button-outline:hover {

  background: var(--text);

  color: var(--white);
}


/* =========================================
   SHARED LABEL
   ========================================= */

.section-label {

  font-size: 0.65rem;

  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: var(--muted);
}


/* =========================================
   FEATURED INSIGHT
   ========================================= */

.featured-section {

  min-height: 72vh;

  padding:
    7vw
    var(--page-padding);

  display: flex;

  flex-direction: column;

  justify-content: center;

  border-bottom:
    1px solid var(--line);
}

.featured-insight {

  max-width: 1050px;

  margin:
    4vw 0;
}

.quote {

  margin: 0;

  font-size:
    clamp(2.5rem, 5.7vw, 6.5rem);

  line-height: 0.98;

  letter-spacing: -0.055em;

  font-weight: 700;
}

.meta {

  margin-top: 2.5rem;

  color: var(--muted);

  font-size: 0.8rem;
}

.featured-category {

  margin-top: 0.7rem;

  font-size: 0.65rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  color: var(--muted);
}

.another-button {

  align-self: flex-start;

  padding:
    0 0 5px;

  border: 0;

  border-bottom:
    1px solid var(--text);

  background: transparent;

  cursor: pointer;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.another-button:hover {

  color: var(--muted);

  border-color: var(--muted);
}


/* =========================================
   ARCHIVE
   ========================================= */

.archive-section {

  padding:
    7vw
    var(--page-padding);
}

.archive-header {

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 6vw;

  align-items: end;

  padding-bottom: 4vw;

  border-bottom:
    1px solid var(--line);
}

.archive-header h1 {

  margin:
    1rem 0 0;

  max-width: 850px;

  font-size:
    clamp(3rem, 6vw, 6.5rem);

  line-height: 0.9;

  letter-spacing: -0.065em;
}

.archive-description {

  max-width: 430px;

  font-size: 1rem;

  color: var(--muted);
}


/* =========================================
   ARCHIVE CONTROLS
   ========================================= */

.archive-controls {

  display: grid;

  grid-template-columns:
    1.5fr
    1.5fr
    0.55fr;

  gap: 4vw;

  padding:
    2rem 0;

  border-bottom:
    1px solid var(--line);

  align-items: start;
}

.filter-heading {

  margin-bottom: 0.9rem;

  font-size: 0.62rem;

  font-weight: 700;

  letter-spacing: 0.09em;

  color: var(--muted);

  text-transform: uppercase;
}

.filters {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;
}

.filter {

  padding:
    7px
    10px;

  border:
    1px solid var(--line-dark);

  background: transparent;

  color: var(--text);

  cursor: pointer;

  font-size: 0.68rem;

  font-weight: 700;

  letter-spacing: 0.03em;

  text-transform: uppercase;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.filter:hover {

  border-color: var(--text);
}

.filter.active {

  background: var(--black);

  border-color: var(--black);

  color: var(--white);
}


/* =========================================
   ARCHIVE COUNT
   ========================================= */

.archive-count {

  min-height: 80px;

  padding-left: 2vw;

  border-left:
    1px solid var(--line);

  display: flex;

  flex-direction: column;

  justify-content: flex-start;
}

.archive-count #insight-count {

  font-size:
    clamp(2.5rem, 4vw, 4rem);

  line-height: 0.9;

  font-weight: 700;

  letter-spacing: -0.06em;
}

.count-label {

  margin-top: 0.4rem;

  font-size: 0.62rem;

  color: var(--muted);

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


/* =========================================
   ARCHIVE CARDS
   ========================================= */

.archive-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  border-left:
    1px solid var(--line);
}

.insight-card {

  min-height: 370px;

  padding:
    1.6rem;

  border-right:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);

  background:
    var(--background);

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  transition:
    background 0.2s ease;
}

.insight-card:hover {

  background:
    var(--paper);
}

.card-number {

  font-size: 0.65rem;

  color: var(--muted);
}

.card-advice {

  margin:
    3rem 0;

  max-width: 500px;

  font-size: 1.55rem;

  line-height: 1.08;

  letter-spacing: -0.025em;
}

.card-footer {

  display: flex;

  flex-direction: column;

  gap: 4px;
}

.card-role {

  font-size: 0.78rem;

  font-weight: 700;
}

.card-experience {

  font-size: 0.7rem;

  color: var(--muted);
}

.card-salary {

  font-size: 0.7rem;

  color: var(--muted);
}

.card-category {

  margin-top: 9px;

  font-size: 0.62rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  color: var(--muted);

  text-transform: uppercase;
}


/* =========================================
   CONTRIBUTION
   ========================================= */

.contribute-section {

  min-height: 72vh;

  padding:
    7vw
    var(--page-padding);

  display: flex;

  flex-direction: column;

  justify-content: center;

  background:
    var(--black);

  color:
    var(--white);
}

.contribute-section .section-label {

  color: #a5a5a5;
}

.contribute-section h2 {

  max-width: 1100px;

  margin:
    3vw 0 2vw;

  font-size:
    clamp(3rem, 7vw, 8rem);

  line-height: 0.9;

  letter-spacing: -0.07em;

  font-weight: 700;
}

.contribute-description {

  max-width: 500px;

  margin:
    0 0 2.5rem;

  color: #bdbdbd;

  font-size: 1rem;
}

.button-light {

  align-self: flex-start;

  background:
    var(--white);

  color:
    var(--black);

  border-color:
    var(--white);
}

.button-light:hover {

  background:
    #dddddd;

  border-color:
    #dddddd;
}


/* =========================================
   ABOUT
   ========================================= */

.about-section {

  padding:
    7vw
    var(--page-padding);

  border-bottom:
    1px solid var(--line);
}

.about-content {

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 7vw;

  margin-top: 3vw;
}

.about-credit {

  margin: 0;

  max-width: 500px;

  font-size:
    clamp(1.8rem, 3vw, 3.2rem);

  line-height: 1;

  letter-spacing: -0.045em;

  font-weight: 700;
}

.about-text {

  max-width: 500px;

  font-size: 1rem;

  color: var(--muted);
}

.about-text p {

  margin:
    0 0 1.4rem;
}


/* =========================================
   FOOTER
   ========================================= */

footer {

  padding:
    1.5rem
    var(--page-padding);

  display: flex;

  justify-content: space-between;

  gap: 2rem;

  font-size: 0.6rem;

  letter-spacing: 0.07em;

  color: var(--muted);

  border-top:
    1px solid var(--line);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 900px) {

  :root {

    --page-padding: 6vw;
  }


  .top-nav {

    align-items: flex-start;
  }

  .nav-links {

    gap: 1rem;
  }


  .site-header {

    min-height: auto;

    display: block;

    padding-top: 18vw;

    padding-bottom: 15vw;
  }

  .site-title {

    margin-bottom: 15vw;

    font-size:
      clamp(3.7rem, 15vw, 8rem);
  }


  .featured-section {

    min-height: 65vh;

    padding-top: 15vw;

    padding-bottom: 15vw;
  }

  .quote {

    font-size:
      clamp(2.4rem, 10vw, 5rem);
  }


  .archive-header {

    display: block;
  }

  .archive-description {

    margin-top: 2rem;
  }


  .archive-controls {

    grid-template-columns:
      1fr;

    gap: 2rem;
  }

  .archive-count {

    min-height: auto;

    padding:
      1rem 0 0;

    border-left: 0;

    border-top:
      1px solid var(--line);
  }


  .archive-grid {

    grid-template-columns:
      1fr;

    border-left: 0;
  }

  .insight-card {

    min-height: 330px;

    border-right: 0;
  }


  .about-content {

    display: block;

    margin-top: 2rem;
  }

  .about-text {

    margin-top: 3rem;
  }


  footer {

    flex-direction: column;

    gap: 0.7rem;
  }
}


@media (max-width: 600px) {

  .top-nav {

    display: block;
  }

  .nav-links {

    margin-top: 0.8rem;

    gap: 1rem;

    flex-wrap: wrap;
  }

  .nav-title {

    display: block;
  }

  .header-buttons {

    flex-direction: column;

    align-items: flex-start;
  }

  .button {

    width: fit-content;
  }
}
