/* The site footer: one template for every page, like a component. src/footer.js
   writes the markup, so a change there shows up on every page at once.

   Links on top, then Bengaluru in pixels with its sky set by the time there right
   now, standing on the same grass and soil as the desk's island. skyline.js sets
   --sky (the top of the sky, which is also this block's background) and .is-night.

   Its own colours and type are set here, so it looks the same whatever page it sits
   on; spacing (--edge, --top) and the pointer (--hand) come from base.css. */

.site-foot {
  --ink: #1d1c1a;
  --paper: #f7f5f0;
  --muted: #6f6a61;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --pixel: 'Geist Pixel', var(--sans);
  --pixel-l: 26.32px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sky: #e8e5de;
  --soil: #5b3b22;
  border-top: 1px solid rgb(29 28 26 / 0.1);
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
}

.site-foot.is-night {
  border-top-color: transparent;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: clamp(64px, 7vw, 112px) var(--edge) 24px;
}

.foot-name {
  margin: 0;
  font: 400 var(--pixel-l) / 1.1 var(--pixel);
  font-variation-settings: 'ELSH' 1;
  font-synthesis: none;
}

.foot-time {
  color: var(--muted);
  font: 400 14px / 1.5 var(--sans);
}

.foot-list {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-list a,
.foot-list button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 15px / 1.4 var(--sans);
  text-decoration: none;
  cursor: var(--hand);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 240ms var(--ease-out);
}

.foot-list a:focus-visible,
.foot-list button:focus-visible,
.foot-top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .foot-list a:hover,
  .foot-list button:hover {
    background-size: 100% 1px;
  }
}

.foot-time {
  display: grid;
  align-content: start;
  gap: 2px;
  margin: 0;
}

.foot-clock {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* The low-res scene is scaled up with hard pixel edges; skyline.js sizes it. */
.skyline {
  display: block;
  width: 100%;
  image-rendering: pixelated;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px var(--edge) 24px;
  background: var(--soil);
  color: rgb(247 245 240 / 0.7);
  font-size: 13px;
}

.foot-base p {
  margin: 0;
}

.foot-top {
  color: var(--paper);
  text-underline-offset: 4px;
  cursor: var(--hand);
}

/* After dark in Bengaluru the footer's sky is night too. */
.site-foot.is-night .foot-name,
.site-foot.is-night .foot-list a,
.site-foot.is-night .foot-list button,
.site-foot.is-night .foot-clock {
  color: var(--paper);
}

.site-foot.is-night .foot-time {
  color: #9aa1b1;
}

@media (max-width: 900px) {
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .foot-name {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  /* Room for the bottom nav, which floats over the last of the page. */
  .foot-base {
    padding-bottom: calc(var(--top) + 72px);
  }
}
