/* Hero type and spacing for phone and tablet (991px and below).
   One scale for home, about and every case page. Desktop is untouched.

   Fonts are pixel fonts, so sizes sit on each font's pixel grid and every
   line-height is a whole pixel on the 4px grid:
   - Departure Mono: 1 font pixel = 1/11 em  -> 16.5px (1.5 px), 22px (2 px)
   - PP NeueBit:     1 font pixel = 1/14 em  -> 21, 28, 42, 56px (1.5, 2, 3, 4 px)

   Token        phone (<=479)      tablet (480-991)   font
   display      42 / 48 (1.14)     56 / 64 (1.14)     NeueBit   home h1, case h1
   section      28 / 32 (1.14)     28 / 32            NeueBit   about column headings
   title        21 / 28 (1.33)     21 / 28            NeueBit   case company name
   body-lg      16.5 / 24 (1.45)   22 / 32 (1.45)     Mono      hero intro
   body         16.5 / 24 (1.45)   16.5 / 24          Mono      eyebrow, case meta values
   Gaps (8px grid)  phone / tablet
   eyebrow > headline   16 / 24      headline > intro   16 / 24
   intro > actions/meta 32 / 40      back chip > cover  24 / 24   cover > headline 32 / 40
   first hero element starts 120px from the top of the page on every page. */

@media screen and (max-width: 991px) {
  :root {
    --ht-display: 56px;  --ht-display-lh: 64px;
    --ht-body-lg: 22px;  --ht-body-lg-lh: 32px;
    --ht-body: 16.5px;   --ht-body-lh: 24px;
    --ht-section: 28px;  --ht-section-lh: 32px;
    --ht-title: 21px;    --ht-title-lh: 28px;
    --ht-gap-s: 24px;    /* eyebrow > headline, headline > intro */
    --ht-gap-m: 40px;    /* intro > actions or meta, cover > headline */
  }

  /* ---- home ---- */
  /* hero hugs its content so the gap to the work list is the same at every width */
  .hero { padding-top: 60px; padding-bottom: 0; min-height: 0; }
  .hero .hero-columns.in-page-container { margin-bottom: 40px; }
  .hero .pre-header-text {
    font-size: var(--ht-body); line-height: var(--ht-body-lh);
    margin-top: 0; margin-bottom: 0;
  }
  .hero .heading.hero-content {
    font-size: var(--ht-display); line-height: var(--ht-display-lh);
    margin-top: var(--ht-gap-s); margin-bottom: 0;
  }
  .hero .paragraph.hero-content:not(.contact-me):not(.exploration-descriptions) {
    font-size: var(--ht-body-lg); line-height: var(--ht-body-lg-lh);
    margin-top: var(--ht-gap-s); margin-bottom: 0;
  }
  .hero .buttons-wrapper { margin-top: var(--ht-gap-m); }

  /* ---- about ---- */
  .experience-summary { padding-top: 120px; }
  .experience-summary h3.experience-section,
  .experience-summary h3.education-section {
    font-size: var(--ht-section); line-height: var(--ht-section-lh);
    margin-bottom: 24px;
  }

  /* ---- case pages ---- */
  .project-section.header .project-title-in-page {
    font-size: var(--ht-display); line-height: var(--ht-display-lh);
    margin-top: var(--ht-gap-m); margin-bottom: var(--ht-gap-s);
  }
  .project-section.header .project-intro .tags-project.desc { margin-bottom: var(--ht-gap-m); }
  .project-section.header .project-intro .tags-project.desc .tags {
    font-size: var(--ht-body-lg); line-height: var(--ht-body-lg-lh);
    margin-top: 0;
  }
  .project-section.header .project-intro .details-project .tags.team {
    font-size: var(--ht-body); line-height: var(--ht-body-lh);
  }
  .project-section.header .project-intro .company-name {
    font-size: var(--ht-title); line-height: var(--ht-title-lh);
    margin-top: 0; margin-bottom: 0;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --ht-display: 42px;  --ht-display-lh: 48px;
    --ht-body-lg: 16.5px; --ht-body-lg-lh: 24px;
    --ht-gap-s: 16px;
    --ht-gap-m: 32px;
  }
  .hero { padding-top: 20px; padding-bottom: 0; }
}
