/* Positioning: grid & scroll */

header {
  display: contents;
  /* H */
  width: 100%;
  /* V */
  --header-row-top-height: 64px;
}

.header-row {
  display: grid;
  /* H */
  grid-template-columns: 1fr auto 1fr;
}

.col-left {
  justify-self: start;
}

.col-center {
}

.col-right {
  justify-self: end;
}

/* ----------- row1: site title + page title + me ---------- */

.row-1 {
  /* V */
  position: sticky;
  z-index: 3;
  top: 0;
  height: var(--header-row-top-height);
  /* Other */
  background: var(--color-00);
}

.header-sitetitle {
  margin: 0;
  /* V */
  line-height: var(--header-row-top-height);
  /* Other */
  font-size: 2.5rem;
  letter-spacing: 0.19em;
  cursor: pointer;
}

.header-pagetitle {
  margin: 0;
  /* V */
  line-height: var(--header-row-top-height);
  /* To lower: diff between font size of site title and this page title */
  padding-top: 0.3rem;
  /* Other */
  font-size: 2.2rem;
  letter-spacing: 0.10em;
}

.header-me-svg {
  /* V */
  height: var(--header-row-top-height);
  padding-top: 5px;
  /* H */
  width: var(--header-row-top-height);
  /* Other */
  stroke: var(--color-10);
  fill: var(--color-00);
  background: var(--color-00);
  cursor: pointer;
}

.header-me-svg:hover {
  stroke: var(--color-00);
  fill: var(--color-10);
}

.svg-icon-border {
  stroke: var(--color-10);
}

/* ----------- row2: site subtitle + menu ---------- */

.row-2 {
  align-items: center;
  /* non sticky  */
}

.header-site-subtitle {
  margin: 0;
  opacity: var(--opacity-1);
}

header .menu-list {
  color: var(--color-21);
}

header .menu-item-active {
  color: var(--color-00);
  background: var(--color-21);
  opacity: 1;
}

/* ----------- row3: separation line ---------- */

.header-row-3 {
  /* V */
  position: sticky;
  z-index: 2;
  top: var(--header-row-top-height);
  margin-top: 3px;
  background: var(--color-00);
  /* Other */
  border-top: 2px solid var(--color-20);
  border-bottom: 3px solid transparent;
}
