/* FOOTER: big name top-left, a row of four columns, a last line of small print.
   The last column is wider and ends in a ruled "Back to top" line. */
#ft {
  position: relative;
  overflow: hidden;
  padding: 9vh 6vw 7vh;
  color: var(--p6);
  background: var(--p0);
}

.ft-in {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 3vw;
  align-items: start;
}

/* top: the name (left) */
.ft-mark {
  grid-column: 1/8;
  grid-row: 1;
  font-weight: 900;
  font-size: clamp(84px, 17vw, 250px);
  line-height: .78;
  letter-spacing: -.03em;
  color: var(--p7);
  user-select: none;
  white-space: nowrap;
  margin-left: -.04em;
}

/* middle: four columns (column 1 = sections, 2 = manga, 3 = film, 4 = wide, with the ruled line) */
.ft-c {
  grid-row: 2;
  margin-top: 6vh;
  font-size: 13px;
  line-height: 1.55;
}

.ft-c h3 {
  margin: 0 0 .9em;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--p5);
}

.ft-c p {
  margin: 0;
  color: var(--p7);
}

.ft-c1 {
  grid-column: 1/4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ft-c1 a {
  color: var(--p7);
  text-decoration: none;
  transition: color .25s;
}

.ft-c1 a:hover,
.ft-c1 a:focus-visible {
  color: var(--p5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-c2 {
  grid-column: 4/6;
}

.ft-c3 {
  grid-column: 6/8;
}

.ft-c4 {
  grid-column: 8/13;
}

.ft-c4 p {
  color: var(--p6);
}

.ft-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2vw;
  width: 100%;
  margin-top: 1.4vh;
  padding: 0 0 .5em;
  font: inherit;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
  color: var(--p5);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--p5);
  cursor: pointer;
  transition: color .3s, border-color .3s;
}

.ft-top:hover,
.ft-top:focus-visible {
  color: var(--p7);
  border-color: var(--p7);
}

.ft-top:focus-visible {
  outline: 2px solid var(--p6);
  outline-offset: 4px;
}

/* bottom: small print, on the same columns */
.ft-s {
  grid-row: 3;
  margin: 12vh 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--p5);
}

.ft-s1 {
  grid-column: 1/4;
}

.ft-s2 {
  grid-column: 4/8;
}

.ft-s3 {
  grid-column: 8/13;
}

@media (max-width: 760px) {
  #ft {
    padding: 11vh 6vw 6vh;
  }
  .ft-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 6vw;
  }
  .ft-mark {
    grid-column: 1/-1;
    grid-row: auto;
    font-size: 30vw;
  }
  .ft-c {
    grid-row: auto;
    margin-top: 6vh;
  }
  .ft-c1 {
    grid-column: 1;
    grid-row: span 2;
  }
  .ft-c2,
  .ft-c3 {
    grid-column: 2;
  }
  .ft-c3 {
    margin-top: 4vh;
  }
  .ft-c4 {
    grid-column: 1/-1;
  }
  .ft-s {
    grid-row: auto;
    margin-top: 5vh;
    grid-column: 1/-1;
  }
  .ft-s1 {
    margin-top: 9vh;
  }
  .ft-s2,
  .ft-s3 {
    margin-top: 1vh;
  }
}
