/*
HOME PAGE
Reference: reference/homepage-reference.png

The important part is the ASYMMETRY and whitespace.
Do not turn this into an even dashboard/grid of cards.
*/

.home-intro {
  padding-top: clamp(42px, 5.3vw, 82px);
}

.home-brand {
  grid-column: 1 / 6;
  align-self: start;
}

.home-brand .display {
  font-size: clamp(86px, 8.5vw, 152px);
}

.home-brand .erif {
  display: inline-block;
  margin-left: .28em;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .52em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  transform: translateY(-.06em);
}

.home-brand .slash {
  display: inline-block;
  margin-left: .15em;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: .68em;
  font-weight: 400;
}

.home-deck {
  margin-top: 23px;
  width: 25em;
  max-width: 100%;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-quote {
  grid-column: 8 / 13;
  align-self: center;
  margin-top: 8px;
}

.home-middle {
  margin-top: 42px;
}

.home-bio {
  grid-column: 1 / 6;
  align-self: start;
  padding-left: 20px;
  border-left: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.58;
}

.home-bio p { margin: 0 0 10px; }
.home-bio em { color: var(--green-2); }

.home-hero-art {
  grid-column: 6 / 13;
  min-height: clamp(260px, 29vw, 420px);
  overflow: hidden;
}

.home-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-work {
  margin-top: 24px;
  padding-bottom: 72px;
}

.apps-panel {
  grid-column: 1 / 5;
  padding: 28px 28px 26px;
  min-height: 480px;
}

.apps-panel h2 {
  margin: 0 0 20px;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.app-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid rgba(245,239,230,.14);
}

.app-row:first-of-type { border-top: 0; }

.app-row img {
  width: 54px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px; /* app icons themselves are rounded */
}

.app-row h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
}

.app-row p {
  margin: 2px 0 0;
  color: rgba(245,239,230,.68);
  font-size: 13px;
  line-height: 1.35;
}

.home-stack {
  grid-column: 5 / 13;
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.65fr);
  min-height: 310px;
}

.feature-row.reverse {
  grid-template-columns: minmax(0, 1.55fr) minmax(190px, .9fr);
}

.feature-copy {
  position: relative;
  z-index: 1;
  padding: 42px 34px;
}

.feature-copy h2 {
  margin: 0 0 22px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.feature-copy p {
  margin: 0 0 18px;
  max-width: 20ch;
}

.feature-media {
  min-height: 310px;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 820px) {
  .home-brand,
  .home-quote,
  .home-bio,
  .home-hero-art,
  .apps-panel,
  .home-stack { grid-column: 1 / -1; }

  .home-quote { margin-top: 34px; }
  .home-hero-art { margin-top: 10px; }
  .home-work { row-gap: 18px; }
  .apps-panel { min-height: auto; }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; }
}
